Skip to content

ecdsaVerify

ecdsaVerify(curve, data, sSignatureComponent, rSignatureComponent, xPubkeyComponent, yPubkeyComponent): boolean

Parameters

• curve: "Secp256k1" | "Secp256r1"

The curve being used

• data: StaticBytes<32>

The data that was signed

• sSignatureComponent: StaticBytes<32>

The s component of the lower-S signature

• rSignatureComponent: StaticBytes<32>

The r component of the lower-S signature

• xPubkeyComponent: StaticBytes<32>

The x component of the public key

• yPubkeyComponent: StaticBytes<32>

The y component of the public key

Returns

boolean

true if the signature is valid, false otherwise

Source

types/global.d.ts:1190