-
Notifications
You must be signed in to change notification settings - Fork 35
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
[feat] Utreexo: removing item from the accumulator #218
[feat] Utreexo: removing item from the accumulator #218
Conversation
TAdev0
commented
Sep 22, 2024
•
edited
Loading
edited
- resolves [feat] Utreexo: removing item from the accumulator #209
- follows contribution guide
- code change includes tests
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@m-kus first draft. Need to add more tests to it, not 100% sure of my implementation. |
can you confirm that desired behaviour is that once an I think there is no choice actually. Because we need to ''copy paste'' all the remaining roots that are not concerned by the removal, we need to append residual roots to the utreexostate. Hence, in case where we remove a lot of leaves, we'll have multiple Option::None appended. I dont see any way (that is not costly and doesnt require to loop over all the remaining roots) to check whether we should append or not remaining roots to stick to only one Option::None at the end of our array of roots. |
Also, can you confirm that the deletion algorithm doesnt require to use |
There always has to be at least one root ( |
It requires leaf index (which is part of the proof) to determine the position of the sibling node from the proof when you compute parent hash. |
@m-kus ready for final review |