Sign Message Hash
v for public key recovery.
Sign With Extra Entropy
For additional security against side-channel attacks:Recover Public Key
Recover the signer’s public key from a signature:Verify Signature
Get Public Key From Private Key
Sign Ethereum Message (EIP-191)
Derive Address From Private Key
Error Handling
Testing
UseSecp256k1Test for deterministic signatures in unit tests:
Interface
Types
Security Notes
- Never reuse nonces. The library handles nonce generation via RFC 6979.
- Protect private keys. Never log or expose them.
- Use extraEntropy for additional protection in adversarial environments.
- Constant-time operations. The underlying implementation uses constant-time algorithms.
Related
- Keccak256 — Message hashing
- EIP-712 — Typed data signing
- Signers — High-level signing abstraction
- HDWallet — Key derivation
- Signer Service — Transaction signing service
- Voltaire Secp256k1 — Core secp256k1 documentation
- SEC 2 — secp256k1 curve specification

