didstore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDidMethodNotSupported = errors.New("did method not supported")

ErrDidMethodNotSupported is returned when a DID method not supported

Functions

This section is empty.

Types

type DidMethod

type DidMethod interface {
	Put(doc *did.Doc, by *[]ModifiedBy) error
	Get(id string) (*did.Doc, error)
	Accept(method string) bool
}

DidMethod expose did method store methods

type ModifiedBy

type ModifiedBy struct {
	Key string `json:"key,omitempty"`
	Sig string `json:"sig,omitempty"`
}

ModifiedBy key/signature used to update the DID Document

type Storage

type Storage interface {
	Put(doc *did.Doc) error
	Get(id string) (*did.Doc, error)
}

Storage expose did store methods

Jump to

Keyboard shortcuts

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