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

Move h2c tests to test-templates #554

Merged
merged 6 commits into from
Dec 22, 2022

Conversation

mmagician
Copy link
Member

Description

Hashing to more curves is WIP, and we should have a unified suite for checking against test vectors.


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 review from a team as code owners December 22, 2022 08:59
@mmagician mmagician requested review from Pratyush and weikengchen and removed request for a team December 22, 2022 08:59
@Pratyush
Copy link
Member

This is a great idea. Should we add the existing tests in this repo to test-curves, using the new macro?

@mmagician
Copy link
Member Author

@Pratyush See the companion PR in curves: arkworks-rs/curves#139.
We can of course still add them here, though, if you think that's better.

@Pratyush
Copy link
Member

Let's add it in both, because the curves-algebra integration is often out of sync, so it's useful to get immediate feedback

instead of relying on caller
otherwise the location was determined by usage in curves repo
@mmagician
Copy link
Member Author

@Pratyush I've added them to test-curves too, and slighlty adapted the macro now so that we can specify the path where the test vectors are located. Ready for review!

@Pratyush Pratyush merged commit 30903df into arkworks-rs:master Dec 22, 2022
@mmagician mmagician deleted the h2c-test-templates branch December 22, 2022 10:15
andrewmilson added a commit to andrewmilson/algebra that referenced this pull request Jan 1, 2023
* upstream/master: (29 commits)
  Fix some clippy lints (arkworks-rs#570)
  Correct tag name & complete command suggestion (arkworks-rs#569)
  Open a "release-PR" against a `releases` branch (arkworks-rs#566)
  Allow to overwrite default impl of `msm` in TwistedEdwards form (arkworks-rs#567)
  Remove poly-benches. (arkworks-rs#558)
  DO NOT MERGE YET. Release 0.4 (arkworks-rs#512)
  otherwise downstream users that have not migrated will not see warning (arkworks-rs#563)
  use `into_bigint()` in `Debug` for `Fp<P, N>` (arkworks-rs#562)
  Add `frobenius_map_in_place` (arkworks-rs#557)
  Fix test_sw_properties for some cofactor groups (arkworks-rs#555)
  Move h2c tests to test-templates (arkworks-rs#554)
  impl `CanonicalSerialize/Deserialize` for `BigUint` (arkworks-rs#551)
  Fix MontFp issue in fields with 64 * k bits (arkworks-rs#550)
  Fix tests for Modulus plus one div four (arkworks-rs#552)
  fix (arkworks-rs#547)
  Rename all `*Parameters` to `*Config` (arkworks-rs#545)
  Fix doc-comment on `SWUMap` and CamelCase `(CO)DOMAIN`
  Small cleanups in hash-to-curve (arkworks-rs#544)
  Allow to overwrite the default implementation of `msm` (arkworks-rs#528)
  Move `multi_miller_loop` and `final_exponentiation` into `BW6Config` (arkworks-rs#542)
  ...
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