New Proposal Aims to Improve Transaction Verification for Lightning Wallets on Bitcoin Network
Bitcoin developers propose a new verification system to enhance transaction authentication in Lightning wallets, improving security and efficiency.

Introduction
Developers in the Bitcoin community have unveiled a new initiative aimed at enhancing transaction authentication for lightweight wallets. This proposal, known as the Bitcoin Improvement Proposal (BIP), was submitted by Jean Pablo on November 22 and seeks to address a significant challenge that wallets face in validating transaction data received from external servers.
Current Challenges with Lightweight Wallets
Currently, lightweight wallets, such as Electrum—which is compatible with Bitcoin's Lightning Network and relies on server data for some blockchain insights—can verify that a transaction is included in a block using a single cryptographic proof linked to its transaction ID (txid). However, this method fails to consider witness data, essential details necessary for transaction authorization under the Segregated Witness (SegWit) framework, leading to a potential mismatch between the wallet's information and the data miners have actually recorded.
Proposed Solution: Witness Transaction ID (wtxid)
To rectify this issue, Pablo's proposal introduces a new type of identifier known as the witness transaction ID (wtxid), which incorporates the crucial witness data that ensures wallets can confirm that the transaction they possess aligns with what is present in the mined block. This new system would tie the wtxid to Bitcoin's existing witness commitment, documented in the block's coinbase transaction, and link this to the block header through another cryptographic proof. These innovations will allow lightweight wallets to validate witness data without needing to download the entire block, streamlining the process significantly.
Importance of Robust Transaction Verification
The need for such a refinement was highlighted by earlier requests from Electrum contributor SomberNight, who underscored the importance of robust transaction verification for the wallet’s Lightning Network features. Given that Lightning wallets engage with Bitcoin’s blockchain during the establishment, closure, and monitoring of payment channels, the integrity of transaction data is crucial.
Background and Development
This latest proposal builds on previous discussions within the Bitcoin Core project, where developers had considered enhancing existing proof commands to encompass witness information. Although an earlier pull request on this matter was not merged, the project progressed under developer Sjors Provoost, who subsequently initiated an independent implementation that enabled the generation and verification of witness proofs. Conversely, Bitcoin Knots has integrated experimental support for witness-proof techniques, and Electrum is actively developing new protocol modifications; however, the differing proof formats across these initiatives have led to compatibility hurdles.
Standardization and Implementation
Pablo's BIP aims to standardize the approach by delineating two binary formats alongside a JSON representation for the development and verification of proofs. One of the formats delivers a distinct cryptographic proof for each transaction, while the other streamlines the verification process for multiple transactions simultaneously, resulting in a data size reduction of nearly 26% in some scenarios.
Testing and Community Feedback
Additionally, the proposal comes equipped with a Python reference implementation and a series of 93 test cases to ensure consistent verification procedures across various software platforms. With 31 tests designated to affirm valid proofs and 62 set to evaluate invalid ones, the specification promises to provide a foundational framework for developers of Bitcoin Core, Electrum, and other wallets to implement witness verification uniformly.
With this ambitious proposal underway, Pablo has invited feedback from the development community to determine the feasibility of establishing a shared standard that could ultimately enhance the existing, experimental methods currently in practice.
Also in other languages: РусскийDeutschFrançaisItalianoEspañol