IntelligenceAlgorithmsecdsa-secp256k1
ECDSA on secp256k1
The Elliptic Curve Digital Signature Algorithm on the secp256k1 curve from SEC 2. It signs transactions in Bitcoin, Ethereum and many other blockchains.
In short
What a quantum computer changes.
- Quantum effect
- Broken by Shor's algorithm
- Family
- Classical public keyRests on elliptic-curve discrete logarithm.
- What it means
- Shor's algorithm, run on a large, fault-tolerant quantum computer, factors large numbers and solves discrete logarithms, including those on elliptic curves, far faster than any known classical method. The security of this algorithm rests on elliptic-curve discrete logarithm, which is one of those problems. Anyone with such a machine could work out a private key from the matching public key. Signatures could then be forged, and data protected by a key exchange built on this algorithm could be decrypted, including traffic recorded now and kept for later. Longer keys do not fix this. The usual answer is to plan a move to a post-quantum or hybrid scheme.
This describes the family, not any project that uses it.
68 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| ellipticnpm | Pure JavaScript elliptic-curve library with ECDSA on secp256k1 and the NIST P curves, EdDSA on Ed25519, and ECDH. |
| secp256k1npm | Node.js bindings to the bitcoin-core libsecp256k1 C library for secp256k1 ECDSA signing, verification and ECDH, with an elliptic-based fallback in browsers. |
| tiny-secp256k1npm | The bitcoin-core libsecp256k1 C library compiled to WebAssembly through a Rust crate, exposing secp256k1 ECDSA, BIP340 Schnorr signatures and point and scalar arithmetic. |
| @noble/curvesnpm | Pure TypeScript elliptic-curve library: ECDSA on secp256k1 and the NIST P curves, BIP340 Schnorr, Ed25519 and Ed448, X25519 and X448, ECDH, BLS signatures and pairings on BLS12-381 and BN254, FROST threshold signatures and the Poseidon hash. |
| @noble/secp256k1npm | Small pure TypeScript secp256k1 library with RFC 6979 ECDSA, BIP340 Schnorr signatures and ECDH. |
| eccryptonpm | Elliptic-curve library for Node.js and browsers offering ECDSA, ECDH and ECIES on secp256k1 only, with ECIES built from SHA-512, HMAC-SHA-256 and AES-256-CBC. |
| jsrsasignnpm | Pure JavaScript library for RSA, RSA-PSS, ECDSA and DSA signatures, hashes and HMAC, PKCS key formats, X.509 certificates, CRL, OCSP, CMS and JWS/JWT. |
| @peculiar/webcryptonpm | WebCrypto API implementation for Node.js on top of the built-in crypto module, adding curves such as secp256k1, brainpool, Ed448 and X448 and non-standard mechanisms such as DES and RSAES-PKCS1-v1_5. |
| crypto-browserifynpm | Browser port of the Node.js crypto module that re-exports the browserify packages for hashes, HMAC, PBKDF2, AES, Diffie-Hellman, ECDH, RSA and ECDSA signing and RSA encryption. |
| browserify-signnpm | Node-style createSign and createVerify for browsers, covering RSA PKCS#1 v1.5, DSA and ECDSA on secp256k1 and the NIST P curves. |
| openpgpnpm | OpenPGP.js, a JavaScript implementation of OpenPGP (RFC 9580): RSA, DSA, ECDSA and ECDH on NIST, brainpool and secp256k1 curves, Ed25519, Ed448, X25519 and X448, AES with GCM, OCB and EAX, and Argon2 key derivation. |
| ethersnpm | Ethereum library with secp256k1 signing, recovery and ECDH, Keccak-256, SHA-2, RIPEMD-160, HMAC, PBKDF2 and scrypt helpers, BIP-39 and BIP-32 wallets, and encrypted JSON keystores. |
| @ethersproject/signing-keynpm | The ethers v5 sub-package for secp256k1 signing, verification, public key recovery and ECDH shared secrets. |
| @ethersproject/hdnodenpm | The ethers v5 sub-package for BIP-32 key derivation and BIP-39 mnemonics over secp256k1. |
| web3npm | Ethereum JavaScript API whose accounts module signs with secp256k1, hashes with Keccak-256 and encrypts V3 keystores with scrypt or PBKDF2 and AES-128-CTR. |
| web3-eth-accountsnpm | The web3.js accounts package: secp256k1 signing and recovery, Keccak-256 message hashing, and V3 keystores encrypted with scrypt or PBKDF2 and AES-128-CTR. |
| viemnpm | TypeScript Ethereum interface with secp256k1 local accounts, BIP-39 and BIP-32 accounts, WebAuthn P-256 accounts, and Keccak-256, SHA-256 and RIPEMD-160 utilities. |
| ethereum-cryptographynpm | Collection of the primitives Ethereum uses: secp256k1, BN254 and BLS12-381 curves, Keccak, SHA-2, RIPEMD-160, BLAKE2b, PBKDF2, scrypt, AES, BIP-32, BIP-39 and random bytes. |
| @ethereumjs/utilnpm | EthereumJS shared utilities, including secp256k1 signature recovery and validation and EIP-7702 authorization signing. |
| ethereumjs-utilnpm | The pre-scoped EthereumJS utility package with Keccak, SHA-256 and RIPEMD-160 hashing and secp256k1 signing and recovery. |
| @ethereumjs/walletnpm | EthereumJS wallet utilities for secp256k1 key creation, BIP-32 HD keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| ethereumjs-walletnpm | The former name of the EthereumJS wallet package: secp256k1 keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| @metamask/eth-sig-utilnpm | MetaMask signing functions for personal_sign, EIP-712 typed data and EIP-7702 authorizations over secp256k1, plus x25519-xsalsa20-poly1305 message encryption. |
| eth-sig-utilnpm | The former MetaMask package for personal_sign and EIP-712 typed data signing and recovery over secp256k1. |
| micro-eth-signernpm | Minimal Ethereum library for secp256k1 transaction and message signing, legacy and EIP-2335 keystores, EIP-2333 key derivation, and KZG and PeerDAS blob commitments. |
| eth-cryptonpm | Ethereum helper library for secp256k1 identities, signing and recovery, Keccak-256 hashing, and ECIES encryption to public keys. |
| @metamask/key-treenpm | MetaMask interface over BIP-39, BIP-32, BIP-44 and SLIP-10 key derivation for secp256k1 and Ed25519 keys. |
| bitcoinjs-libnpm | Bitcoin transaction and PSBT library that hashes with SHA-256 and RIPEMD-160 and signs and verifies ECDSA and Taproot Schnorr signatures through a pluggable secp256k1 backend. |
| ecpairnpm | Bitcoin secp256k1 key pair class with ECDSA and Schnorr signing and verification on top of an injected secp256k1 library. |
| bitcoinjs-messagenpm | Signs and verifies Bitcoin signed messages with secp256k1 ECDSA over a double SHA-256 message hash. |
| @bitcoinerlab/secp256k1npm | A tiny-secp256k1 compatible secp256k1 library for ECDSA and BIP-340 Schnorr signatures, built on noble-curves. |
| @scure/btc-signernpm | Bitcoin transaction and PSBT library with secp256k1 ECDSA, BIP-340 Schnorr and Taproot signing, MuSig2, and SHA-256 and RIPEMD-160 script hashing. |
| bip32npm | BIP-32 hierarchical deterministic keys over secp256k1, using HMAC-SHA512 for derivation and Hash160 for fingerprints, with ECDSA and Schnorr signing through an injected secp256k1 library. |
| @scure/bip32npm | BIP-32 hierarchical deterministic wallets over secp256k1, with HMAC-SHA512 derivation, Hash160 fingerprints and ECDSA signing. |
| hdkeynpm | BIP-32 hierarchical deterministic keys with HMAC-SHA512 derivation and secp256k1 signing and verification. |
| starknetnpm | Starknet JavaScript SDK with Stark curve signing, Pedersen, Poseidon and Keccak hashing, and an Ethereum secp256k1 signer for accounts. |
| @aztec/bb.jsnpm | WebAssembly and native build of the Barretenberg prover with UltraHonk proving over BN254, Pedersen, Poseidon2 and BLAKE2s hashing, ECDSA on secp256k1 and P-256, Grumpkin Schnorr signatures and AES. |
| @polkadot/util-cryptonpm | Polkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON. |
| @polkadot/wasm-cryptonpm | WebAssembly build of the Rust primitives behind @polkadot/util-crypto: sr25519, Ed25519, secp256k1, BLAKE2b, Keccak, SHA-2, HMAC, PBKDF2, scrypt and BIP-39. |
| @polkadot/keyringnpm | Polkadot key management for sr25519, Ed25519 and secp256k1 key pairs, with encrypted JSON export using scrypt and NaCl secretbox. |
| @cosmjs/cryptonpm | CosmJS cryptography: secp256k1 and Ed25519 signing, SHA-2, Keccak-256, RIPEMD-160, HMAC, BIP-39, SLIP-10, Argon2id and XChaCha20-Poly1305. |
| @libp2p/cryptonpm | libp2p key and crypto primitives: Ed25519, secp256k1, ECDSA P-256, P-384 and P-521, and RSA keys, ephemeral ECDH, AES-GCM, HMAC and PBKDF2. |
| @mysten/suinpm | Sui TypeScript SDK with Ed25519, secp256k1, secp256r1 and ML-DSA-65 key pairs, passkeys, multisig, BLAKE2b addresses and zkLogin Poseidon hashing. |
| near-api-jsnpm | NEAR Protocol JavaScript library whose key pairs and signers support Ed25519, secp256k1 and ML-DSA-65. |
| @taquito/signernpm | Tezos in-memory signer for Ed25519, secp256k1, P-256, BLS and ML-DSA-44 keys, with BIP-39 mnemonics and PBKDF2 and NaCl secretbox encrypted secret keys. |
| @aptos-labs/ts-sdknpm | Aptos TypeScript SDK with Ed25519, secp256k1 and secp256r1 WebAuthn accounts, keyless accounts verified with Groth16 proofs over BN254 and Poseidon, and AES-GCM payload encryption. |
| k256crates.io | Pure Rust secp256k1 curve with ECDSA signing, verification and public key recovery, BIP 340 Schnorr signatures and ECDH. |
| ecdsacrates.io | Generic ECDSA signing and verification (FIPS 186-4, with RFC 6979 deterministic nonces) for any elliptic curve crate that supplies the arithmetic. |
| secp256k1crates.io | Rust bindings to the libsecp256k1 C library for secp256k1 ECDSA, BIP 340 Schnorr signatures and ECDH. |
| libsecp256k1crates.io | Pure Rust secp256k1 ECDSA signing, verification, public key recovery and shared secret derivation. |
| aws-lc-rscrates.io | ring-compatible Rust API over the AWS-LC C library, adding ML-KEM, ML-DSA, RSA encryption, raw AES modes and an optional FIPS build. |
| aws-lc-syscrates.io | Low-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps. |
| opensslcrates.io | Rust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation. |
| openssl-syscrates.io | Raw FFI declarations for the OpenSSL C library, used by the openssl crate. |
| botancrates.io | Rust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms. |
| josekitcrates.io | JOSE library (JWT, JWS, JWE, JWK) with HMAC, RSA, ECDSA, EdDSA, ECDH-ES, AES key wrap, AES-GCM and PBES2, backed by OpenSSL, AWS-LC or pure Rust crates. |
| bitcoincrates.io | The rust-bitcoin library for Bitcoin data structures, keys, addresses, PSBTs and BIP32, signing with libsecp256k1 (ECDSA and Taproot Schnorr) and hashing with SHA-256 and RIPEMD-160. |
| bip32crates.io | BIP32 hierarchical deterministic key derivation over secp256k1 using HMAC-SHA512, with k256 or libsecp256k1 key backends and optional BIP39 mnemonic seeds. |
| alloy-primitivescrates.io | Ethereum primitive types for Alloy, including a Keccak-256 helper, EIP-191 message hashing and an ECDSA secp256k1 signature type with public key and address recovery. |
| alloy-signercrates.io | The Alloy signer abstraction for producing Ethereum secp256k1 ECDSA signatures over hashes, EIP-191 messages, EIP-712 typed data and transactions. |
| alloy-signer-localcrates.io | Local Alloy signers for Ethereum: secp256k1 ECDSA private keys through k256 or libsecp256k1, with optional BIP-39 mnemonics, encrypted JSON keystores and YubiHSM2. |
| etherscrates.io | The ethers-rs Ethereum client library, which signs transactions with secp256k1 ECDSA and hashes with Keccak-256 through its sub-crates. |
| ethers-corecrates.io | Ethereum types and utilities for ethers-rs, including Keccak-256 hashing and secp256k1 ECDSA signature types with recovery. |
| ethers-signerscrates.io | Ethereum transaction and message signers for ethers-rs producing recoverable secp256k1 ECDSA signatures from private keys, Ledger and Trezor hardware wallets, YubiHSM2 and AWS KMS. |
| revm-precompilecrates.io | EVM precompiled contracts for revm: ecrecover (secp256k1), P-256 verification (RIP-7212), SHA-256, RIPEMD-160, the BLAKE2 compression function, modexp, BN254 operations and pairing, BLS12-381 operations (EIP-2537) and KZG point evaluation (EIP-4844). |
| sp-corecrates.io | Shared Substrate and Polkadot SDK types, including sr25519, Ed25519 and secp256k1 ECDSA key pairs and signatures and Blake2 and Keccak hashers. |
| near-cryptocrates.io | NEAR key and signature types for Ed25519, secp256k1 and ML-DSA-65 (FIPS 204), with an in-memory signer and a VRF module. |
| cosmrscrates.io | A Cosmos SDK transaction builder and signer that signs with secp256k1 ECDSA keys. |
2 listed
Sources
- FIPS 186-5: Digital Signature Standard (DSS)csrc.nist.govRetrieved 3 December 2026
- SEC 2: Recommended Elliptic Curve Domain Parameters, Version 2.0secg.orgRetrieved 3 December 2026
Full record
- Identifier
- ecdsa-secp256k1
- Kind
- signature
- Family
- Classical public key
- Rests on
- elliptic-curve discrete logarithm
- Quantum effect
- Broken by Shor's algorithm
Standards
- FIPS 186-5Digital Signature Standard (DSS)NIST, final, published 3 February 2023Checked 3 December 2026
- SEC 2SEC 2: Recommended Elliptic Curve Domain Parameters, Version 2.0SECG, informational, published 27 January 2010Checked 3 December 2026