Module sd_jwt_payload

Source
Expand description

Expose the selective disclosure crate.

Macros§

json
Construct a serde_json::Value from a JSON literal.

Structs§

Disclosure
Represents an elements constructing a disclosure. Object properties and array elements disclosures are supported.
KeyBindingJwtClaims
Claims set for key binding JWT.
Map
Represents a JSON key/value type.
SdJwt
Representation of an SD-JWT of the format <Issuer-signed JWT>~<Disclosure 1>~<Disclosure 2>~...~<Disclosure N>~<optional KB-JWT>.
SdObjectDecoder
Substitutes digests in an SD-JWT object by their corresponding plain text values provided by disclosures.
SdObjectEncoder
Transforms a JSON object into an SD-JWT object by substituting selected values with their corresponding disclosure digests.
Sha256Hasher
An implementation of Hasher that uses the sha-256 hash function.

Enums§

Error
Value
Represents any valid JSON value.

Constants§

HEADER_TYP
SHA_ALG_NAME

Traits§

Hasher
Used to implement hash functions to be used for encoding/decoding.

Type Aliases§

Result
Alias for a Result with the error type Error.