Closed paulmillr closed 4 years ago
Hi @paulmillr
afaik the msg = abc
case is in our CI tests and it passed: https://github.com/ethereum/py_ecc/blob/d21bbb11d4e7514956810e6ce1cd443a8e8ee817/tests/bls/test_hash_to_curve.py#L70-L72
It seem that your point_3d_to_2d
function is in Jacobian projective coordinates and the test vectors are in homogeneous projective coordinates.
Please let me know if I get it wrong or there's issue in py_ecc. :)
Thanks, that was unclear.
See hash_to_curve spec version 7, specifically msg=abc.
Expected
It should produce (stripping hex to 4 chars):
Actual
u0 and u1 are correct, everything else is not.
Test code
(copy-paste helper methods to hash_to_curve.py if you want to log u, Q, R)
cc @hwwhww @CarlBeek