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

fixes an issue where pairing raises an unexpected exception #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flipdazed
Copy link

It appears that switch success case 0 { invalid() } causes a bug in the snarks solidity templates that emerges as

Transaction reverted: call to precompile 8 failed

when the curve pairing fails.

The following remix debug gives some more insight into this issue:

{
	"error": "Failed to decode output: Error: hex data is odd-length (argument=\"value\", value=\"0x0\", code=INVALID_ARGUMENT, version=bytes/5.5.0)"
}

My guess is that the curve pairing returns 0x0 or 0x1 which cannot be handled inside the assembly.

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.

1 participant