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: fix bug in keccak precompile. #216

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

VanhGer
Copy link
Contributor

@VanhGer VanhGer commented Jan 14, 2025

Before fixing: with the different inputs: 3123123121122121411231 and 3123123123123121411231, our precompile keccak outputs the same value 3ee5ea8c59a705af94f3081a0754b00db02a9215b34364fd3a2bacd2a64ebf9c.

After fixing: correct value. It now outputs the correct value. Verify the result using this website: https://emn178.github.io/online-tools/keccak_256.html

@VanhGer VanhGer force-pushed the fix/keccak-compile branch from af4aa64 to 88fa634 Compare January 14, 2025 05:13
@VanhGer VanhGer changed the title fix: convert to u32 in keccak precompile. fix: fix bug in keccak precompile. Jan 14, 2025
@weilzkm weilzkm merged commit 0e62a05 into zkMIPS:main Jan 14, 2025
3 checks passed
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.

3 participants