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

dev: Implement the merkle hash computation using ByteArray. #37

Closed
JordyRo1 opened this issue Jun 14, 2024 · 0 comments · Fixed by #39
Closed

dev: Implement the merkle hash computation using ByteArray. #37

JordyRo1 opened this issue Jun 14, 2024 · 0 comments · Fixed by #39
Assignees

Comments

@JordyRo1
Copy link
Contributor

Currently, we are manually taking an input array, divide it into u64 span, reverse it then pass it the cairo_keccak function in order to compute the hash for a given input. The idea is instead to use ByteArray, since it allows directly to work with u8, making the division into u64 span safer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant