Try it Live
Run Secp256k1 examples in the interactive playground
Secp256k1 Test Vectors
Comprehensive test vectors from official standards to verify implementation correctness.RFC 6979 Deterministic ECDSA
Test vectors from RFC 6979 Section A.2.5 (secp256k1 + SHA-256).Test Case 1: “sample”
Private key:Test Case 2: “test”
Private key:IETF Test Vectors
Private Key = 1
Private key:Private Key = n - 1
Private key (SECP256K1_N - 1):Ethereum Test Vectors
Transaction Signature
Transaction (legacy format):EIP-191 Personal Sign
Message: “Hello Ethereum” Prefixed message:Edge Cases
All-Zero Hash
Private key:All-Ones Hash
Private key:Malleability Tests
Low-s Enforcement
Original signature:Invalid Input Tests
Invalid Private Keys
Invalid Signatures
Invalid Public Keys
Cross-Implementation Verification
Noble vs OpenSSL
Test that our TypeScript implementation (using @noble/curves) matches OpenSSL results:Ethereum Clients
Test vectors used by Go-Ethereum, Nethermind, etc: Geth test vector:Performance Benchmarks
Expected performance ranges for reference implementations:Related
- Signing - ECDSA signing implementation
- Verification - Signature verification
- Security - Security considerations
- RFC 6979 - Deterministic ECDSA
- SEC 2 - secp256k1 curve parameters

