verifiablepresentation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

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 (*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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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