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

commitment hash > field prime results in failed root check in the circuit #80

Open
ChaitanyaKonda opened this issue Oct 4, 2021 · 0 comments

Comments

@ChaitanyaKonda
Copy link

When commitment hash is greater than the prime of the field, the root calculated is different from the one provided by the sibling path. At application level, this can be handled by ensuring the commitment hash is never greater than prime of the field, by picking a salt that will ensure this. This should not be considered as a permanent solution. This should be rectified in timber which is the source.

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