did

package
v0.0.0-...-0fc66b4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL