method

package
v0.30.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(as api.AgentStorage, method Method) (id core.DID, err error)

func NewKey

func NewKey(as api.AgentStorage) (id core.DID, err error)

func NewKeyFromDID

func NewKeyFromDID(as api.AgentStorage, didStr string) (id core.DID, err error)

Types

type Key

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

func (Key) KID

func (k Key) KID() string

func (Key) SignKey

func (k Key) SignKey() any

func (Key) Storage

func (k Key) Storage() api.AgentStorage

func (Key) String

func (k Key) String() string

type Method

type Method int
const (
	MethodKey Method = 0 + iota
	MethodPeer
)

Jump to

Keyboard shortcuts

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