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

Using BLS12-381 curve to generate groth16 solidity verifier results in out of range error in solidity #432

Open
madhav-madhusoodanan opened this issue Oct 8, 2023 · 1 comment

Comments

@madhav-madhusoodanan
Copy link

Hi

Thank you so much for creating and maintaining this project.

I would like to point out that the verification key data values (alphas, betas, gammas, deltas) in solidity have a value which is outside the range of the uint256 data type when groth16 verification system on the bls12-381 curve is used.

I'm attaching an example solidity verifier with this issue for reference: verify.sol

Do let me know how I can help with sorting this issue.

Thank you so much.

@madhav-madhusoodanan
Copy link
Author

Would it be suggestible to use a Solidity Big-Integer library for handling such numbers?

For example, the solidity-BigNumber library (however it has not been audited properly)

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