This website requires JavaScript.
Explore
Help
Sign In
status-im
/
libp2p-dht
mirror of
https://github.com/status-im/libp2p-dht.git
Watch
2
Star
0
Fork
You've already forked libp2p-dht
0
Code
Issues
Projects
Releases
Wiki
Activity
76004d35af
libp2p-dht
/
libp2pdht
/
dht.nim
4 lines
102 B
Nim
Raw
Normal View
History
Unescape
Escape
feat: reorg project to add nimble build system Project has been updated to use nimble as a build system. All required dependencies have been added. All nim-eth mirrored files were added to a private folder in the libp2pdht module. A libp2pdht/discv5 module was added to alias the nim-eth modules (which will change over time). Test have been updated to use status-im/asynctest. This PR uses a branch of asynctest that supports async suite before/after. This seemed like the only the tests would work without throwing gcsafe errors. All tests working.
2022-02-24 11:56:11 +00:00
import
feat: merge add/get providers with discv5 Merge the add/get providers messages with the discovery v5 messages inside of the discovery v5 code. Discovery v5 uses RLP encoding, while the add/get providers uses protobufs, as per the libp2p spec. The merge of these two uses RLP on the outer wrapper of the message, and a protobuf-encoded blob on the “inside” for the add/get providers messages only. Eventually this needs to change so that we use protobufs only. There is still some code in the libp2pdht/dht directory, which is being read from the discovery v5 directory. Eventually these two should merge as well.
2022-03-10 06:02:24 +00:00
.
/
dht
/
[
providers_encoding
,
providers_messages
]
feat: reorg project to add nimble build system Project has been updated to use nimble as a build system. All required dependencies have been added. All nim-eth mirrored files were added to a private folder in the libp2pdht module. A libp2pdht/discv5 module was added to alias the nim-eth modules (which will change over time). Test have been updated to use status-im/asynctest. This PR uses a branch of asynctest that supports async suite before/after. This seemed like the only the tests would work without throwing gcsafe errors. All tests working.
2022-02-24 11:56:11 +00:00
feat: merge add/get providers with discv5 Merge the add/get providers messages with the discovery v5 messages inside of the discovery v5 code. Discovery v5 uses RLP encoding, while the add/get providers uses protobufs, as per the libp2p spec. The merge of these two uses RLP on the outer wrapper of the message, and a protobuf-encoded blob on the “inside” for the add/get providers messages only. Eventually this needs to change so that we use protobufs only. There is still some code in the libp2pdht/dht directory, which is being read from the discovery v5 directory. Eventually these two should merge as well.
2022-03-10 06:02:24 +00:00
export
providers_encoding
,
providers_messages