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

incompatibility between zeroHashes and custom hash function #163

Open
olegrok opened this issue Jun 5, 2024 · 2 comments
Open

incompatibility between zeroHashes and custom hash function #163

olegrok opened this issue Jun 5, 2024 · 2 comments

Comments

@olegrok
Copy link
Contributor

olegrok commented Jun 5, 2024

In case you want to provide custom hash function behavior can be quite unexpected.

It happens because zeroHashes is global variable that is initialized by default with sha256:

zeroHashes[i+1] = sha256.Sum256(tmp[:])

@ferranbt
Copy link
Owner

ferranbt commented Jun 5, 2024

Hi, what is your use case for a custom hash function?

@olegrok
Copy link
Contributor Author

olegrok commented Jun 5, 2024

Hi! I want to use poseidon hash instead of sha256

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