A November 2 research announcement examines a small but consequential choice in Schnorr signature verification: how large the randomizing values should be when checking signatures together. The developer posting as dni published a Lean proof project for BIP340 batch verification with 128-bit randomizers derived from the batch itself. Research announcement.

The work concerns confidence in a verification optimization. It does not announce shorter Bitcoin signatures, a new transaction format or a Bitcoin Core release. Its central question is whether the mathematical argument still holds when software derives its randomness from data an attacker can influence.

What a batch verifier is trying to preserve

BIP340 defines Bitcoin's Schnorr signature format and both individual and batch verification procedures. Batch verification combines multiple checks into one mathematical calculation. A valid group must pass; a group containing an invalid signature should pass only with negligible probability. BIP340 verification rules.

Randomizers weight the different signature equations so invalid contributions cannot simply cancel each other. They are verification inputs, not private keys or signing nonces. Reducing their size therefore addresses work performed by the verifier rather than reducing the size of the signature placed in a transaction.

The current BIP340 text describes generating 256-bit integers through a deterministic process seeded by a hash of the batch's public keys, messages and signatures. It rejects values outside the specified range. The published specification and a proposal to optimize it are separate reference points. Current batch algorithm.

Derivation makes the attacker's choices relevant

The November announcement examines both deriving randomizers from the whole batch and deriving them incrementally as entries arrive. In the latter setting, an attacker can choose later entries after learning earlier randomizers. The author reports the same upper bound for both modeled approaches: (q + 1) / 2^128, where q counts the attacker's random-oracle queries. Announced results.

That expression is a conditional mathematical bound, not a measured rate of fraudulent Bitcoin payments. Its practical meaning depends on the modeled operation, the assumptions and the amount of adversarial work. Reading only “128-bit” would miss what the proof is trying to establish.

The repository models the randomizer derivation as a random oracle, an idealized source of hash outputs. It also supplies a matching grinding construction, showing how repeated attempts approach the bound. Its documented scope includes the secp256k1 curve, while byte decoding and range checks remain outside the formal model. Proof repository and assumptions.

Those boundaries are useful review material. They identify which claims come from proved mathematical relationships and which parts still require checking in an actual implementation.

Message boundaries create a qualification

The project's most practical caveat concerns encoding. Different batches must produce distinct hash inputs for the stated result to apply. Concatenating arbitrary-length messages without recording their boundaries can violate that assumption. The repository proposes including message lengths and says no practical attack is known from the identified ambiguity; its proof does not establish the bound for that ambiguous encoding. Encoding qualification.

BIP340 now accepts messages of arbitrary length, following a documented 2023 revision. Bitcoin's Taproot transaction signatures use a narrower construction: BIP341 passes a tagged hash of transaction-signing data into Schnorr verification. This fixed-length digest is why a generic message-encoding concern should not automatically be described as a Bitcoin transaction vulnerability. BIP340 message sizes and Taproot signature validation.

The distinction matters for library authors. A routine designed for transaction digests may later be exposed to other applications. Its accepted inputs and encoding rules need to remain explicit rather than being inherited as undocumented assumptions.

A proof result and a software release answer different questions

Lean is a programming language and proof assistant that supports formally verified code. That provides a way to express and mechanically check mathematical claims; it does not make every program mentioned alongside a proof part of the proved system. Lean project.

The proof repository reports checks against BIP340 test vectors and identifies its trust assumptions. This article reviews those published materials rather than claiming an independent proof build or a benchmark reproduction. Verification scope.

Our assessment is that the useful next step is implementation-specific review: match the theorem's inputs to the real encoding, inspect omitted parsing checks and measure the actual verification path. Performance claims should identify a workload and version instead of becoming a percentage improvement for an entire node.

The November contribution makes an optimization argument more inspectable. Its value is in a precise security claim, including the encoding condition that limits it, rather than in treating a research announcement as an instruction to change wallet or node settings.