Oct 26 - Dec 21, 2023
The transaction recycling attack has been enabled by modifications in HTLC second-level transactions for anchor channel types, allowing additional fees to be inserted without invalidating the signature. This method was not feasible with legacy channels where fees were directly sourced from HTLC outputs and required mutual consent during the signing process.
HTLC output aggregation reduces fee-bumping reserve requirements for channel participants by allowing common fields like nVersion and nLocktime between second-stage HTLC transactions to be shared. However, concerns about the extent of malleability available to the counterparty remain, potentially allowing them to deplete the value promised through accumulated HTLCs by paying excessive miners' fees. A proposed solution to mitigate this risk involves segregating HTLC claims into separate outputs, using covenants to manage aggregated claims based on witness satisfaction and chain state conditions corresponding to time locks.
The current protocol limit of 483 impacts the long-term payment throughput on the LN. Yet, aggregated claims could provide a more dynamic margin for tangible and trust-minimized HTLC payments. Introducing sliding windows for claim periods could freeze the HTLC-timeout path but would necessitate an off-chain consensus on the feerate threshold activating these windows among all routing nodes in the HTLC payment path.
In the context of PTLCs (Point Time-Locked Contracts), creating an aggregate curve point for sub-combinations of plausible scalar values is considered. Taproot branches could facilitate near-constant size for claimed offered HTLCs. Such covenant mechanisms might also extend to withdrawal phases in payment pools, enabling concurrent confirmations of non-competing transactions by numerous participants while still requiring verification of each associated unlocking secret.
Emerging Layer 2 solutions might address the N-inputs-to-M-outputs pattern with advanced locking scripts that meet specific conditions. Efficiency simulation frameworks are suggested as a means to evaluate the trade-offs between different covenant constructions, emphasizing the importance of understanding their game-theoretical implications to avoid potential "malicious" contracts.
Lastly, the post contemplates whether advanced cryptosystems, relying on assumptions beyond the Discrete Logarithm problem, could significantly enhance the scalability of LN payment throughput. The goal would be to decouple the number of off-chain payments from the growth of on-chain witness size needed to claim them without compromising security, despite concerns over trimmed HTLCs due to dust limits. For further technical details and test results, references have been made to resources such as a Github repository concerning lightning network specifications, a commit demonstrating the recycling attack test, and various scholarly and technical discussions surrounding Bitcoin and smart contract behaviors.
Thread Summary (9 replies)
Oct 26 - Dec 21, 2023
10 messages • 9 replies
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback