mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-25 22:29:20 +00:00
16 lines
245 B
Nim
16 lines
245 B
Nim
import
|
|
stew/bitseqs,
|
|
../rlp
|
|
|
|
type
|
|
Bytes = seq[byte]
|
|
|
|
proc read*(rlp: var Rlp, T: type BitSeq): T {.inline.} =
|
|
T read(rlp, Bytes)
|
|
|
|
proc append*(writer: var RlpWriter, value: BitSeq) =
|
|
append(writer, Bytes(value))
|
|
|
|
export
|
|
bitseqs, rlp
|