Skip to content

ecdsaPkRecover

ecdsaPkRecover(curve, data, recoveryID, sSignatureComponent, rSignatureComponent): ECDSAPubKey

Parameters

curve: "Secp256k1" | "Secp256r1"

The curve being used

data: StaticBytes<32>

The data that was signed

recoveryID: uint64

The recovery ID

sSignatureComponent: StaticBytes<32>

The s component of the lower-S signature

rSignatureComponent: StaticBytes<32>

The r component of the lower-S signature

Returns

ECDSAPubKey

The X and Y components of the recovered public key

Source

types/global.d.ts:1220