nim-eth/eth/rlp/bitseqs.nim
Kim De Mey 762415319c
Add build_dcli target and add it to CI (#344)
* Add build_dcli target and add it to CI

* Fix local imports for dcli

* And use local imports for all other files too

* Use local imports in tests and rlpx protocols
2021-04-06 13:33:24 +02:00

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