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 HashWithState to increase its scalability #60

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

hunshenshi
Copy link
Contributor

No description provided.

@hunshenshi hunshenshi changed the title add HashWithState to increase its scalability Add HashWithState to increase its scalability Jan 4, 2024
@jeffprestes
Copy link

Please do not get me wrong on the question, but in which real-world situation would this initial state be helpful? The previous results of other hash would be enough, wouldn't they?

@hunshenshi
Copy link
Contributor Author

hunshenshi commented Jan 8, 2024

consistent with circomlibjs.
In this way, the results of the two poseidon hash can be consistent.
Thank you for your review.

@mdehoog
Copy link

mdehoog commented Jan 22, 2024

+1, this would be useful for us too. When hashing more than 16 values, it can be useful to chain hashes together, such that the hash of the last 16 values is the initial state of the next 16. Opened #61 before seeing this one.

@mdehoog
Copy link

mdehoog commented Jan 24, 2024

cc @OBrezhniev, would love some eyes on this if possible, thank you in advance!

@OBrezhniev OBrezhniev self-requested a review February 16, 2024 02:23
@OBrezhniev
Copy link
Member

OBrezhniev commented Feb 16, 2024

LGTM!
@hunshenshi @mdehoog Thank you for your contributions!

@OBrezhniev OBrezhniev merged commit 36c5a14 into iden3:master Feb 16, 2024
1 check passed
@hunshenshi hunshenshi deleted the initState branch February 17, 2024 04:47
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 this pull request may close these issues.

4 participants