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: emulated ToBits #731

Merged
merged 2 commits into from
Jun 22, 2023
Merged

fix: emulated ToBits #731

merged 2 commits into from
Jun 22, 2023

Conversation

ivokub
Copy link
Collaborator

@ivokub ivokub commented Jun 21, 2023

We modreduced when the input was constant, but did not when it was a variable. For ECDSA we assert against the modulus which was constant and modreduced.

Need to apply to plonk branch.

@ivokub ivokub added bug Something isn't working zk-evm labels Jun 21, 2023
@ivokub ivokub added this to the v0.9.0 milestone Jun 21, 2023
@ivokub ivokub requested a review from gbotrel June 21, 2023 14:01
@ivokub ivokub self-assigned this Jun 21, 2023
@ivokub ivokub merged commit 0fdc46e into develop Jun 22, 2023
4 checks passed
@ivokub ivokub deleted the fix/emulated-tobits branch June 22, 2023 11:26
ivokub added a commit that referenced this pull request Jun 22, 2023
* test: implement failing test case

* fix: unify emulated ToBits between constant and var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working zk-evm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants