Derrick Hammer
|
e39ea9e48f
|
refactor: update DecodeMessage and HandleMessage
|
2024-01-07 23:40:13 -05:00 |
Derrick Hammer
|
24e2b3a79f
|
fix: need to set self on message handler
|
2024-01-07 23:01:09 -05:00 |
Derrick Hammer
|
ed48f60b12
|
fix: use ReadAll on msgpack.Buffered
|
2024-01-07 22:57:03 -05:00 |
Derrick Hammer
|
2f5a853ff8
|
refactor: store incoming message as a child property vs overriding itself via pointer magic
|
2024-01-07 22:55:57 -05:00 |
Derrick Hammer
|
0d083e8567
|
fix: need to use DecodeMsgpackArray
|
2024-01-07 22:54:43 -05:00 |
Derrick Hammer
|
d6c7bd37dd
|
fix: we need to strip off the key prefix
|
2024-01-07 22:38:19 -05:00 |
Derrick Hammer
|
291a87aefc
|
fix: we need to use EncodeMsgpackArray
|
2024-01-07 22:35:41 -05:00 |
Derrick Hammer
|
819219cdcf
|
fix: we need to define custom array encoding and decoding api due to non-standard message packing in the dart implementation
|
2024-01-07 22:33:04 -05:00 |
Derrick Hammer
|
fec2adb72f
|
fix: we need to use the msgpack reader and get the rest of the bytes, not use DecodeRaw
|
2024-01-07 22:21:59 -05:00 |
Derrick Hammer
|
12d8d1371a
|
fix: we dont need to send the network id
|
2024-01-07 21:41:17 -05:00 |
Derrick Hammer
|
102f147ec4
|
fix: encode the challenge, mot the original message
|
2024-01-07 21:38:26 -05:00 |
Derrick Hammer
|
3f469a3a15
|
fix: dont strip off anything
|
2024-01-07 11:24:47 -05:00 |
Derrick Hammer
|
1b8ba683c0
|
fix: need to handle no network id
|
2024-01-07 10:54:26 -05:00 |
Derrick Hammer
|
a9fb6aedb9
|
fix: need to store a reference to the handler to itself so we can access it by the proper type in a parent method
|
2024-01-07 10:37:42 -05:00 |
Derrick Hammer
|
a6389eb738
|
feat: add EncodeMsgpack, HandleMessage, and NewHandshakeDoneRequest toHandshakeDone
|
2024-01-07 09:13:03 -05:00 |
Derrick Hammer
|
cc2885f2b4
|
feat: add DecodeMessage and HandleMessage to HandshakeOpen
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
00c8a081f6
|
feat: add secure message signing and encoding
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
3ce371986b
|
refactor: add NetworkId() to node
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
ebd95f59d4
|
fix: need to set known
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
a59b7d44d6
|
fix: bad type conversion, and add a panic
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
be082fda60
|
refactor: add interface check
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
a497592bad
|
refactor: add dummy DecodeMessage to panic, and add getter/setter for known
|
2024-01-07 09:13:01 -05:00 |
Derrick Hammer
|
b53eb16767
|
refactor: add interface check
|
2024-01-07 09:12:54 -05:00 |
Derrick Hammer
|
b8a38fde66
|
fix: dont return by ref
|
2024-01-07 06:51:40 -05:00 |
Derrick Hammer
|
8b2756caad
|
fix: need to pass by ref
|
2024-01-07 06:49:27 -05:00 |
Derrick Hammer
|
0028483817
|
refactor: use lowercase socket
|
2024-01-07 06:47:19 -05:00 |
Derrick Hammer
|
2e9b07c6bd
|
refactor: dont use pointers with interfaces
|
2024-01-07 06:47:01 -05:00 |
Derrick Hammer
|
52b7426a7a
|
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer
|
2024-01-07 06:33:32 -05:00 |
Derrick Hammer
|
8435ce33de
|
dep: switch to nhooyr websocket
|
2024-01-07 06:31:26 -05:00 |
Derrick Hammer
|
8f6ebbd3e2
|
fix: nil pointer reference
|
2024-01-07 05:31:24 -05:00 |
Derrick Hammer
|
581ff5120d
|
fix: scheme doesnt use colons
|
2024-01-07 05:28:05 -05:00 |
Derrick Hammer
|
52f08335a2
|
fix: set started
|
2024-01-07 05:25:45 -05:00 |
Derrick Hammer
|
f7a86fd2a5
|
fix: don't try to init
|
2024-01-07 05:23:45 -05:00 |
Derrick Hammer
|
29f7563d75
|
fix: set inited
|
2024-01-07 05:23:11 -05:00 |
Derrick Hammer
|
3218167b83
|
fix: bad return on PublicKeyRaw
|
2024-01-07 05:22:00 -05:00 |
Derrick Hammer
|
6597a78e51
|
refactor: can't inherit from HandshakeOpen without a import cycle
|
2024-01-07 05:13:09 -05:00 |
Derrick Hammer
|
54f0a53f77
|
refactor: need to crease a base protocol package to solve import cycle
|
2024-01-07 05:12:43 -05:00 |
Derrick Hammer
|
ef86db2bd0
|
refactor: need to export storage structs
|
2024-01-07 04:33:40 -05:00 |
Derrick Hammer
|
1950edf181
|
refactor: move StorageLocation to a new pkg to prevent import cycle
|
2024-01-07 04:30:03 -05:00 |
Derrick Hammer
|
57657bd6ed
|
fix: need to use interface, not impl
|
2024-01-07 04:27:54 -05:00 |
Derrick Hammer
|
602ece249a
|
chore: delete unneeded package
|
2024-01-07 04:17:36 -05:00 |
Derrick Hammer
|
4b406bcf57
|
fix: need to init and setup P2P service
|
2024-01-07 04:17:19 -05:00 |
Derrick Hammer
|
311b03737c
|
fix: need to fix construction od node and stick to using interfaces
|
2024-01-07 04:16:33 -05:00 |
Derrick Hammer
|
99167b4cec
|
fix: add missing services impl
|
2024-01-07 04:15:28 -05:00 |
Derrick Hammer
|
ea872fedc4
|
refactor: move nodeVotes to a dedicated file
|
2024-01-07 04:03:36 -05:00 |
Derrick Hammer
|
51d76a2d95
|
refactor: use interfaces
|
2024-01-07 03:58:22 -05:00 |
Derrick Hammer
|
4678d406fc
|
refactor: use interfaces, rename struct to be an impl
|
2024-01-07 03:57:46 -05:00 |
Derrick Hammer
|
b340cda442
|
refactor: add interface to map
|
2024-01-07 03:57:12 -05:00 |
Derrick Hammer
|
ca1e2dcf72
|
refactor: use interfaces, rename struct to be an impl
|
2024-01-07 03:56:50 -05:00 |
Derrick Hammer
|
26a51a25d5
|
fix: dont use pointers with interfaces
|
2024-01-07 03:56:05 -05:00 |