BIP 374 (Discrete Log Equality Proofs) specifies a compact, 64-byte proof that two elliptic-curve points were formed using the same secret scalar. The proving party does not have to reveal that scalar. The immediate application is Silent Payments coordinated through PSBTs: a signer can show that its proposed ECDH contribution corresponds to a public input key. But the original authors deliberately made the proof reusable beyond silent payments. The maintained proposal is Draft, version 0.3.1 as inspected on 2 November 2026; it is an application-layer format, not a Bitcoin consensus change. Canonical BIP 374 · Original pull request
The most consequential part of this history is not the proof's size. It is a change made after the initial specification was accepted: in February 2025, the authors changed the deterministic nonce computation to include the optional message. Under the old rule, constructing proofs with the same secret and auxiliary randomness but different messages could reuse the same signing nonce and expose the secret. Later revisions changed how the challenge is treated as a curve scalar and strengthened boundary tests. These are documented specification and reference-code changes; no particular exploited released wallet is established by this record. Message/nonce correction · Challenge-scalar revision · Changelog
What equality is being proved?
Suppose a participant knows a secret scalar a. A conventional secp256k1 public key has the form A = a·G, where G is a generator point. A separate party supplies a point B, and the participant calculates the ECDH contribution C = a·B. The verifier knows A, B, C and G, but does not know a.
The question is specific: does the same unknown a relate A to G and C to B? A valid BIP 374 proof establishes that relation, under its cryptographic assumptions. It does not reveal the scalar, identify a person, prove that an input was actually signed, or prove that the recipient's ultimate Bitcoin output was selected correctly. Definition and motivation
The prover constructs two temporary curve points from an ephemeral scalar k: R1 = k·G and R2 = k·B. A tagged hash of the public statement, those points and an optional message supplies the challenge e. The prover computes s = (k + e·a) mod n, where n is the secp256k1 group order. The transmitted proof is just e || s, two 32-byte scalars.
The verifier recovers the two temporary points without knowing either secret: R1 = s·G − e·A and R2 = s·B − e·C. If the construction is honest, the extra e·a terms cancel. It then recomputes the tagged challenge and compares it to e, rejecting invalid points and scalars. This is a Schnorr-style proof of knowledge for an equality relationship, not a new Bitcoin transaction signature. Generation and verification algorithms
BIP 374 includes an optional 32-byte message m that can bind the proof to additional protocol context. It also accepts a chosen generator point G, rather than assuming the standard secp256k1 generator in every invocation. The maintained specification allows alternative generator points on secp256k1, not arbitrary elliptic curves; an October 2026 correction made that scope explicit. Corrected generator-point explanation · Inputs and footnotes
Why silent payments needed this
Under BIP 352, the recipient's output key depends on a shared secret calculated from the sender's eligible input keys and the recipient's scan public key. If the sender provides a bad Bitcoin signature, consensus rejects the transaction. But if a coordinator calculates the wrong recipient output and the sender signs that otherwise valid transaction, consensus does not know the intended payment address. The coins can end up in a valid output that the intended recipient cannot spend. Motivation · Silent Payments
BIP 375 introduces global and per-input ECDH-share fields, each paired with DLEQ proof material, so contributors to a PSBTv2 can check the cryptographic link between an eligible input key and a supplied shared-secret share. Its validator must also reconstruct the recipient output, apply the input eligibility rules, and account for output ordering. BIP 374 supplies one building block, not a certification of the entire PSBT. Field tables and signer rules · Application motivation
October–December 2024: a reusable proposal emerges
The original mailing-list post was sent by Andrew Toth on 23 October 2024. Its attached draft carried a Created: 2024-06-29 document date, but that date should not be confused with independent evidence of public publication in June. Toth described the immediate silent-payment PSBT need and cited earlier DLEQ work in DLC adaptor-signature specifications and secp256k1-zkp. The October proposal used a simpler proof statement: the public challenge did not yet bind a general message or nonstandard generator. Contemporary mailing-list text · Proposed BIP
On 24 October 2024, Toth opened PR #1689. A contemporary response from Adam Gibson (waxwing), on 26 October, argued for more general message-binding and generator flexibility, explicitly recalling the use of similar DLEQ proof forms in JoinMarket. That is evidence of an earlier related technique and a public design suggestion, not evidence that the later BIP's full algorithm already existed unchanged in those systems. Public review and replies
The BIP was assigned 26 December 2024 and its initial version was incorporated into the canonical repository when PR #1689 closed on 27 December. Immediately after acceptance, a Go implementer reported that the reference code's custom-generator parameter was not reaching the challenge calculation, making some test vectors incorrect. Merge record · Generator correction
On 28 December 2024, the fix was merged in PR #1734. A companion change removed a default generator argument to make the same oversight harder to repeat. On 31 December, PR #1735 added stored CSV vectors, enabling later reference-code changes to be checked against known outputs. These are concrete corrections in source and testing; they do not demonstrate a live Bitcoin funds-loss incident. Generator fix · Challenge helper change · Vector publication
February 2025: the message and the nonce
The original design's optional message gave a verifier a way to distinguish proofs about different contexts, but there was a hidden interaction with nonce derivation. If the nonce-generation input ignores m, proofs created with the same private scalar, relevant public inputs and auxiliary randomness can reuse k while the message changes the challenge e. From s = k + e·a mod n, two such proof responses expose a linear relation from which the secret scalar may be recovered.
PR #1758 opened on 6 February 2025 and merged on 27 February. It changed the nonce seed so that the optional message also enters the deterministic rand computation. BIP 374 records this as version 0.2.0. The current specification also recommends fresh auxiliary randomness for each proof, following the rationale of Schnorr signing. Message separation and fresh auxiliary input address complementary concerns: merely adding a message to the challenge is not a safe substitute for designing nonce derivation consistently. Security-motivated correction · Current nonce rules and changelog
The archival status of the finding matters. The pull request directly establishes that the spec's nonce computation was corrected to avoid a possible secret leak under the stated construction. It does not identify a released wallet that actually reused the relevant nonce, and the mathematical failure case should not be rewritten as a confirmed theft. A review of historical experimental implementations would be needed to establish whether any used the vulnerable draft in a reachable workflow.
Later in April 2025, PR #1817 corrected a test generator that used the proof-tampering index when it meant to flip a bit in the optional message. That mistake could make negative tests ineffective or misleading. Again, this is evidence about test coverage, not evidence that proof verification in all released implementations was defective. Test harness correction
2025–2026: checking the self-check, the scalar, and the code
The specification's GenerateProof procedure ends by verifying its own output. A review opened 19 October 2025 noticed that the text passed neither G nor m to this self-check, despite their being inputs to VerifyProof. It was corrected when PR #2011 closed on 23 October 2025. The reference Python implementation was already passing them. This records a mismatch between specification pseudocode and reference behavior, not an established runtime defect in all implementations. Exact correction
On 28 January 2026, PR #2084 merged a change to use a per-BIP vendored version 1.0.0 of secp256k1lab, replacing parts of the earlier handwritten reference support code. Vendoring is a reproducibility and maintenance decision; the repository's inclusion of source code is not proof that every integrating wallet has adopted that implementation. Vendoring rationale and merge · Current reference implementation
In August–September 2026, PR #2262 made the 32-byte hash challenge e explicitly a scalar reduced modulo n, and made the verifier reject noncanonical encodings e ≥ n. The PR opened 19 August and merged 21 September; the BIP labels the change version 0.3.0 (19 August). Its proposer characterized the change chiefly as clarity and consistency with other signing BIPs, while acknowledging the vanishingly rare boundary case. It should not be presented without qualification as an exploited cryptographic flaw, or as a byte-for-byte equivalent change for every possible 256-bit challenge value. Design rationale and review · Current verification rules
This correction also exposed a maintenance issue between the standards. The BIP 375 validator had copied the BIP 374 proof routines and still treated e according to the older rule. PR #2304 synchronized that copy on 25 September 2026. A separate proposal to import the original code directly rather than maintain a duplicate remained open at this inspection. That is a small documentary example of standards drift: specification correctness and a dependent validator's implementation can evolve on different days. Applied sync · Open deduplication proposal
Two October 2026 revisions are easy to confuse. PR #2334 merged 22 October, clarifying that an alternate G meant another generator on secp256k1, not an arbitrary elliptic curve. BIP 374 then records version 0.3.1 on 26 October, adding test vectors around scalar boundaries. They are different types of improvement: one sharpens the written scope, the other expands edge-case tests. Neither implies silent-payment PSBTs have been universally implemented. Wording correction · 0.3.1 changelog
Documentary chronology
Created date is not the public posting date. Mailing-list record · PRImplementation and adoption boundaries
The canonical repository contains a Python reference and generators/runners for test vectors. This supports independent algorithm review. The related BIP 375 validator calls the DLEQ check while evaluating silent-payment PSBTs. Neither fact establishes a broadly available Bitcoin Core wallet feature, complete third-party signing interoperability, or production use by an Ordinals marketplace. Reference implementation · Dependent PSBT validator
A completed Bitcoin transaction does not carry the DLEQ proof merely because a PSBT used one off-chain. In the ordinary silent-payment case, the chain records valid transaction inputs and outputs; participants may have exchanged proof material before broadcasting. For Inscriptions and Bitmap, validating that a share came from the expected input scalar says nothing by itself about satpoint placement, transfer provenance, or claim validity. Those are separate interpretations of the eventual transaction, not properties encoded by BIP 374.
Unresolved questions
- Was any experimentally deployed or production-facing wallet using the pre-0.2.0 nonce rule with the combination of repeated auxiliary randomness and varying messages needed to expose a scalar? No such case was verified in this investigation.
- Will the BIP 375 validator stop copying BIP 374 reference logic? PR #2309 remained open on inspection.
- Which released wallets, if any, independently verify BIP 374 proofs across hardware/software PSBT boundaries, rather than merely parse the fields? No named interoperable release was verified here.
- How should future revisions test the extraordinarily rare
e ≥ nboundary without implying it is a common accidental failure?
From the archivist's desk
I went looking for the small proof behind a silent-payment PSBT and found something less comfortable than a missing checkmark: a protocol that learned, in public, to protect its own nonce. The original designers were not pretending that a 64-byte blob solved the whole transaction. Their later correction is part of the record, not an embarrassment to erase. A sound proof can help participants agree about one mathematical relationship. It cannot agree on their behalf about where the money should go.