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

Improve trait implementations for algebraic hashes #19

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

kustosz
Copy link
Contributor

@kustosz kustosz commented Nov 27, 2024

This fixes a few issues related to missing or wrong trait implementations, that make it impossible to work with algebraic hashes:

  1. Makes nimue-pow work with any byte-supporting transcript, not just ones with Unit=u8;
  2. Fixes the implementation of FieldChallenges to use units whenever possible. Previously even own-field challenges would go through the bytes impl for no apparent reason;
  3. Implements ByteReader and ByteWriter for field-based transcripts.

@WizardOfMenlo
Copy link
Collaborator

Is this ready to merge or is it still ongoing? If so, I can merge after the lint checks pass.

@kustosz
Copy link
Contributor Author

kustosz commented Nov 28, 2024

This is ready to merge. I've fixed the clippy warnings that pertained to this work, but the rest of them are entirely unrelated and looking at PR history they've been failing for quite some time now.

@WizardOfMenlo
Copy link
Collaborator

I see, will fix them in an other PR and merge this

@WizardOfMenlo WizardOfMenlo merged commit 58ca31b into arkworks-rs:main Nov 29, 2024
5 of 6 checks passed
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.

2 participants