presexchange

package
v0.0.0-...-55a0270 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Disclosure

type Disclosure bool
const (
	Limited Disclosure = true
	Open    Disclosure = false
)

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL