-
Notifications
You must be signed in to change notification settings - Fork 23
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
Consider representing a proof as a vector of ProofBlock instead of a linked-list? #4
Comments
Pros:
Cons:
Suggestion: Let's first write benchmarks, and see where we currently stand space- and time-wise overall, and which code paths make more sense to optimize first. I think it's very likely that the current |
We won't address this immediately. This will likely get addressed in the future by another way of encoding the Merkle tree structure. |
I submitted a couple of PRs that will hopefully help with this. As far as my own use of Merkle tree signatures is concerned, it would be ideal if the verification of a serialized proof could be done without using the heap at all. In particular, if we have the serialized proof as a I don't know of any use cases for the signing side where such things really matter. |
In hbbft I tried representing the proof just as its index and the vector of sibling digests. For us, that reduced the size considerably, and the proof generation ( I don't think it makes much of a difference in terms of CPU time, though. The bottleneck is probably hashing, and there's still the exact same number of hashes, of course. |
Pros and cons?
The text was updated successfully, but these errors were encountered: