Bitcoin developers propose fix for transaction verification gap affecting Lightning wallets
In this news:
Key takeaways
- Jean Pablo's draft proposes witness transaction inclusion proofs built around the wtxid identifier.
- The proofs would let lightweight wallets check received witness data against what a valid block committed to.
- Electrum's Lightning needs prompted the work, and one 10-transaction example cut proof data by about 26%.
Proposed witness proofs for lightweight wallets
Bitcoin developers have proposed a new verification system that would allow lightweight wallets to independently authenticate transaction signatures recorded on the blockchain.
The draft Bitcoin Improvement Proposal, submitted by developer Jean Pablo on Nov. 22, addresses a limitation in how wallets verify transaction information received from external servers.
The proposal could particularly benefit wallets such as Electrum, which supports Bitcoin's Lightning Network and relies on external servers for some blockchain information.
Why transaction ID proofs fall short
Currently, lightweight wallets can verify that a transaction was included in a Bitcoin block using a cryptographic proof tied to its transaction ID, or txid.
However, that identifier excludes witness data, which contains signatures and other information used to authorize spending under Bitcoin's Segregated Witness (SegWit) system.
Consequently, a wallet could successfully verify a transaction's inclusion while holding witness data that differs from what miners actually included in the block.
Pablo's proposal addresses this discrepancy by introducing standardized witness transaction inclusion proofs built around a second identifier, known as the witness transaction ID, or wtxid.
Unlike the conventional transaction ID, the wtxid incorporates witness data, allowing wallets to verify that the full transaction they received matches the version included in a mined block.
The proposed system connects that identifier to Bitcoin's existing witness commitment, which is recorded in the block's coinbase transaction. A second cryptographic proof then connects the coinbase transaction to the block header.
Together, these checks allow wallets to authenticate witness data without downloading and examining the entire block.
Electrum's Lightning needs drive Bitcoin verification proposal
The development follows an earlier request from Electrum contributor SomberNight, who sought witness inclusion proofs to strengthen transaction verification for the wallet's Lightning Network functionality.
Lightning wallets interact with Bitcoin's underlying blockchain when opening, closing and monitoring payment channels, making reliable transaction information particularly important.
The proposed verification system would allow such wallets to independently confirm the witness data supplied by servers while continuing to operate without storing complete blockchain data.
The request previously prompted work on Bitcoin Core, where developers explored extending existing transaction proof commands to cover witness information.
That pull request closed in May without being merged, and developer Sjors Provoost later continued the effort through a separate implementation that introduced commands to generate and verify witness proofs.
Meanwhile, Bitcoin Knots introduced experimental witness-proof support in version 29.1, and Electrum developers have been working on related protocol changes.
However, these efforts use different proof formats, creating compatibility challenges between wallets and the servers providing blockchain information.
Competing formats and a shared standard
Pablo's proposal attempts to resolve those differences by specifying two binary formats and a JSON representation for exchanging and verifying proofs.
The first format provides a separate cryptographic proof for each transaction, while the second reduces duplicated information when verifying multiple transactions together.
In one example involving 10 transactions, the second format reduced proof data from 4,523 bytes to 3,325 bytes, approximately a 26% reduction.
The proposal also includes a Python reference implementation and 93 test cases designed to establish consistent verification behavior across software implementations.
Of those tests, 31 cover proofs that should be accepted, while 62 cover invalid proofs that verification software must reject.
The specification would give Bitcoin Core, Electrum and other wallet developers a common framework for implementing witness verification.
Pablo has requested feedback on the proposed formats and verification requirements, leaving developers to determine whether a shared standard can replace the experimental approaches already in use.
Source: cryptoslate.com
Share the article:
Trending News & Crypto World
Latest Crypto News
Top Trending Cryptocurrencies on The Market
Current Price
$6.790
Market Cap
$3.0B 2.38%
24h Volume
$156.3M
Supplies
471.7M / 720.0M
Current Price
$0.07536
Market Cap
$3.0B -2.48%
24h Volume
$11.0M
Supplies
40.1B / ∞
Current Price
$4.904
Market Cap
$3.0B 3.86%
24h Volume
$328.1M
Supplies
885.4M / 1.0B
Current Price
$3,637.20
Market Cap
$2.9B 1.94%
24h Volume
$281.5M
Supplies
827.4K / ∞
Current Price
$1.001
Market Cap
$2.9B 4.75%
24h Volume
$45.3M
Supplies
5.3B / ∞
Current Price
$0.9999
Market Cap
$2.9B 0.02%
24h Volume
$899.6M
Supplies
2.9B / ∞
Current Price
$0.6878
Market Cap
$2.8B 3.08%
24h Volume
$362.6M
Supplies
10.0B / 10.0B
Current Price
$1.0000
Market Cap
$2.8B 0.00%
24h Volume
$318.6M
Supplies
2.8B / ∞
Current Price
$1.000
Market Cap
$2.6B 0.00%
24h Volume
$576.2M
Supplies
2.6B / ∞
Current Price
$0.05555
Market Cap
$2.5B 3.69%
24h Volume
$65.4M
Supplies
50.0B / 50.0B
Current Price
$1.155
Market Cap
$2.4B 0.09%
24h Volume
$2.3M
Supplies
2.1B / ∞
Current Price
$0.9998
Market Cap
$2.4B 0.02%
24h Volume
$81.5M
Supplies
2.4B / ∞