Skip to content

Function: pinMatchesKey()

function pinMatchesKey(pin, verifyingKey): boolean;

Defined in: rine-core/dist/src/operator-pin.d.ts:29

Whether verifyingKey, the key that verified a signature, is the pinned key.

Fails closed on every input that is not a real key: a missing verifying key, a pin that is not canonical unpadded base64url of exactly 32 bytes, or a length mismatch. The pin never compares equal to nothing.

Parameters

Parameter Type
pin OperatorPin
verifyingKey Uint8Array\<ArrayBufferLike> | null

Returns

boolean