nwaku/waku/waku_peer_exchange/rpc.nim

14 lines
346 B
Nim

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