Documentation ¶
Index ¶
- func BuildMultiMethodResolver(methods []string) (*resolution.MultiMethodResolver, error)
- func ResolveKeyForDID(ctx context.Context, resolver resolution.Resolver, did, kid string) (pubKey crypto.PublicKey, err error)
- func VerifyTokenFromDID(ctx context.Context, resolver resolution.Resolver, did, kid string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMultiMethodResolver ¶
func BuildMultiMethodResolver(methods []string) (*resolution.MultiMethodResolver, error)
BuildMultiMethodResolver builds a multi method DID resolver from a list of methods to support resolution for
func ResolveKeyForDID ¶
func ResolveKeyForDID(ctx context.Context, resolver resolution.Resolver, did, kid string) (pubKey crypto.PublicKey, err error)
ResolveKeyForDID resolves a public key from a DID for a given KID.
func VerifyTokenFromDID ¶
func VerifyTokenFromDID(ctx context.Context, resolver resolution.Resolver, did, kid string, token keyaccess.JWT) error
VerifyTokenFromDID verifies that the information in the token was digitally signed by the public key associated with the public key of the verification method of the did's document. The passed in resolver is used to map from the did to the did document.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.