lds

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LinkedDataSignature = "lds/ld-proof"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialEngine

type CredentialEngine struct {
	// contains filtered or unexported fields
}

func New

func New(prov provider) (*CredentialEngine, error)

func (*CredentialEngine) Accept

func (r *CredentialEngine) Accept(format string) bool

func (*CredentialEngine) CreateCredentialOffer

func (r *CredentialEngine) CreateCredentialOffer(_ *datastore.DID, subjectDID string, s *datastore.Schema,
	values []byte) (string, *decorator.AttachmentData, error)

func (*CredentialEngine) CreateSchema

func (r *CredentialEngine) CreateSchema(_ *datastore.DID, _ *datastore.Schema) (string, error)

func (*CredentialEngine) GetSchemaForProposal

func (r *CredentialEngine) GetSchemaForProposal(proposal []byte) (string, error)

func (*CredentialEngine) IssueCredential

func (r *CredentialEngine) IssueCredential(issuerDID *datastore.DID, s *datastore.Schema, offerID string,
	request decorator.AttachmentData, values map[string]interface{}) (*decorator.AttachmentData, error)

func (*CredentialEngine) RegisterSchema

func (r *CredentialEngine) RegisterSchema(_ *datastore.DID, _ *datastore.Schema) error

Jump to

Keyboard shortcuts

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