checkPublicJwk
Function: checkPublicJwk()
checkPublicJwk(
jwk,what):Promise<{fingerprint:string;jwk:JsonWebKey; }>
Defined in: packages/core/src/models/userkeys.model.ts:123
Check a P-256 public JWK: no private part, coordinates of 32 bytes, a point on the curve
Parameters
jwk
unknown
submitted JWK
what
string
key name, for the errors
Returns
Promise<{ fingerprint: string; jwk: JsonWebKey; }>
the normalised public JWK and its fingerprint