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

sha256 compilation issue #1374

Open
TheYangCode opened this issue Jun 20, 2024 · 1 comment
Open

sha256 compilation issue #1374

TheYangCode opened this issue Jun 20, 2024 · 1 comment

Comments

@TheYangCode
Copy link

import "hashes/sha256/sha256Padded" as sha256;

def main(u8[7417]input) ->u32[8]{

    u32[8] hash = sha256(input);

    return hash;
}

The above is my code, but it always gets killed during compilation. Is it because it requires too much memory? How should I adjust it?

@jswalens
Copy link

Probably the input is so large that it runs out of memory during compilation. I'm afraid using such large inputs for SHA256 is not the way to go using Zokrates. You could maybe use the Poseidon hash?

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

2 participants