Page
Library
Module
Module type
Parameter
Class
Class type
Source
RlpRlp: Recursive Length Prefix format.
val rlpInt : int -> trlpInt 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 -> trlpBigInt is similar to rlpInt.
displayRope t converts the RLP tree t into a JSON-like string (represented as a Rope.t).
val display : t -> stringdisplayRope 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