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

Is re-creating the merkle tree after N-F messages with the same root hash have been received necessary? #65

Open
Vagabond opened this issue Jul 18, 2018 · 1 comment

Comments

@Vagabond
Copy link

I have been puzzling over the Merkle tree re-construction done in RBC. Once a node gets N-F Echo or Val messages with the same root hash H (and the associated merkle proofs), assuming all those proofs are validated, what does re-creating the Merkle tree and comparing the root hashes get you?

If you have N-F merkle proofs that you've validated that all agree on the same root hash isn't the chance of re-assembling the shards not matching the original message slim to none? Re-hashing the merkle tree (on every peer) for each of N RBC instances gets pretty painful when N is large.

cc @madninja

@afck
Copy link

afck commented Aug 8, 2018

I think this is for the case of a faulty sender: If the sender uses shards that aren't actually part of an erasure coding to create an otherwise valid Merkle tree, then all the proofs you receive are valid. But interpolation would produce different values, and you would compute a different root hash.

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

2 participants