Expand description
Serde serialization implementation for 256-bit integer types.
This implementation is very JSON-centric in that it serializes the integer
types as QUANTITIES
as specified in the Ethereum RPC. That is, integers
are encoded as "0x"
prefixed strings without extrenuous leading 0
s. For
negative signed integers, the string is prefixed with a "-"
sign.
Note that this module contains alternative serialization schemes that can
be used with #[serde(with = "...")]
.
TODO(nlordell): example!
Modules
Module for use with #[serde(with = "ethnum::serde::decimal")]
to specify
decimal string serialization for 256-bit integer types.
Module for use with #[serde(with = "ethnum::serde::permissive")]
to
specify extremely permissive serialization for 256-bit integer types.
Module for use with #[serde(with = "ethnum::serde::prefixed")]
to specify
prefixed string serialization for 256-bit integer types.