Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Implement WB hash2curve for BLS12-377 and BLS12-381 #138

Merged
merged 64 commits into from
Jan 10, 2023

Conversation

drskalman
Copy link
Contributor

@drskalman drskalman commented Dec 20, 2022

Description

closes #18

Implementation Wahby - Bonneh Hash to curve for BLS12-377 and BLS12-381. The implementation of BLS12-381 is the same as the one found in the algebra/test-curves. The PR has been reviewed previously by @Pratyush @mmagician here

  • 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: BLS12-381 has tests, comprehensive test for BLS12-377 by @mmagician.
  • 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

drskalman and others added 30 commits October 14, 2021 20:11
- Improvement to WB hash to curve code for BLS12-377
- Update sage code for generating isogeny coefficients for arkworks.
- fix the polynomial coeffcient order for bls12-381 g1 and g2 isogenies.
- fix the polynomial coeffcient order for bls12-377 g1.
377-g2 needs to be fixed still.
…12-377-wb-hash2curve

- make bls12_377 implementation compatible with the upgrade.
- bls12_377 builds
…-377

- Do not use auxiliary constants to define generators of g2_swu_iso curve.
- Update change log
@drskalman
Copy link
Contributor Author

@dishport as @Pratyush said, I think the first step is address this issue zhenfeizhang/indifferentiable-hashing#3 and then we can do a PR to algebra.

@mmagician
Copy link
Member

I manually checked that the h2c tests are executed:

...
test curves::tests::g1_h2c::test_h2c ... ok
...

@mmagician mmagician merged commit bf8c488 into arkworks-rs:master Jan 10, 2023
@Dimitri-Koshelev
Copy link

@dishport as @Pratyush said, I think the first step is address this issue zhenfeizhang/indifferentiable-hashing#3 and then we can do a PR to algebra.

@drskalman, @Pratyush, this issue was succesfully addressed. Could you now add the new hash function to arkworks ?

@drskalman drskalman deleted the skalman-bls12-377-wb-hash2curve branch February 7, 2023 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hashing to curves
4 participants