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

Adds primitives needed for BLS12-381 hash_to_curve for G1 & G2 #258

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

petscheit
Copy link
Contributor

@petscheit petscheit commented Nov 28, 2024

This PR adds map_to_curve, isogeny and cofactor clearing circuits for G1/G2 points. This enables the conversion of hashes to G2 points

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing
  • Other (please describe):

@petscheit petscheit changed the title Adds primitives needed for BLS12-381 hash_to_curve for G2 Adds primitives needed for BLS12-381 hash_to_curve for G1 & G2 Nov 29, 2024
@petscheit petscheit marked this pull request as ready for review December 2, 2024 09:40
hydra/garaga/modulo_circuit.py Outdated Show resolved Hide resolved
hydra/garaga/precompiled_circuits/ec.py Outdated Show resolved Hide resolved
hydra/garaga/definitions.py Outdated Show resolved Hide resolved
hydra/garaga/modulo_circuit.py Outdated Show resolved Hide resolved
@feltroidprime
Copy link
Collaborator

feltroidprime commented Dec 10, 2024

Please apply suggestions, do make rewrite and remove duplicate code.

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