Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHolderBinding ¶
func CreateHolderBinding(info *BindingInfo) (string, error)
CreateHolderBinding will create holder binding from binding info.
func CreatePresentation ¶
func CreatePresentation(combinedFormatForIssuance string, claimsToDisclose []string, opts ...Option) (string, error)
CreatePresentation is a convenience method to assemble combined format for presentation using selected disclosures (claimsToDisclose) and optional holder binding. This call assumes that combinedFormatForIssuance has already been parsed and verified using Parse() function.
Types ¶
type BindingInfo ¶
type BindingInfo struct { Payload BindingPayload Signer jose.Signer }
BindingInfo defines holder binding payload and signer.
type BindingPayload ¶
type BindingPayload struct { Nonce string `json:"nonce,omitempty"` Audience string `json:"aud,omitempty"` IssuedAt *jwt.NumericDate `json:"iat,omitempty"` }
BindingPayload represents holder binding payload.
type NoopSignatureVerifier ¶
type NoopSignatureVerifier struct { }
NoopSignatureVerifier is no-op signature verifier (signature will not get checked).
type Option ¶
type Option func(opts *options)
Option is a holder option.
func WithHolderBinding ¶
func WithHolderBinding(info *BindingInfo) Option
WithHolderBinding option to set optional holder binding.
type ParseOpt ¶
type ParseOpt func(opts *parseOpts)
ParseOpt is the SD-JWT Parser option.
func WithJWTDetachedPayload ¶
WithJWTDetachedPayload option is for definition of JWT detached payload.
func WithSignatureVerifier ¶
func WithSignatureVerifier(signatureVerifier jose.SignatureVerifier) ParseOpt
WithSignatureVerifier option is for definition of JWT detached payload.