key

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VDR

type VDR struct {
}

VDR implements did:key method support.

func New

func New() *VDR

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

func (*VDR) Accept

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

Accept accepts did:key method.

func (*VDR) Build

func (v *VDR) Build(pubKey *vdrapi.PubKey, opts ...vdrapi.DocOpts) (*did.Doc, error)

Build builds new DID document.

func (*VDR) Close

func (v *VDR) Close() error

Close frees resources being maintained by VDR.

func (*VDR) Read

func (v *VDR) Read(didKey string, opts ...vdrapi.ResolveOpts) (*did.Doc, error)

Read expands did:key value to a DID document.

func (*VDR) Store

func (v *VDR) Store(doc *did.Doc, by *[]vdr.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