Skip to content

Conversation

@daxpedda
Copy link
Contributor

This PR adds the ability for the hash2curve standalone functions to take a configurable mapping function.

To that effect the following changes were made:

  • The MapToCurve trait is now only used for mapping functions.
  • A new HashToCurve trait is introduced holding the curve parameters that were previously on MapToCurve.
  • Introduce ZSTs for each MapToCurve implementation: ShallueVanDeWoestijne, Elligator2, Decaf448Map.
  • Weierstrass curves re-export ShallueVanDeWoestijne.
  • Removed the AffineOsswuMap workaround, which isn't needed anymore.

Resolves #1422.

@daxpedda daxpedda force-pushed the hash2curve-map2curve branch from 183dc16 to db0cf62 Compare September 14, 2025 16:26
@daxpedda daxpedda force-pushed the hash2curve-map2curve branch from db0cf62 to ecae0a2 Compare September 26, 2025 22:20
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.

hash2curve: configurable mapping function

1 participant