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

Support u256 datatype at HIR level #403

Open
DavePearce opened this issue Nov 28, 2024 · 0 comments
Open

Support u256 datatype at HIR level #403

DavePearce opened this issue Nov 28, 2024 · 0 comments

Comments

@DavePearce
Copy link
Collaborator

DavePearce commented Nov 28, 2024

This is the first step towards field agnosticity. Specifically, we introduce a u256 type which compiles into two u128 limbs for the BLS12-377 curve. This would only have an effect when the type was used, meaning that the existing constraints could be compiled as is. However, we would then be able to incrementally update modules.

At the HIR level we can support this type directly by evaluating using big.Int rather than fr.Element. We can presumably add additional checks for overflow, etc as well.

@DavePearce DavePearce changed the title Support u256 datatype Support u256 datatype at HIR level Dec 8, 2024
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