Skip to content
NOUMENResearch
Network
Engineering
, home page

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

Packages that provide ECDSA on secp256k1
PackageProvides
ellipticnpmPure JavaScript elliptic-curve library with ECDSA on secp256k1 and the NIST P curves, EdDSA on Ed25519, and ECDH.
secp256k1npmNode.js bindings to the bitcoin-core libsecp256k1 C library for secp256k1 ECDSA signing, verification and ECDH, with an elliptic-based fallback in browsers.
tiny-secp256k1npmThe bitcoin-core libsecp256k1 C library compiled to WebAssembly through a Rust crate, exposing secp256k1 ECDSA, BIP340 Schnorr signatures and point and scalar arithmetic.
@noble/curvesnpmPure 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/secp256k1npmSmall pure TypeScript secp256k1 library with RFC 6979 ECDSA, BIP340 Schnorr signatures and ECDH.
eccryptonpmElliptic-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.
jsrsasignnpmPure 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/webcryptonpmWebCrypto 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-browserifynpmBrowser 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-signnpmNode-style createSign and createVerify for browsers, covering RSA PKCS#1 v1.5, DSA and ECDSA on secp256k1 and the NIST P curves.
openpgpnpmOpenPGP.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.
ethersnpmEthereum 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-keynpmThe ethers v5 sub-package for secp256k1 signing, verification, public key recovery and ECDH shared secrets.
@ethersproject/hdnodenpmThe ethers v5 sub-package for BIP-32 key derivation and BIP-39 mnemonics over secp256k1.
web3npmEthereum 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-accountsnpmThe web3.js accounts package: secp256k1 signing and recovery, Keccak-256 message hashing, and V3 keystores encrypted with scrypt or PBKDF2 and AES-128-CTR.
viemnpmTypeScript 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-cryptographynpmCollection 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/utilnpmEthereumJS shared utilities, including secp256k1 signature recovery and validation and EIP-7702 authorization signing.
ethereumjs-utilnpmThe pre-scoped EthereumJS utility package with Keccak, SHA-256 and RIPEMD-160 hashing and secp256k1 signing and recovery.
@ethereumjs/walletnpmEthereumJS wallet utilities for secp256k1 key creation, BIP-32 HD keys and V3 keystores encrypted with scrypt or PBKDF2 and AES.
ethereumjs-walletnpmThe former name of the EthereumJS wallet package: secp256k1 keys and V3 keystores encrypted with scrypt or PBKDF2 and AES.
@metamask/eth-sig-utilnpmMetaMask signing functions for personal_sign, EIP-712 typed data and EIP-7702 authorizations over secp256k1, plus x25519-xsalsa20-poly1305 message encryption.
eth-sig-utilnpmThe former MetaMask package for personal_sign and EIP-712 typed data signing and recovery over secp256k1.
micro-eth-signernpmMinimal Ethereum library for secp256k1 transaction and message signing, legacy and EIP-2335 keystores, EIP-2333 key derivation, and KZG and PeerDAS blob commitments.
eth-cryptonpmEthereum helper library for secp256k1 identities, signing and recovery, Keccak-256 hashing, and ECIES encryption to public keys.
@metamask/key-treenpmMetaMask interface over BIP-39, BIP-32, BIP-44 and SLIP-10 key derivation for secp256k1 and Ed25519 keys.
bitcoinjs-libnpmBitcoin 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.
ecpairnpmBitcoin secp256k1 key pair class with ECDSA and Schnorr signing and verification on top of an injected secp256k1 library.
bitcoinjs-messagenpmSigns and verifies Bitcoin signed messages with secp256k1 ECDSA over a double SHA-256 message hash.
@bitcoinerlab/secp256k1npmA tiny-secp256k1 compatible secp256k1 library for ECDSA and BIP-340 Schnorr signatures, built on noble-curves.
@scure/btc-signernpmBitcoin transaction and PSBT library with secp256k1 ECDSA, BIP-340 Schnorr and Taproot signing, MuSig2, and SHA-256 and RIPEMD-160 script hashing.
bip32npmBIP-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/bip32npmBIP-32 hierarchical deterministic wallets over secp256k1, with HMAC-SHA512 derivation, Hash160 fingerprints and ECDSA signing.
hdkeynpmBIP-32 hierarchical deterministic keys with HMAC-SHA512 derivation and secp256k1 signing and verification.
starknetnpmStarknet JavaScript SDK with Stark curve signing, Pedersen, Poseidon and Keccak hashing, and an Ethereum secp256k1 signer for accounts.
@aztec/bb.jsnpmWebAssembly 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-cryptonpmPolkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON.
@polkadot/wasm-cryptonpmWebAssembly build of the Rust primitives behind @polkadot/util-crypto: sr25519, Ed25519, secp256k1, BLAKE2b, Keccak, SHA-2, HMAC, PBKDF2, scrypt and BIP-39.
@polkadot/keyringnpmPolkadot key management for sr25519, Ed25519 and secp256k1 key pairs, with encrypted JSON export using scrypt and NaCl secretbox.
@cosmjs/cryptonpmCosmJS cryptography: secp256k1 and Ed25519 signing, SHA-2, Keccak-256, RIPEMD-160, HMAC, BIP-39, SLIP-10, Argon2id and XChaCha20-Poly1305.
@libp2p/cryptonpmlibp2p 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/suinpmSui TypeScript SDK with Ed25519, secp256k1, secp256r1 and ML-DSA-65 key pairs, passkeys, multisig, BLAKE2b addresses and zkLogin Poseidon hashing.
near-api-jsnpmNEAR Protocol JavaScript library whose key pairs and signers support Ed25519, secp256k1 and ML-DSA-65.
@taquito/signernpmTezos 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-sdknpmAptos 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.ioPure Rust secp256k1 curve with ECDSA signing, verification and public key recovery, BIP 340 Schnorr signatures and ECDH.
ecdsacrates.ioGeneric ECDSA signing and verification (FIPS 186-4, with RFC 6979 deterministic nonces) for any elliptic curve crate that supplies the arithmetic.
secp256k1crates.ioRust bindings to the libsecp256k1 C library for secp256k1 ECDSA, BIP 340 Schnorr signatures and ECDH.
libsecp256k1crates.ioPure Rust secp256k1 ECDSA signing, verification, public key recovery and shared secret derivation.
aws-lc-rscrates.ioring-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.ioLow-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps.
opensslcrates.ioRust 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.ioRaw FFI declarations for the OpenSSL C library, used by the openssl crate.
botancrates.ioRust 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.ioJOSE 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.ioThe 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.ioBIP32 hierarchical deterministic key derivation over secp256k1 using HMAC-SHA512, with k256 or libsecp256k1 key backends and optional BIP39 mnemonic seeds.
alloy-primitivescrates.ioEthereum 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.ioThe Alloy signer abstraction for producing Ethereum secp256k1 ECDSA signatures over hashes, EIP-191 messages, EIP-712 typed data and transactions.
alloy-signer-localcrates.ioLocal Alloy signers for Ethereum: secp256k1 ECDSA private keys through k256 or libsecp256k1, with optional BIP-39 mnemonics, encrypted JSON keystores and YubiHSM2.
etherscrates.ioThe ethers-rs Ethereum client library, which signs transactions with secp256k1 ECDSA and hashes with Keccak-256 through its sub-crates.
ethers-corecrates.ioEthereum types and utilities for ethers-rs, including Keccak-256 hashing and secp256k1 ECDSA signature types with recovery.
ethers-signerscrates.ioEthereum 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.ioEVM 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.ioShared Substrate and Polkadot SDK types, including sr25519, Ed25519 and secp256k1 ECDSA key pairs and signatures and Blake2 and Keccak hashers.
near-cryptocrates.ioNEAR key and signature types for Ed25519, secp256k1 and ML-DSA-65 (FIPS 204), with an in-memory signer and a VRF module.
cosmrscrates.ioA Cosmos SDK transaction builder and signer that signs with secp256k1 ECDSA keys.

2 listed

Sources

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