Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Prefix did:jwk prefix
Prefix = "did:jwk"
)
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.
Click to show internal directories.
Click to hide internal directories.