Secp256k1 Private Key Canonicalizer - Interactive Demo
Generate a random secp256k1 private key and see the canonicalization process in action.
Eccanon ensures that secp256k1 private keys always produce public keys
starting with "02" (even y-coordinate). When a private key produces a
public key starting with "03" (odd y-coordinate), we mathematically
negate it by computing (n - privateKey) mod n
where n is
the secp256k1 curve order. This preserves all cryptographic properties
while providing a canonical representation.