nim-codex-dht/libp2pdht/dht/value_messages.nim
Csaba Kiraly fc7d04e3bb
add DHT storage (addValue/getValue) functionality
this is a minimal implementation, with lots of
work still needed.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-07-11 10:52:03 +02:00

15 lines
213 B
Nim

import
../discv5/[node]
type
AddValueMessage* = object
cId*: NodeId
value*: seq[byte]
GetValueMessage* = object
cId*: NodeId
ValueMessage* = object
#total*: uint32
value*: seq[byte]