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

Add the ability to hash arrays [Feature] #21727

Open
matthewdgreen opened this issue Dec 12, 2023 · 0 comments
Open

Add the ability to hash arrays [Feature] #21727

matthewdgreen opened this issue Dec 12, 2023 · 0 comments
Labels
feature A new feature.

Comments

@matthewdgreen
Copy link

🚀 Feature

Currently the documentation indicates that we can hash structs using hash functions like Poseidon. But this capability does not work for other static structures like arrays. Can Leo be made to treat arrays as though they are structs, so we can then hash them?

Motivation

There are many applications where the ability to hash arrays is useful, just as the ability to hash arrays is useful.

Implementation

I'm hopeful this is as simple as making a type cast in the high level language compiler.

@matthewdgreen matthewdgreen added the feature A new feature. label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature.
Projects
None yet
Development

No branches or pull requests

1 participant