DRAFT: interactive tx construction protocol

Posted by lisa neigut

Feb 10, 2020/21:53 UTC

The context provided discusses technical details regarding the implementation of a subtype called "witness_element". It specifies that witness_element data must be less than 32 bytes in length and must have a standard output script. Additionally, it is recommended that nLocktime be set to zero to allow for greater flexibility.One issue with the current protocol is that the blockheight - 6 restriction on funding transactions may not be sufficient to prevent deliberate reorg attacks. As a solution, it is suggested that the locktime be set back a few blocks, allowing the transaction to be eligible for inclusion in any of the previous six blocks. However, this introduces the possibility of fee-sniping, where an analyst can correctly guess that a blockheight - 5 transaction is a Lightning funding if more than 0.1% of onchain transactions are dual-funded.To improve the protocol messages for managing block height disagreements, Rusty suggests adding a serial_id to inputs and outputs, which can also be used for deletions. The serial id would serve as a sorting heuristic for input ordering in the final transaction, replacing BIP69. Peers must choose serial ids randomly, and collisions between peers are considered a protocol error.In conclusion, the context provides technical guidance for implementing witness_element and addresses potential issues with the current protocol's handling of block heights and funding transactions. It also proposes solutions for managing these issues through the use of locktimes and serial ids.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback