Skip to content

Optimisations for Hash to Curve #81

Open
@kirk-baird

Description

@kirk-baird

What is wrong?

Currently we use a 'constant' time hash to curve function.

It is possible to significantly increase speeds by removing the constant time requirements.

How can it be fixed

The two key areas where speeds could be made are in py_ecc/optimized_bls12_381/optimized_swu.py:

  • Returning when a solution is found in sqrt_division_FQ2()
  • Stopping the loop in optimized_swu_G2() when either success or success_2 is true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions