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 Wahby-Boneh hash-to-curve #343

Merged
merged 154 commits into from
Feb 8, 2022
Merged

Conversation

drskalman
Copy link
Contributor

@drskalman drskalman commented Oct 29, 2021

Description

This PR uses #147 PR to implement WB hash to curve to it by essentially by translating https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs to arkworks language

We have also implemented the relevant parameters in our fork of arkworks-curves for bls12-381 and bls12-377 and now it works with our bls 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

ValarDragon and others added 30 commits December 18, 2020 20:10
…!(F127::new(BigInteger64([1])) == field_new!(F127, "1"));`
montgomery form.
- added map_field_to_curve_swu
ff/src/fields/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@Pratyush Pratyush left a comment

Choose a reason for hiding this comment

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

This looks almost ready, modulo the small nits.

ec/Cargo.toml Outdated Show resolved Hide resolved
ec/Cargo.toml Outdated Show resolved Hide resolved
Marcin and others added 4 commits January 11, 2022 09:15
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Adapt the hash-to-curve codebase to digest v0.10
drskalman and others added 3 commits January 12, 2022 13:12
Co-authored-by: Marcin <marcin@web3.foundation>
- match definition of parity function to sgn0 of ietf draft in swu map
@Pratyush
Copy link
Member

Pratyush commented Feb 1, 2022

Hi all, is there anything I can do to help push this along?

@drskalman
Copy link
Contributor Author

Hi all, is there anything I can do to help push this along?

I think it requires your judgement on @mmagician comment here:

https://github.com/arkworks-rs/algebra/pull/343/files/e18fd44106008cd3c885cf955556f805f24db9bc#diff-b13fb8649e8438bfe74b4b6f00cf6e78debf4df9bc5fae8d56775e3ee15966adR188

@mmagician
Copy link
Member

With the latest commits I have addressed the outstanding comments. Let us know if there's anything else @Pratyush.

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

Do you have any test vectors comparing against the Pasta implementation of hash-to-curve? I didn't see any (but this is a large PR and I might have missed them).

ec/src/hashing/curve_maps/swu/mod.rs Outdated Show resolved Hide resolved
ec/src/hashing/curve_maps/wb/mod.rs Outdated Show resolved Hide resolved
Pratyush and others added 2 commits February 7, 2022 18:14
@Pratyush Pratyush changed the title WB hash to curve Add Wahby-Boneh hash-to-curve Feb 8, 2022
@Pratyush Pratyush merged commit 548a3c4 into arkworks-rs:master Feb 8, 2022
@NikZak NikZak mentioned this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-design Type: discuss API design and/or research T-feature Type: new features T-performance Type: performance improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants