Skip to main content

Module canonical

Module canonical 

Source

Enums§

CanonicalError
Failure returned by canonical serialisation helpers.

Functions§

canonical_json_bytes
Serialises any Serialize value to deterministic compact JSON with lexicographically sorted object keys at every nesting depth.
from_canonical_cbor
Strictly decodes a minicbor::Decode<()> value from complete canonical CBOR bytes without trailing bytes.
sha256_digest
Computes the raw 32-byte SHA-256 digest of bytes.
sha256_hex
Computes the 64-character lowercase hex SHA-256 digest of bytes.
to_canonical_cbor
Serialises any minicbor::Encode<()> value into canonical CBOR bytes.