Documentation ¶
Index ¶
- type VerifiablePresentation
- type VerifiablePresentationBuilder
- func (v *VerifiablePresentationBuilder) AddVerifiableCredentials(vcs ...interface{})
- func (v *VerifiablePresentationBuilder) Build() (*VerifiablePresentation, error)
- func (v *VerifiablePresentationBuilder) SetContext(context []string)
- func (v *VerifiablePresentationBuilder) SetPresentationSubmission(p submission.PresentationSubmission) error
- func (v *VerifiablePresentationBuilder) SetProof(p interface{})
- func (v *VerifiablePresentationBuilder) SetType(t []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VerifiablePresentation ¶
type VerifiablePresentation struct { Context []string `json:"@context" validate:"required"` Type []string `json:"type" validate:"required"` PresentationSubmission *submission.PresentationSubmission `json:"presentation_submission" validate:"required"` VerifiableCredential []interface{} `json:"verifiableCredential" validate:"required"` Proof interface{} `json:"proof"` }
type VerifiablePresentationBuilder ¶
type VerifiablePresentationBuilder struct {
Presentation VerifiablePresentation
}
func NewVerifiablePresentationBuilder ¶
func NewVerifiablePresentationBuilder() *VerifiablePresentationBuilder
func (*VerifiablePresentationBuilder) AddVerifiableCredentials ¶
func (v *VerifiablePresentationBuilder) AddVerifiableCredentials(vcs ...interface{})
func (*VerifiablePresentationBuilder) Build ¶
func (v *VerifiablePresentationBuilder) Build() (*VerifiablePresentation, error)
func (*VerifiablePresentationBuilder) SetContext ¶
func (v *VerifiablePresentationBuilder) SetContext(context []string)
func (*VerifiablePresentationBuilder) SetPresentationSubmission ¶
func (v *VerifiablePresentationBuilder) SetPresentationSubmission(p submission.PresentationSubmission) error
func (*VerifiablePresentationBuilder) SetProof ¶
func (v *VerifiablePresentationBuilder) SetProof(p interface{})
func (*VerifiablePresentationBuilder) SetType ¶
func (v *VerifiablePresentationBuilder) SetType(t []string)
Click to show internal directories.
Click to hide internal directories.