Skip to main content
Signature (SignatureType) is a branded cryptographic signature supporting secp256k1, p256 (secp256r1 / WebAuthn), and ed25519, with lossless conversion across 65-byte (r, s, v), EIP-2098 64-byte compact (r, vs), ASN.1 DER, hex, and RPC tuple formats, plus EIP-2 low-s canonicalization.

Wire Formats (secp256k1)

Quick Start

Import from @tevm/voltaire or @tevm/voltaire/Signature.

API Reference

Malleability Rule (EIP-2)

Every ECDSA signature (r,s,v)(r, s, v) on secp256k1 has a twin (r,N−s,v⊕1)(r, N - s, v \oplus 1) that verifies against the same digest and key. Ethereum rejects high-s signatures (s>N/2s > N/2) in transactions and EIP-7702 authorizations. Signature.normalize maps any high-s signature to its unique low-s canonical form.
  • PrivateKey — 32-byte signing keys
  • PublicKey — 64-byte / 33-byte verification keys
  • Secp256k1 — Low-level elliptic curve signing and recovery