Schnorr signatures (BIP 340)
Bitcoin's x-only Schnorr signatures on secp256k1, introduced with Taproot
Overview
BIP 340 specifies Schnorr signatures over the secp256k1 curve for Bitcoin. Schnorr signatures have a simple security proof and are linear, which enables efficient multisignatures and batch verification.
The Schnorr scheme, published by Claus-Peter Schnorr in 1989, signs by committing to a random point R, hashing it with the public key and message into a challenge e, and responding with s = k + e*x. Its security reduces cleanly to the discrete logarithm problem in the random oracle model, and its linearity allows signatures and keys to be aggregated, which is the basis of protocols such as MuSig2 and FROST.
BIP 340 makes several Bitcoin-specific choices: public keys are 32-byte x-only coordinates with implicit even y, signatures are 64 bytes, hashes are tagged with a domain-specific prefix to prevent cross-protocol reuse, and nonces are derived from the secret key, message and auxiliary randomness. These signatures became usable on Bitcoin with the Taproot soft fork activated in 2021. One variant is present: schnorr-bip340.
History
2020–2020Schnorr signatures published
How it works
- KeyGen picks a scalar x and publishes the x-coordinate of P = xG, negating x if needed so P has even y.
- Sign derives nonce k from x, auxiliary randomness and the message, and computes R = kG with even y.
- The challenge e is a tagged SHA-256 hash of R, P and the message; s = k + e*x.
- Verify checks that sG - eP equals R.
Security notes
Not post-quantum. As with all Schnorr-type schemes, nonce reuse or bias leaks the private key; follow the BIP 340 nonce derivation. Multi-party protocols built on it need their own carefully analysed nonce handling.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Schnorr-BIP340 schnorr-bip340 |
standard | pk 32 · sk 32 · sig 64 · seed 32 · ctx 0 | BIP 340 | safe |
Frequently asked questions
Which Schnorr signatures (BIP 340) variants does NextSSL include?
NextSSL registers 1 Schnorr signatures (BIP 340) variant: schnorr-bip340.
Other digital signatures
All 503Related
Deterministic hashing of byte strings to elliptic curve points with the SSWU map
SHA-2The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software
ECDSAElliptic Curve Digital Signature Algorithm on NIST curves and secp256k1
EdDSADeterministic Edwards-curve signatures: Ed25519 and Ed448