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

fix: don't allow double-spending with a large nullifier #2

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

kobigurk
Copy link
Contributor

Currently the nullifier is not checked to be within the SNARK field. This allows creating a nullifier which is still a valid bytes32/uint256 that has the same result modulo the field, but the spent nullifier dictionary treats them as different, allowing double-spending.

Copy link
Collaborator

@sragss sragss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks for the PR Kobi!

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

Successfully merging this pull request may close these issues.

None yet

2 participants