Library
Module
Module type
Parameter
Class
Class type
Rlp: Recursive Length Prefix format.
val rlpInt : int -> t
rlpInt i
encodes i
into an RlpData
element with big-endian with no zeros in front. Zero is encoded as the empty byte sequence. Raises Invalid_argument
when i
is negative.
val rlpBigInt : Big_int.big_int -> t
rlpBigInt
is similar to rlpInt
.
displayRope t
converts the RLP tree t
into a JSON-like string (represented as a Rope.t
).
val display : t -> string
displayRope t
converts the RLP tree t
into a JSON-like string (represented as a Rope.t
).
encode t
encodes the RLP tree structure into a byte string represented as a Rope.t