Documentation ¶
Index ¶
Constants ¶
View Source
const Base58BTCMultibase byte = 'z'
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyRegistry ¶
type KeyRegistry struct {
// contains filtered or unexported fields
}
KeyRegistry implements a limit DID registry for the "key" method
func NewKeyRegistry ¶
func NewKeyRegistry() *KeyRegistry
func (*KeyRegistry) Create ¶
func (r *KeyRegistry) Create(key types.PubKey) (string, error)
Create generates a DID Key identifier from a PubKey Currently only cosmos-sdk secp256k1 keys are supported
func (*KeyRegistry) ResolveKey ¶
func (r *KeyRegistry) ResolveKey(did string) (types.PubKey, error)
Click to show internal directories.
Click to hide internal directories.