Tuesday, November 24, 2026
HomeEthereumBitcoin builders suggest repair for transaction verification hole affecting Lightning wallets

Bitcoin builders suggest repair for transaction verification hole affecting Lightning wallets



Bitcoin builders suggest repair for transaction verification hole affecting Lightning wallets

Bitcoin builders have proposed a brand new verification system that might permit light-weight wallets to independently authenticate transaction signatures recorded on the blockchain.

The draft Bitcoin Enchancment Proposal, submitted by developer Jean Pablo on Nov. 22, addresses a limitation in how wallets confirm transaction info acquired from exterior servers.

The proposal might notably profit wallets equivalent to Electrum, which helps Bitcoin’s Lightning Community and depends on exterior servers for some blockchain info.

Presently, light-weight wallets can confirm {that a} transaction was included in a Bitcoin block utilizing a cryptographic proof tied to its transaction ID, or txid.

Nevertheless, that identifier excludes witness knowledge, which accommodates signatures and different info used to authorize spending below Bitcoin’s Segregated Witness (SegWit) system.

Consequently, a pockets might efficiently confirm a transaction’s inclusion whereas holding witness knowledge that differs from what miners truly included within the block.

Pablo’s proposal addresses this discrepancy by introducing standardized witness transaction inclusion proofs constructed round a second identifier, often known as the witness transaction ID, or wtxid.

Not like the standard transaction ID, the wtxid incorporates witness knowledge, permitting wallets to confirm that the complete transaction they acquired matches the model included in a mined block.

The proposed system connects that identifier to Bitcoin’s current witness dedication, which is recorded within the block’s coinbase transaction. A second cryptographic proof then connects the coinbase transaction to the block header.

A pockets can evaluate the witness knowledge it acquired with what a legitimate block dedicated to.

The proposed path assumes a legitimate block with a SegWit witness dedication. Chain choice and affirmation depth are separate from inclusion verification.

Collectively, these checks permit wallets to authenticate witness knowledge with out downloading and inspecting your entire block.

Electrum’s Lightning wants drive Bitcoin verification proposal

The event follows an earlier request from Electrum contributor SomberNight, who sought witness inclusion proofs to strengthen transaction verification for the pockets’s Lightning Community performance.

Lightning wallets work together with Bitcoin’s underlying blockchain when opening, closing and monitoring fee channels, making dependable transaction info notably necessary.

The proposed verification system would permit such wallets to independently affirm the witness knowledge provided by servers whereas persevering with to function with out storing full blockchain knowledge.

The request beforehand prompted work on Bitcoin Core, the place builders explored extending current transaction proof instructions to cowl witness info.

That pull request closed in Could with out being merged, and developer Sjors Provoost later continued the hassle via a separate implementation that launched instructions to generate and confirm witness proofs.

In the meantime, Bitcoin Knots launched experimental witness-proof help in model 29.1, and Electrum builders have been engaged on associated protocol modifications.

Nevertheless, these efforts use totally different proof codecs, creating compatibility challenges between wallets and the servers offering blockchain info.

Pablo’s proposal makes an attempt to resolve these variations by specifying two binary codecs and a JSON illustration for exchanging and verifying proofs.

The primary format gives a separate cryptographic proof for every transaction, whereas the second reduces duplicated info when verifying a number of transactions collectively.

In a single instance involving 10 transactions, the second format lowered proof knowledge from 4,523 bytes to three,325 bytes, roughly a 26% discount.

The proposal additionally features a Python reference implementation and 93 check instances designed to determine constant verification habits throughout software program implementations.

Of these exams, 31 cowl proofs that ought to be accepted, whereas 62 cowl invalid proofs that verification software program should reject.

Associated Studying

Bitcoin launches Testnet5 and provides miners an actual trial of 4 proposed fixes

The specification would give Bitcoin Core, Electrum and different pockets builders a typical framework for implementing witness verification.

Pablo has requested suggestions on the proposed codecs and verification necessities, leaving builders to find out whether or not a shared commonplace can exchange the experimental approaches already in use.

RELATED ARTICLES

Most Popular

Recent Comments