nwaku/waku/v2/protocol/waku_peer_exchange/rpc.nim

14 lines
346 B
Nim
Raw Normal View History

type
PeerExchangePeerInfo* = object
enr*: seq[byte] # RLP encoded ENR: https://eips.ethereum.org/EIPS/eip-778
PeerExchangeRequest* = object
numPeers*: uint64
PeerExchangeResponse* = object
peerInfos*: seq[PeerExchangePeerInfo]
PeerExchangeRpc* = object
request*: PeerExchangeRequest
response*: PeerExchangeResponse