indy

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *VDRI)

Option configures the peer vdri

func WithIndyClient

func WithIndyClient(client indyClient) Option

func WithIndyVDRGenesisFile

func WithIndyVDRGenesisFile(genesisFile string) Option

func WithIndyVDRGenesisReader

func WithIndyVDRGenesisReader(genesisData io.ReadCloser) Option

func WithRefresh

func WithRefresh(refresh bool) Option

WithAccept option is for accept did method

type VDRI

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

Implements the VDRI interface for Hyperledger Indy networks

func New

func New(methodName string, opts ...Option) (*VDRI, error)

func (*VDRI) Accept

func (r *VDRI) Accept(method string) bool

func (*VDRI) Build

func (r *VDRI) Build(pubKey *vdriapi.PubKey, opts ...vdriapi.DocOpts) (*diddoc.Doc, error)

func (*VDRI) Close

func (r *VDRI) Close() error

func (*VDRI) Read

func (r *VDRI) Read(did string, opts ...vdriapi.ResolveOpts) (*diddoc.Doc, error)

func (*VDRI) Store

func (r *VDRI) Store(doc *did.Doc, by *[]vdriapi.ModifiedBy) error

Jump to

Keyboard shortcuts

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