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

hash to curve suite #146

Merged
merged 11 commits into from
May 24, 2024
Merged

Conversation

kilic
Copy link
Collaborator

@kilic kilic commented Mar 26, 2024

Hash to curve suites added so we are passing test vectors at draft-irtf-cfrg-hash-to-curve-14However vectors we can run are only for SSWU method so there is no test against SVDW.

  • CurveExt::hash_to_curve implements the default method but user can make its own combination using hash_to_curve::Suite
  • Fixed FromUniformBytes<64> at pluto eris side.
  • Now it uses single implementation for montgommery_form

Should close #145

@kilic kilic marked this pull request as draft March 26, 2024 06:36
@kilic kilic marked this pull request as ready for review March 26, 2024 23:04
@davidnevadoc davidnevadoc self-requested a review April 1, 2024 16:46
Copy link
Contributor

@duguorong009 duguorong009 left a comment

Choose a reason for hiding this comment

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

I am sure it looks good overall.
Pls remove the leftovers I found.

src/hash_to_curve.rs Outdated Show resolved Hide resolved
src/pluto_eris/fields/fq.rs Outdated Show resolved Hide resolved
src/hash_to_curve.rs Show resolved Hide resolved
src/hash_to_curve.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@davidnevadoc davidnevadoc left a comment

Choose a reason for hiding this comment

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

I have left some comments, great changes overall!
I'll give it the final pass next week.

src/secq256k1/curve.rs Outdated Show resolved Hide resolved
src/grumpkin/curve.rs Outdated Show resolved Hide resolved
src/bn256/mod.rs Show resolved Hide resolved
src/pluto_eris/fields/mod.rs Outdated Show resolved Hide resolved
src/derive/field.rs Show resolved Hide resolved
Co-authored-by: David Nevado <[email protected]>
Copy link
Contributor

@davidnevadoc davidnevadoc left a comment

Choose a reason for hiding this comment

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

Final pass: Just left some comments about FromUniformBytes implementations.
Will approve once the comments are addressed. Great job! 👍

src/secp256r1/curve.rs Outdated Show resolved Hide resolved
src/pluto_eris/curve.rs Show resolved Hide resolved
src/secp256r1/curve.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@davidnevadoc davidnevadoc left a comment

Choose a reason for hiding this comment

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

LGTM!

@kilic kilic added this pull request to the merge queue May 24, 2024
Merged via the queue into privacy-scaling-explorations:main with commit f7c6b4c May 24, 2024
12 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.

Support various hash functions at expand_message part of hashing to curve
4 participants