mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-01-29 21:26:02 +00:00
b843c8823c
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.
4 lines
102 B
Nim
4 lines
102 B
Nim
import
|
|
./dht/[providers_encoding, providers_messages]
|
|
|
|
export providers_encoding, providers_messages |