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

mimc7 hash algorithm bug #1316

Closed
hotaru57 opened this issue May 23, 2023 · 1 comment · Fixed by #1317
Closed

mimc7 hash algorithm bug #1316

hotaru57 opened this issue May 23, 2023 · 1 comment · Fixed by #1317

Comments

@hotaru57
Copy link

Description

When i use mimc7 hash algorithm mimc7::<91> , i get an incorrect output

There is a constant field[] C in file mimc7.zok, the value should be 13602139229813231349386885113156901793661719180900395818909719758150455500533 when index is 91

Environment

  • Compiler version: 0.8.7

  • Operating system: CentOS 7

Steps to Reproduce

def main(field x, field k) -> field {
    h = mimc7::<91>(x, k);
    return h;
}
@dark64
Copy link
Member

dark64 commented May 23, 2023

Hi @hotaru57, nice catch!

Fixed in #1317

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 a pull request may close this issue.

2 participants