Skip to main content

Crate algonaut_encoding

Crate algonaut_encoding 

Source

Structs§

Bytes
A byte slice that round-trips through both JSON (base64 string) and msgpack (bin).
SignatureVisitor
Text
A string that round-trips through both JSON (string) and msgpack (bin rendered as lossy UTF-8).
U8_32Visitor
U8_64Visitor

Constants§

ZERO_ADDRESS
The zero address in base32-checksum format (32 bytes of zeros).

Functions§

decode_base64
deserialize_byte32_arr
deserialize_byte32_arr_opt
deserialize_bytes
deserialize_bytes32
deserialize_bytes64
deserialize_null_default
Deserialize a possibly-null value as T::default().
deserialize_opt_addr_string
Deserialize an optional address string, treating the zero address as None.
deserialize_opt_lenient_str
Deserialize an Option<String> byte-ish field leniently: a string is kept verbatim, a byte buffer is base64-encoded.
deserialize_vec_opt_to_vec
serialize_bytes