celo-org / celo-bls-snark-rs

Implements SNARK-friendly BLS signatures
https://celo.org
Apache License 2.0
84 stars 21 forks source link

Crh and Xof hash to curve #202

Open ValarDragon opened 4 years ago

ValarDragon commented 4 years ago

Description

This changes the HashToCurve trait used to CrhAndXofHashToCurve, and introduces a new HashToCurve trait without the extra_data API.

It remains to decide how to handle the hash_with_attempt methods on the try and increment functions. (Should they have extra data or no?) The only thing that remains for this PR is to update the doc tests depending on this decision.

Tested

The existing tests were updated to use the new CrhAndXofHashToCurve API.

Other changes

Added some more docs to the traits as well

Related issues

Closes #201