libp2p-dht/libp2pdht/dht/providers_messages.nim

16 lines
266 B
Nim

import
../discv5/[node],
libp2p/routing_record
type
AddProviderMessage* = object
cId*: NodeId
prov*: SignedPeerRecord
GetProvidersMessage* = object
cId*: NodeId
ProvidersMessage* = object
total*: uint32
provs*: seq[SignedPeerRecord]