Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBBSProofFn ¶ added in v0.1.6
func AddBBSProofFn(p Provider) func(presentation *verifiable.Presentation) error
AddBBSProofFn add BBS+ proof to the Presentation.
func PresentationDefinition ¶ added in v0.1.6
func PresentationDefinition(p Provider, opts ...OptPD) presentproof.Middleware
PresentationDefinition the helper function for the present proof protocol that creates VP based on credentials that were provided in the attachments according to the requested presentation definition.
func SavePresentation ¶
func SavePresentation(p Provider) presentproof.Middleware
SavePresentation the helper function for the present proof protocol which saves the presentations.
Types ¶
type OptPD ¶ added in v0.1.6
type OptPD func(o *pdOptions)
OptPD represents option function for the PresentationDefinition middleware.
func WithAddProofFn ¶ added in v0.1.6
func WithAddProofFn(sign func(presentation *verifiable.Presentation) error) OptPD
WithAddProofFn allows providing function that will sign the Presentation.
type Provider ¶
type Provider interface { VerifiableStore() storeverifiable.Store VDRegistry() vdrapi.Registry KMS() kms.KeyManager Crypto() crypto.Crypto JSONLDDocumentLoader() ld.DocumentLoader }
Provider contains dependencies for the SavePresentation middleware function.
Click to show internal directories.
Click to hide internal directories.