Bitcoin Schnorr Signatures: BIP340 for Developers
Schnorr signatures are digital signatures used by Bitcoin Taproot under BIP340. They authorize spending when the relevant public key and transaction message satisfy the protocol's verification rules. BIP340 specifies a particular Schnorr construction for the secp256k1 curve; it is not interchangeable with every Schnorr scheme described in cryptography textbooks.
Why did Bitcoin introduce Schnorr signatures?
Taproot uses Schnorr signatures because their algebraic properties support efficient signature constructions and well-defined verification rules. They also enable designs involving key aggregation when implemented using an appropriate higher-level protocol. BIP340 alone does not specify a complete multisignature coordination protocol.
What is an x-only public key?
BIP340 represents public keys by their 32-byte x-coordinate and defines a convention for the corresponding curve point. This is different from the familiar 33-byte compressed public-key representation used by many older Bitcoin wallet workflows.
Developers should use a well-reviewed implementation rather than manually converting points or inventing serialization rules.
How large is a BIP340 signature?
A standard BIP340 Schnorr signature is 64 bytes. In Taproot transaction witnesses, an optional sighash type byte may be appended when a non-default hash type is used. That transaction-level detail should not be confused with the size of the core BIP340 signature.
What about nonce safety?
A signing nonce must be generated according to a secure signing algorithm. Reusing or exposing secret nonce material can compromise private keys. BIP340 includes a specified signing procedure and auxiliary randomness mechanism; production wallets should rely on vetted cryptographic libraries, protected key storage, and carefully tested signing paths.
Does Schnorr mean every Taproot transaction is multisig?
No. A normal single-key Taproot spend can use a Schnorr signature without any multisignature protocol. Multisignature key aggregation requires separate coordination and security assumptions, such as those described in MuSig2.
Primary references
- BIP340 — Schnorr Signatures for secp256k1: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
- BIP341 — Taproot: https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
- BIP327 — MuSig2: https://github.com/bitcoin/bips/blob/master/bip-0327.mediawiki
