key

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VDRI

type VDRI struct {
}

VDRI implements did:key method support.

func New

func New() *VDRI

New returns new instance of VDRI that works with did:key method.

func (*VDRI) Accept

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

Accept accepts did:key method.

func (*VDRI) Build

func (v *VDRI) Build(pubKey *vdriapi.PubKey, opts ...vdriapi.DocOpts) (*did.Doc, error)

Build builds new DID document.

func (*VDRI) Close

func (v *VDRI) Close() error

Close frees resources being maintained by VDRI.

func (*VDRI) Read

func (v *VDRI) Read(didKey string, opts ...vdriapi.ResolveOpts) (*did.Doc, error)

Read expands did:key value to a DID document.

func (*VDRI) Store

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

Store saves a DID Document along with user key/signature.

Jump to

Keyboard shortcuts

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