The evolution of the Bitcoin protocol continues to prioritize the security and autonomy of its users, as evidenced by a newly submitted draft Bitcoin Improvement Proposal (BIP) designed to bridge a long-standing gap in transaction verification for lightweight wallets. Submitted on November 22 by developer Jean Pablo, the proposal introduces a standardized system for witness inclusion proofs, a technical advancement that would allow Simplified Payment Verification (SPV) wallets to independently authenticate the cryptographic signatures and witness data associated with transactions. By addressing the current inability of these wallets to verify data under the Segregated Witness (SegWit) framework without downloading the entire blockchain, the proposal seeks to bolster the "don’t trust, verify" ethos that defines the cryptocurrency ecosystem.
The Technical Divide: TXID vs. WTXID
To understand the significance of Pablo’s proposal, one must first examine the architecture of Bitcoin’s transaction verification system. Traditionally, lightweight wallets—which do not store the full 600-plus gigabyte blockchain—rely on a method called SPV. These wallets verify that a transaction has been included in a block by requesting a Merkle proof tied to a transaction identifier known as the TXID. This identifier is a hash of the transaction’s metadata, excluding the witness data (signatures).
The introduction of Segregated Witness (SegWit) via BIP 141 in 2017 fundamentally changed how Bitcoin handles transaction data. SegWit moved signature information into a separate "witness" section of the transaction to solve transaction malleability and increase effective block capacity. However, this architectural shift created a verification blind spot for SPV wallets. While a wallet can use a TXID to confirm a transaction was recorded on the ledger, it cannot inherently verify that the witness data it receives from an external server is the same data that was validated by miners.
Under the current paradigm, a malicious or malfunctioning server could provide a wallet with a valid transaction but substitute the original witness data with different information. Because the TXID remains the same regardless of the witness data, the lightweight wallet has no cryptographic means to detect the discrepancy. Jean Pablo’s proposal addresses this by utilizing the Witness Transaction ID (WTXID), which incorporates the witness data into the hash, ensuring that any alteration to the signatures would result in a completely different identifier.
Chronology of the Proposal and Community Efforts
The quest for robust witness verification is not a new endeavor but rather the culmination of several years of development within the Bitcoin community. The primary catalyst for this specific proposal was the functional requirements of the Electrum wallet, one of the oldest and most respected Bitcoin wallets in existence. Electrum’s integration of the Lightning Network—a layer-2 scaling solution—requires high-precision transaction monitoring to manage payment channels securely.
The timeline of development highlights the collaborative yet fragmented nature of Bitcoin’s open-source environment:
- Initial Request: SomberNight, a prominent Electrum contributor, identified the need for witness inclusion proofs to strengthen the security of Lightning Network operations. Because Lightning channels rely on "commitment transactions" and "justice transactions," ensuring the integrity of witness data is critical for preventing fraud.
- Bitcoin Core Exploration: In early 2024, developers began working on a pull request (PR #32844) for Bitcoin Core, the network’s primary software client. The goal was to extend existing RPC (Remote Procedure Call) commands to allow servers to provide witness information alongside standard transaction proofs.
- Implementation Divergence: The Bitcoin Core pull request was closed in May 2024 without being merged into the main codebase. Subsequently, developer Sjors Provoost launched a separate implementation to continue the work, introducing specific commands to generate and verify witness-based proofs.
- Experimental Adoption: While a unified standard was lacking, other clients moved forward with their own solutions. Bitcoin Knots, a derivative of Bitcoin Core maintained by Luke Dashjr, introduced experimental support for witness proofs in version 29.1.
- Standardization via Jean Pablo: Recognizing that different wallets and servers were beginning to use incompatible proof formats, Jean Pablo submitted the formal draft BIP on November 22. This proposal aims to unify these disparate efforts into a single, interoperable standard.
Mechanics of the Proposed Verification System
The proposed system creates a cryptographic bridge between a specific transaction’s witness data and the Bitcoin block header. The process involves several layers of verification. First, the system connects the WTXID to the "witness commitment," a specialized hash recorded in the coinbase transaction of every SegWit-compatible block.
The coinbase transaction—the first transaction in a block which contains the miner’s reward—serves as the anchor for the entire block’s witness data. By providing a cryptographic proof that connects a specific WTXID to the witness commitment in the coinbase transaction, and then providing a second proof that connects that coinbase transaction to the block header’s Merkle root, a lightweight wallet can establish a complete chain of custody for the data.
Crucially, this process allows the wallet to remain "light." It does not need to download the hundreds of other transactions contained within the block. Instead, it only needs the specific proof paths (Merkle branches) relevant to its own transactions.
Data Efficiency and Standardized Formats
One of the highlights of Pablo’s proposal is its focus on optimization. In a network where bandwidth and storage are at a premium, particularly for mobile users, the efficiency of cryptographic proofs is paramount. The proposal introduces two distinct binary formats for exchanging these proofs:
- Format One (Individual Proofs): This format provides a standalone cryptographic proof for a single transaction. It is straightforward but can lead to data redundancy if a wallet needs to verify multiple transactions from the same block.
- Format Two (Batched Proofs): This format is designed to reduce duplicated information when a wallet verifies multiple transactions simultaneously.
Data provided in the proposal demonstrates the efficacy of these optimizations. In a test case involving the verification of 10 transactions within a single block, the second format reduced the total proof data from 4,523 bytes to 3,325 bytes. This represents an approximate 26% reduction in data overhead. For a wallet managing hundreds of transactions or operating over a slow mobile connection, such cumulative savings are significant.
Furthermore, the proposal includes a JSON representation to ensure that the proofs can be easily integrated into web-based services and various API environments, ensuring broad compatibility across different programming languages and platforms.
Rigorous Testing and Reference Implementation
To ensure the reliability of the new standard, Jean Pablo has provided a reference implementation written in Python. This serves as a blueprint for other developers to follow when integrating the proposal into their own software, such as Bitcoin Core, Electrum, or BTCPay Server.
The proposal is supported by a comprehensive suite of 93 test cases. These tests are divided into two categories: 31 cases that cover valid proofs which should be accepted by the software, and 62 cases involving invalid or tampered proofs that the software must successfully reject. This high ratio of negative test cases underscores the security-first mindset of the proposal, ensuring that the verification logic is resilient against various forms of data corruption or malicious injection.
Implications for the Bitcoin Ecosystem
The adoption of a standardized witness inclusion proof system would have far-reaching implications for the Bitcoin ecosystem, particularly regarding trust-minimization and the scalability of layer-2 solutions.
For the Lightning Network, this proposal provides a much-needed layer of security. Lightning wallets must constantly monitor the blockchain to ensure that a counterparty does not attempt to close a channel with an outdated state. By being able to independently verify the witness data of on-chain transactions, Lightning users can have greater confidence that the information provided by their ElectrumX or block explorer servers is accurate and untampered.
Moreover, the proposal addresses the growing concern of "server centralization" in the SPV model. Currently, many lightweight wallets are forced to trust the servers they connect to for witness-related information. By empowering the client-side software to perform its own verification, the proposal moves the needle back toward decentralization. Even if a user connects to a malicious server, the wallet’s software would immediately flag any fraudulent witness data, preventing the user from being deceived about the status of their funds.
Future Outlook and Community Feedback
As with all Bitcoin Improvement Proposals, the path to implementation involves a period of community review, feedback, and eventual consensus. Jean Pablo has actively requested feedback from the developer community regarding the proposed binary formats and the specific verification requirements.
The primary challenge ahead lies in migration. Because several projects, including Bitcoin Knots and Electrum, have already begun implementing experimental versions of witness proofs, the community must decide whether to pivot to this new proposed standard to ensure long-term interoperability. If the proposal gains traction, it is likely to be integrated into a future release of Bitcoin Core, which would then act as the "source of truth" for servers providing these proofs to the wider network of lightweight wallets.
The introduction of witness inclusion proofs represents a subtle but vital hardening of the Bitcoin protocol. It demonstrates that even years after the implementation of major upgrades like SegWit, the developer community remains committed to refining the technical details that ensure Bitcoin remains the world’s most secure and verifiable decentralized financial network. By closing the verification gap for lightweight users, the proposal reinforces the principle that in the world of Bitcoin, security should not be a luxury reserved only for those capable of running a full node.

