Skip to content

Strip the trailing recovery byte (v) from a 65-byte EIP-712 signature, leaving the 64-byte r || s form that the chain's ethsecp256k1.VerifySignature (and…

stripRecoveryByte(signatureHex): Uint8Array

Defined in: packages/bitbadgesjs-sdk/src/eip712/recover.ts:52

Strip the trailing recovery byte (v) from a 65-byte EIP-712 signature, leaving the 64-byte r || s form that the chain's ethsecp256k1.VerifySignature (and underlying geth crypto.VerifySignature) expects. Wallet outputs always include v; the chain's verifier always discards it.

Parameters

signatureHex

string

Returns

Uint8Array

Edit this page on GitHub