mirror of https://github.com/status-im/nim-eth.git
15 lines
243 B
Nim
15 lines
243 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
|