IntelligenceAlgorithmsschnorr-bip340
Schnorr signatures (BIP 340)
BIP 340 defines 64-byte Schnorr signatures over secp256k1 with x-only public keys. Bitcoin uses them for Taproot spends, and Nostr uses them to sign events.
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.
14 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| 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. |
| 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. |
| @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. |
| k256crates.io | Pure Rust secp256k1 curve with ECDSA signing, verification and public key recovery, BIP 340 Schnorr signatures and ECDH. |
| secp256k1crates.io | Rust bindings to the libsecp256k1 C library for secp256k1 ECDSA, BIP 340 Schnorr signatures and ECDH. |
| frost-secp256k1-trcrates.io | FROST threshold and single-signer Schnorr signatures on secp256k1 in the Taproot (BIP-340) form. |
| 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. |
| schnorr_funcrates.io | BIP-340 Schnorr signatures on secp256k1 with adaptor signatures, MuSig2 and a FROST threshold module, built on secp256kfun. |
| musig2crates.io | The MuSig2 multisignature protocol on secp256k1 following BIP-327, producing BIP-340 Schnorr signatures, on libsecp256k1 or k256. |
1 listed
Sources
- BIP 340: Schnorr Signatures for secp256k1github.comRetrieved 3 December 2026
Full record
- Identifier
- schnorr-bip340
- Kind
- signature
- Family
- Classical public key
- Rests on
- elliptic-curve discrete logarithm
- Quantum effect
- Broken by Shor's algorithm
Standards
- BIP 340Schnorr Signatures for secp256k1Bitcoin Improvement Proposals, final, published 19 January 2020Checked 3 December 2026