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 assembly instruction for hashing long sequences of values #38

Open
bobbinth opened this issue Aug 16, 2020 · 2 comments
Open

Add assembly instruction for hashing long sequences of values #38

bobbinth opened this issue Aug 16, 2020 · 2 comments
Labels
enhancement New feature or request instruction set Changes to instruction set

Comments

@bobbinth
Copy link
Contributor

Current hash instructions allow hashing between 1 and 4 field elements. Hashing of more than 4 elements is possible but requires the user to manually calculate the number of hash instructions needed. Ideally, we should have a single digest.n instruction which can be used to hash arbitrarily many elements.

@bobbinth bobbinth added enhancement New feature or request instruction set Changes to instruction set labels Aug 16, 2020
@xz-cn
Copy link

xz-cn commented Aug 18, 2020

Do we need to make an upper limit for the n number?

@bobbinth
Copy link
Contributor Author

I don't think it matters too much (if the user wants to hash GBs of data they should be able to) - but I think we can put a limit on n to make sure it fits in a 32 bit integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request instruction set Changes to instruction set
Projects
None yet
Development

No branches or pull requests

2 participants