/
sipaPosted by sipa
Mar 26, 2025/15:17 UTC
In discussing the complexities and potential vulnerabilities of transaction linearization in network security, a significant point is raised about how an attacker could exploit these systems by creating multiple conflicting versions of a transaction. This action could effectively partition the network into clusters, each aware of only one version of the attacked transaction. This scenario complicates the relay of honest transactions across these partitions, especially when linearization information, which is crucial for ensuring the integrity and order of transactions, is required from senders who might not be fully aware of the specific cluster dynamics at play.
Furthermore, there's an advancement in handling such network complexities through a new implementation of the GGT (Generic Graph Theoretic) algorithm. This implementation adopts a max-height active node selection strategy, aiming to optimize the process of transaction linearization. The source code for this has been made available for review and testing on GitHub (sipa/bitcoin commits). Initial benchmarks of this implementation show promising results, with the ability to handle up to 64 transactions within 5-15 µs, and scaling up to 60 µs for 99 transactions. These performance metrics reflect a slight decrease in speed due to enhancements aimed at improving scalability and robustness but remain competitive when compared to previous algorithms like the spanning-forest linearization method. Despite being slower by a factor of 1.5x after incorporating concurrent reverse execution, the trade-off is deemed acceptable given the significant improvement in handling worst-case scenarios. Estimations based on the number of iterations performed suggest that the algorithm could operate in the "few ms" range for 64 transactions, highlighting its potential efficacy as a background optimizer, though its suitability for real-time application during relay remains questionable.
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