Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DIDFromPubKey ¶ added in v0.3.0
func DIDFromPubKey(pk cryptotypes.PubKey) (string, error)
DIDFromPubKey constructs and returns a DID from a public key.
func IsValidDID ¶ added in v0.3.0
IsValidDID verifies the validity of the specified did string.
func IssueModuleDID ¶ added in v0.3.0
IssueModuleDID produces a DID for a SourceHub module, based on its name.
The issued did uses a pseudo-method named "module", which simply appends the module name.
Types ¶
type DIDDocument ¶ added in v0.3.0
type KeyResolver ¶ added in v0.3.0
type KeyResolver struct {
}
func (*KeyResolver) Resolve ¶ added in v0.3.0
func (r *KeyResolver) Resolve(ctx context.Context, did string) (DIDDocument, error)
Click to show internal directories.
Click to hide internal directories.