Skip to main content

createJWK() function

Signature:

export declare function createJWK(
keyType: JwkDidSupportedKeyTypes,
pubKey: string | Uint8Array,
passedKeyUse?: KeyUse,
): JsonWebKey | undefined

Parameters

ParameterTypeDescription
keyTypeJwkDidSupportedKeyTypes
pubKeystring | Uint8Array
passedKeyUseKeyUse(Optional)

Returns:

JsonWebKey | undefined