mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-10 06:15:44 +00:00
762415319c
* 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
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
|