key

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DIDMethod did method.
	DIDMethod = "key"
	// EncryptionKey encryption key.
	EncryptionKey = "encryptionKey"
)

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) Close

func (v *VDR) Close() error

Close frees resources being maintained by VDR.

func (*VDR) Create

func (v *VDR) Create(keyManager kms.KeyManager, didDoc *did.Doc,
	opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)

Create new DID document.

func (*VDR) Deactivate

func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error

Deactivate did doc.

func (*VDR) Read

func (v *VDR) Read(didKey string, opts ...vdrapi.ResolveOption) (*did.DocResolution, error)

Read expands did:key value to a DID document.

func (*VDR) Update

func (v *VDR) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error

Update did doc.

Jump to

Keyboard shortcuts

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