Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyVerifiablePresentation ¶
func VerifyVerifiablePresentation(verifier proof.Verifier, def definition.PresentationDefinition, vp VerifiablePresentation) error
Types ¶
type PresentationRequest ¶
type PresentationRequest struct { ID string Definition definition.PresentationDefinition Proof *proof.Proof }
PresentationRequest: an instance of a presentation definition, looking to be formalized in the W3C as a "Verifiable Request". May be expanded to include any arbitrary metadata.
func (*PresentationRequest) GetProof ¶
func (p *PresentationRequest) GetProof() *proof.Proof
func (*PresentationRequest) SetProof ¶
func (p *PresentationRequest) SetProof(pr *proof.Proof)
type PresentationSubmission ¶
type PresentationSubmission struct {
// contains filtered or unexported fields
}
func NewPresentationSubmission ¶
func NewPresentationSubmission(requesterPubKey ed25519.PublicKey, responderSigner proof.Signer, request PresentationRequest) (*PresentationSubmission, error)
func (PresentationSubmission) FulfillPresentationRequestAsVP ¶
func (ps PresentationSubmission) FulfillPresentationRequestAsVP(creds []credential.VerifiableCredential) (*verifiablepresentation.VerifiablePresentation, error)
type VerifiablePresentation ¶
type VerifiablePresentation verifiablepresentation.VerifiablePresentation
Alias to allow us to extend the library's type
func (*VerifiablePresentation) GetProof ¶
func (v *VerifiablePresentation) GetProof() *proof.Proof
func (*VerifiablePresentation) IsEmpty ¶
func (v *VerifiablePresentation) IsEmpty() bool
func (*VerifiablePresentation) SetProof ¶
func (v *VerifiablePresentation) SetProof(p *proof.Proof)
Click to show internal directories.
Click to hide internal directories.