Bitcoin developers propose fix for transaction verification gap affecting Lightning wallets

Bitcoin developers propose fix for transaction verification gap affecting Lightning wallets

Bitcoin developer Jean Pablo proposed a standard for lightweight wallets to verify SegWit witness data, aiming to ensure servers return the same signatures miners included in a block.

A draft Bitcoin Improvement Proposal submitted by Jean Pablo on Nov. 22 would let lightweight wallets verify a transaction’s witness data—the signatures and other information used to authorize spending—against what was included in a mined block. Existing inclusion proofs use a transaction ID that excludes this data.

The proposal uses the witness transaction ID, or wtxid, which includes witness data. A proof links that ID to the block’s witness commitment in the coinbase transaction, then connects the coinbase transaction to the block header. This would allow wallets to check the full transaction without downloading the entire block. The method assumes a valid block with a SegWit witness commitment; checking whether the header belongs to a wallet’s accepted chain, and how many confirmations it has, are separate steps.

The work follows a request from Electrum contributor SomberNight, who sought stronger transaction verification for the wallet’s Lightning Network features. Lightning wallets rely on blockchain information when opening, closing and monitoring payment channels. Bitcoin Core developers explored witness proofs, but an earlier pull request closed without being merged in May. Sjors Provoost later continued the work in a separate implementation; Bitcoin Knots added experimental support in version 29.1, and Electrum developers have been working on related protocol changes.

Those projects use different proof formats, which can complicate compatibility between wallets and servers. Pablo’s draft specifies two binary formats and a JSON representation. One format proves transactions individually; the other reduces repeated data when checking several transactions. For 10 transactions, the latter format cuts proof data from 4,523 bytes to 3,325 bytes, about 26%. The proposal includes a Python reference implementation and 93 tests: 31 for proofs that should pass and 62 for invalid proofs that should be rejected. Pablo requested developer feedback on the formats and verification rules.

More news

All news
SEC Charges Eight Colorado Firms in $37 Million Fake Crypto Platform Scam Strategy raises its buyback ceiling to $4 billion as MSTR shares sink 21% Researchers Publish Security Analysis of Bitcoin’s Post-Quantum SHRINCS Proposal Deribit outage hit Bitcoin hedgers on Coinbase Bitcoin Rebounds Toward $60,000 as Weekly ETF Outflows Reach $1.79 Billion