Documentation
¶
Overview ¶
Package canonical provides the deterministic JSON representation used by Flow's durable identities. It implements the JSON Canonicalization Scheme from RFC 8785 over I-JSON-compatible values.
Index ¶
Constants ¶
View Source
const DefaultMaxDepth = 100
Variables ¶
Functions ¶
func ValidateCanonical ¶
ValidateCanonical validates one complete JSON value and requires that its bytes already use Flow's canonical representation. It does not construct a second canonical byte slice.
Types ¶
type Value ¶
Value is an immutable-by-convention canonical byte sequence and its digest. Call BytesCopy when bytes escape the owning operation.
func Canonicalize ¶
Canonicalize validates and canonicalizes one complete JSON value. A zero maxBytes disables the size bound.
Click to show internal directories.
Click to hide internal directories.