Breaking change in calculation of hash_serialized_2

Posted by Peter Todd

Oct 20, 2023/17:34 UTC

In a recent discussion, James raised an interesting question regarding the use of the sha256 hash of the snapshot file as the canonical hash. He suggested that this would eliminate any potential malleability issues. Currently, the gettxoutsetinfo function is used to calculate the hash by walking through the entire UTXO set. James proposed a more straightforward approach, where the function would generate the contents of the dump file and calculate its hash directly.

This idea presents a practical solution that could simplify the implementation process. By using the actual contents of the dump file itself, the hash calculation becomes more direct and eliminates potential vulnerabilities. James's suggestion aligns with the notion of making the code more efficient and secure.

To further explore this topic, visit Peter Todd's website at https://petertodd.org.

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