Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Prefix did:jwk prefix Prefix = "did:jwk" JWS2020Context = "https://w3id.org/security/suites/jws-2020/v1" )
Variables ¶
This section is empty.
Functions ¶
func GetSupportedDIDJWKTypes ¶
GetSupportedDIDJWKTypes returns all supported did:jwk key types
func IsSupportedJWKType ¶
IsSupportedJWKType returns if a given key type is supported for the did:jwk method
Types ¶
type JWK ¶
type JWK string
func CreateDIDJWK ¶
func CreateDIDJWK(publicKeyJWK jwx.PublicKeyJWK) (*JWK, error)
CreateDIDJWK creates a did:jwk from a JWK public key by following the steps in the spec: https://github.com/quartzjer/did-jwk/blob/main/spec.md
func GenerateDIDJWK ¶
GenerateDIDJWK takes in a key type value that this library supports and constructs a conformant did:jwk identifier.
type Resolver ¶
type Resolver struct{}
func (Resolver) Resolve ¶
func (Resolver) Resolve(_ context.Context, id string, _ ...resolution.ResolutionOption) (*resolution.ResolutionResult, error)
Click to show internal directories.
Click to hide internal directories.