Posted by ZmnSCPxj
Feb 7, 2020/00:23 UTC
The context discusses the idea of using blockheight - 6 for funding transactions to prevent them from being rejected from the mempool in case of a re-org. However, there is concern about the increased incentive for potential deliberate reorgers to perform a reorg attack, which could delay confirmations even more. It is suggested that setting the locktime back a few blocks can make the funding transaction eligible for inclusion in any of the previous six blocks, increasing the probability that it will be included in the reorganization.There is a proposal to add serial IDs to inputs and outputs to improve the protocol messages for Lightning dual-funding. Each input addition must have a unique serial ID, which is used as a sorting heuristic for input ordering in the final transaction, replacing BIP69. All output scripts must be standard, and nLocktime is always set to 0x00000000. If a blockheight to be used as nLocktime is communicated in the initiation step, it is set to blockheight-6; otherwise, it is set to zero.However, there is concern about what happens if the initiator deliberately provides lousy serial IDs, but it is not an issue since both sides know which inputs and outputs are theirs. There was also a suggestion to add a secret-sharing round where the resulting key is XORed to each serial ID before sorting by the XORed serial ID, but this may be too overweight. Instead, using block headers could be a good solution to avoid block height disagreements.Overall, using block headers can be a better solution to avoid block height disagreements instead of setting block height to -6. Adding serial IDs to inputs and outputs can improve the protocol messages for Lightning dual-funding, and all output scripts must be standard. Collisions between peers in serial ids are considered a protocol error, with collision defined as "equal in all bits except the lowest bit."
TLDR
We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project?
Give Feedback