ontdid

package
v0.0.0-...-270fe73 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OntVDRI

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

todo use sdk query from smart contract

func NewOntVDRI

func NewOntVDRI(ontsdk *sdk.OntologySdk, acct *sdk.Account, did string) *OntVDRI

func (OntVDRI) GetDIDDoc

func (o OntVDRI) GetDIDDoc(did string) (vdri.CommonDIDDoc, error)

func (*OntVDRI) IssueCredential

func (ontVdri *OntVDRI) IssueCredential(req *message.RequestCredential) (*message.IssueCredential, error)

func (*OntVDRI) OfferCredential

func (ontVdri *OntVDRI) OfferCredential(req *message.ProposalCredential) (*message.OfferCredential, error)

func (*OntVDRI) PresentProof

func (ontVdri *OntVDRI) PresentProof(req *message.RequestPresentation, db store.Store) (*message.Presentation, error)

func (OntVDRI) VerifyDID

func (o OntVDRI) VerifyDID(did string) bool

type SampleSubject

type SampleSubject struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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