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

feat: Add initial implementation of Blake3 G function gadget #7

Closed
wants to merge 2 commits into from

Conversation

storojs72
Copy link
Member

This PR contains initial implementation of Blake3 G function gadget.

Essentially two inner gadgets are defined: Add3, which computes addition of 3 u32 at once and XorRotateRight, which takes two u32 as input, computes their XOR and then rotates the XOR result. To check gadget's validity there is a test that uses standard Binius-style input with randomised data (via unconstraint function) for the gadget and also in order to be sure that computations are valid, there is a test_vector test that allows submitting some input and compare output produced by gadget and out-of-circuit implementation.

@storojs72
Copy link
Member Author

Closing this in favour of IrreducibleOSS#16 to the upstream

@storojs72 storojs72 closed this Feb 12, 2025
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