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.
Description
This changes the
HashToCurve
trait used toCrhAndXofHashToCurve
, and introduces a newHashToCurve
trait without theextra_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