Signature family

Schnorr signatures (BIP 340)

Bitcoin's x-only Schnorr signatures on secp256k1, introduced with Taproot

standard 1 variant Bitcoin Improvement Proposal 340

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–2020
  1. Schnorr signatures published

How it works

  1. KeyGen picks a scalar x and publishes the x-coordinate of P = xG, negating x if needed so P has even y.
  2. Sign derives nonce k from x, auxiliary randomness and the message, and computes R = kG with even y.
  3. The challenge e is a tagged SHA-256 hash of R, P and the message; s = k + e*x.
  4. 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

Bitcoin Taproot transactionsMultisignature and threshold protocols such as MuSig2 and FROSTBatch-verifiable signatures in secp256k1 systems

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
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.