Derrick Hammer
|
883f50b198
|
feat: add incoming and outgoing peer blocking to handle abuse
|
2024-01-15 10:54:31 -05:00 |
Derrick Hammer
|
3d41119f74
|
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done
|
2024-01-13 11:22:01 -05:00 |
Derrick Hammer
|
19fb3b9967
|
fix: move everything using endian to uint64
|
2024-01-10 11:00:01 -05:00 |
Derrick Hammer
|
ac11da28c0
|
fix: pass SelfConnectionUris to NewHandshakeDoneRequest
|
2024-01-10 09:37:27 -05:00 |
Derrick Hammer
|
b542de3cb0
|
fix: need to decode the original message as its not msgpack
|
2024-01-10 07:20:33 -05:00 |
Derrick Hammer
|
6bf557346d
|
feat: initial registry service support
|
2024-01-10 06:29:03 -05:00 |
Derrick Hammer
|
528e1a6c27
|
chore: remove debug lines
|
2024-01-09 17:17:45 -05:00 |
Derrick Hammer
|
1e7baabcb3
|
fix: switch to using the originally stored message since we need everything to do message verification
|
2024-01-09 14:54:59 -05:00 |
Derrick Hammer
|
8806e69a66
|
fix: register RecordTypeStorageLocation
|
2024-01-09 13:58:11 -05:00 |
Derrick Hammer
|
ed97c03d16
|
refactor: switch to using a normal map
|
2024-01-09 13:57:35 -05:00 |
Derrick Hammer
|
316e3cddb0
|
refactor: add Original to interface
|
2024-01-09 12:50:52 -05:00 |
Derrick Hammer
|
799be312e1
|
refactor: add kind to interface
|
2024-01-09 12:49:16 -05:00 |
Derrick Hammer
|
1458cbe1d9
|
fix: ensure we use int everywhere for kind to try and avoid any weird bitwise or implied conversions
|
2024-01-09 12:47:58 -05:00 |
Derrick Hammer
|
13be047bf8
|
fix: revert back to only passing the network id if its set, due to dart bug being fixed
|
2024-01-09 10:39:58 -05:00 |
Derrick Hammer
|
ed2a47fca3
|
refactor: rename CID decode to CIDFromString
|
2024-01-09 08:23:35 -05:00 |
Derrick Hammer
|
4de11b414f
|
feat: implement HashQuery EncodeMsgpack
|
2024-01-09 07:07:00 -05:00 |
Derrick Hammer
|
6e34f052f3
|
feat: add NewHashRequest
|
2024-01-09 06:57:06 -05:00 |
Derrick Hammer
|
47847ea124
|
refactor: use types.StorageLocationType
|
2024-01-09 06:56:44 -05:00 |
Derrick Hammer
|
83be618dc0
|
feat: register hash query in protocol
|
2024-01-08 12:42:02 -05:00 |
Derrick Hammer
|
d51f5e4590
|
refactor: update HandleMessage and add hash to routing table
|
2024-01-08 12:41:38 -05:00 |
Derrick Hammer
|
350d9c8244
|
fix: switch to using hash cid and fix handling of list
|
2024-01-08 12:40:40 -05:00 |
Derrick Hammer
|
a593cac1ce
|
fix: always send networkId due to bug in dart implementation
|
2024-01-08 12:13:28 -05:00 |
Derrick Hammer
|
b70d350447
|
fix: need to store connectionUris
|
2024-01-08 12:11:54 -05:00 |
Derrick Hammer
|
8a47faecac
|
feat: implement HandshakeDone HandleMessage
|
2024-01-08 12:11:34 -05:00 |
Derrick Hammer
|
deee8b0e0f
|
feat: implement AnnouncePeers EncodeMsgpack
|
2024-01-08 12:10:56 -05:00 |
Derrick Hammer
|
5f3f3e98dc
|
refactor: add getters, peersToSend property, NewAnnounceRequest constructor, remove connected property
|
2024-01-08 12:10:41 -05:00 |
Derrick Hammer
|
e011d452d5
|
refactor: ToMessage isnt needed
|
2024-01-08 12:07:19 -05:00 |
Derrick Hammer
|
3c1a9cc526
|
refactor: add getter for nodeId
|
2024-01-08 08:40:18 -05:00 |
Derrick Hammer
|
61faaf5694
|
test: add tests for DecodeMessage
|
2024-01-08 08:28:10 -05:00 |
Derrick Hammer
|
b3a6d6ddcc
|
fix: DecodeMessage needs to be by ref
|
2024-01-08 08:21:18 -05:00 |
Derrick Hammer
|
a5ac5af154
|
test: add tests for EncodeMsgpack
|
2024-01-08 07:55:23 -05:00 |
Derrick Hammer
|
1020293b35
|
test: add tests for HandleMessage
|
2024-01-08 07:15:30 -05:00 |
Derrick Hammer
|
a488cb806f
|
test: use TestMain approach on protocol
|
2024-01-08 07:14:52 -05:00 |
Derrick Hammer
|
29cff7f368
|
refactor: add setter for handshake
|
2024-01-08 07:14:25 -05:00 |
Derrick Hammer
|
6a474c92dc
|
test: fix mock generation
|
2024-01-08 01:16:20 -05:00 |
Derrick Hammer
|
adef9b1eb4
|
test: add test for DecodeMessage
|
2024-01-08 01:02:04 -05:00 |
Derrick Hammer
|
a23f72ce12
|
test: add test for EncodeMsgpack
|
2024-01-08 00:44:26 -05:00 |
Derrick Hammer
|
86da64fa41
|
feat: add gomock testing
|
2024-01-08 00:18:30 -05:00 |
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
|
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
|
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 |