Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access the Merkle tree #35

Open
IS4Code opened this issue Jun 17, 2021 · 0 comments
Open

Access the Merkle tree #35

IS4Code opened this issue Jun 17, 2021 · 0 comments

Comments

@IS4Code
Copy link

IS4Code commented Jun 17, 2021

BLAKE3 is internally a Merkle tree, which means that individual hashes are computed from the binary chunks (the Merkle leaf node) which are then combined to eventually get the root hash of the tree - the result of the whole hash function.

Would it be possible to access the hash list at any individual depth of the Merkle tree, and "store it for later"? Let's say the file is 4 GiB in size, so we have 4194304 individual hashes. I want to reduce this a few times (say thrice to 524288), intercept the current state of the computation (store the 524288 hashes at this level in the tree) as a binary blob, and then use this hash list in a completely new context to compute the final hash, which would be identical to the hash if computed without the interception in the middle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant