Expand description
RFC 8785 / JSON Canonicalization Scheme helpers.
These helpers canonicalize arbitrary JSON values before they are signed, verified, or hashed. The output is UTF-8 JSON with deterministic object key ordering, no insignificant whitespace, and RFC 8785-compatible number and string serialization.
Constants§
- HOLDER_
AUTHORIZATION_ CANONICAL_ TYPE - Canonicalized payload type string for holder authorization signatures.
- ISSUER_
AUTHORITY_ CANONICAL_ TYPE - Canonicalized payload type string for issuer authority signatures.
- PBRSA_
BLIND_ MSG_ CANONICAL_ TYPE - Canonicalized payload type string for holder-hidden blind-message information.
- PBRSA_
PUBLIC_ INFO_ CANONICAL_ TYPE - Canonicalized payload type string for issuer-visible public credential information.
- REVOCATION_
CANONICAL_ TYPE - Canonicalized payload type string for signed revocations.
Functions§
- canonicalize_
credential - Build JCS canonical bytes for a credential payload.
- canonicalize_
holder_ authorization - Build JCS canonical bytes for a holder authorization statement.
- canonicalize_
issuer_ authority - Build JCS canonical bytes for the issuer metadata signed in an issuer authority.
- canonicalize_
pbrsa_ blind_ msg - Build JCS canonical bytes for the PBRSA blind message.
- canonicalize_
pbrsa_ info - Build JCS canonical bytes for the PBRSA public credential info.
- canonicalize_
revocation - Build JCS canonical bytes for a signed revocation payload.