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

Simplify PolynomialCommitment trait: remove the generic on S: CryptographicSponge #145

Merged
merged 18 commits into from
Oct 25, 2024

Conversation

mmagician
Copy link
Member

Description

Quality of life improvement for downstream users of the library.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@mmagician mmagician requested a review from a team as a code owner March 11, 2024 14:20
@mmagician mmagician requested review from z-tech, Pratyush and weikengchen and removed request for a team March 11, 2024 14:20
Copy link
Contributor

@autquis autquis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, indeed!

@autquis
Copy link
Contributor

autquis commented Mar 11, 2024

I pushed this to make the tests pass. I can also open another PR to the master for this and then you can rebase this one on that; let me know.

@mmagician
Copy link
Member Author

@autquis Thank you!

@mmagician
Copy link
Member Author

It's a bit annoying with that stable/nightly discrepancy on imports

clean up imports acc to nightly

Revert "dont need to use full path"

This reverts commit b272524abeaa9f7d6697539f22682bc081e3e8a5.

more fmt
@mmagician
Copy link
Member Author

@autquis I had to undo your changes, as no-std was failing. In the end I ended up following the same strategy as https://github.com/arkworks-rs/algebra/pull/790/files#diff-6035356f5adc30af6393d5492dbc1d9d8ec187272030fdd95709b1b30f1275fc

@autquis
Copy link
Contributor

autquis commented Mar 12, 2024

I wonder, isn't it clenaer if we use #[cfg(not(feature = "std"))] for these imports?

@mmagician
Copy link
Member Author

That's worth exploring yes

@mmagician
Copy link
Member Author

The checks in #130 are failing. They've already been addressed here, we can either try to cherry pick the relevant commit to Hyrax, or merge this PR first and adapt Hyrax accordingly to remove the generic S. I'm in favor of the latter @Pratyush

@autquis
Copy link
Contributor

autquis commented Apr 7, 2024

I added ark-std to the patch due to arkworks-rs/std#48
CI fails because of the same issue of imports in crypto-primitive. But poly-commit is fine now.

Also, I am doing a bit of cleaning up in the order of imports, as we are touching imports anyway.

@autquis autquis force-pushed the no-generic-sponge branch 4 times, most recently from b3b04f2 to ef199a1 Compare May 27, 2024 09:13
@autquis
Copy link
Contributor

autquis commented May 27, 2024

Another ping. @weikengchen @Pratyush @z-tech

Also, it seems the cfg(not(feature("std"))) is no longer needed (rustc stable got upgraded). Once you review this, I'll remove them, and then, merge the PR, please. I'm not changing it now.

@autquis
Copy link
Contributor

autquis commented Jun 10, 2024

Gentle reminder @Pratyush

@autquis
Copy link
Contributor

autquis commented Oct 17, 2024

Reminder for this @Pratyush I would appreciate it if you could have a look

@Pratyush Pratyush added this pull request to the merge queue Oct 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2024
@Pratyush Pratyush added this pull request to the merge queue Oct 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2024
@Pratyush
Copy link
Member

The CI build failure is puzzling; DefaultHashBuilder does implement Clone…

https://docs.rs/hashbrown/latest/hashbrown/type.DefaultHashBuilder.html

@autquis
Copy link
Contributor

autquis commented Oct 21, 2024

@Pratyush Thanks for checking! There were two issues:

Now CI is okay.

@autquis
Copy link
Contributor

autquis commented Oct 22, 2024

Just a reminder to add this to the merge queue :) @Pratyush

@Pratyush Pratyush added this pull request to the merge queue Oct 24, 2024
@Pratyush Pratyush removed this pull request from the merge queue due to a manual request Oct 24, 2024
@Pratyush
Copy link
Member

Regarding the dummy doc, could you change it so that in the test modules we have #![allow(missing_docs)]? This way we don't need to add these dummy docs. Thank you!

@autquis
Copy link
Contributor

autquis commented Oct 24, 2024

Done! :)

@Pratyush Pratyush added this pull request to the merge queue Oct 25, 2024
Merged via the queue into arkworks-rs:master with commit 2d627e3 Oct 25, 2024
4 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.

3 participants