Documentation
¶
Overview ¶
Package keys provides cryptographic key management primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
type Keyring interface {
Sign(msg []byte) ([]byte, error)
PubKey() types.PubKey
Alg() string
// DID return the DID of the key.
DID() string
// DIDKeyID returns the DID key ID of the key.
DIDKeyID() string
// Addr returns the bech32 address of the key.
Addr() string
}
Keyring defines the interface for a keyring that can sign messages.
Click to show internal directories.
Click to hide internal directories.