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: do not accept invalid maci keys #1408

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Apr 29, 2024

Description

Ensure MACI keys are correctly validated to be a point on the babyjujub curve

Confirmation

Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
maci-website ✅ Ready (Inspect) Visit Preview May 1, 2024 8:02pm

@ctrlc03 ctrlc03 self-assigned this Apr 29, 2024
@ctrlc03 ctrlc03 force-pushed the fix/validate-babyjubjub-point branch 3 times, most recently from bc64906 to 3080a9a Compare April 29, 2024 18:44
@ctrlc03 ctrlc03 enabled auto-merge April 29, 2024 18:44
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Slither found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks, just one question: can we add this check for cli, so user don't need to initiate the transaction?

@ctrlc03 ctrlc03 disabled auto-merge April 29, 2024 18:55
Copy link
Collaborator

@kittybest kittybest left a comment

Choose a reason for hiding this comment

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

thanks!

contracts/contracts/MACI.sol Show resolved Hide resolved
contracts/contracts/crypto/BabyJubJub.sol Outdated Show resolved Hide resolved
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks!

@ctrlc03 ctrlc03 merged commit 153326b into dev May 1, 2024
20 checks passed
@ctrlc03 ctrlc03 deleted the fix/validate-babyjubjub-point branch May 1, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants