Skip to content

lowSrs

lowSrs(signature): Uint8Array

Defined in: derive.ts:206

Canonicalize signature:r‖s with s normalised to the low half, and v dropped.

Only a plain secp256k1 ECDSA signature is accepted. A contract account or smart wallet answers signTypedData with an ABI-encoded blob whose leading bytes are structure rather than secret; deriving from those would mint a key an attacker could enumerate, so anything that is not 64 or 65 bytes with r, s ∈ [1, n−1] is refused.

ParameterType
signature`0x${string}`

Uint8Array