method

package
v0.30.8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(hStorage managed.Wallet, method Method) (id core.DID, err error)

func NewKey

func NewKey(hStorage managed.Wallet) (id core.DID, err error)

func NewKeyFromDID

func NewKeyFromDID(
	hStorage managed.Wallet,
	didStr string,
) (
	id core.DID,
	err error,
)

func String added in v0.30.8

func String(d string) string

Types

type Key

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

func (Key) KID

func (k Key) KID() string

func (Key) Packager added in v0.30.8

func (k Key) Packager() api.Packager

func (Key) SignKey

func (k Key) SignKey() any

func (Key) Storage

func (k Key) Storage() managed.Wallet

func (Key) String

func (k Key) String() string

func (Key) VerKey added in v0.30.8

func (k Key) VerKey() string

TODO: this is mainly for indy but could be merged with SignKey?

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