Function: verifyStampSignature()
verifyStampSignature(Defined in: turnkey.ts:193 Verifies a signature from a Turnkey stamp using ECDSA and SHA-256.publicKey,signature,signedData):Promise<boolean>
Parameters
publicKey
string
The public key of the authenticator (e.g. WebAuthn or P256 API key).
signature
string
The ECDSA signature in DER format.
signedData
string
The data that was signed (e.g. JSON-stringified Turnkey request body).
Returns
Promise<boolean>
- Returns true if the signature is valid, otherwise throws an error.