nooschain / crypto/canonicalize / canonicalize
Function: canonicalize()
canonicalize(
value):string
Defined in: crypto/canonicalize.ts:15
Serializes a JSON-compatible value using RFC 8785-style canonical ordering.
Throws when a value cannot be represented as canonical JSON, which prevents non-deterministic objects from entering hash/signature paths.
Parameters
value
unknown
Returns
string