Closed sundayScoop closed 1 year ago
My test wasn't working because I wasn't adding the DST to the hashToCurve function as done here https://github.com/paulmillr/noble-curves/blob/79dd7d342636f421d36acbf3dbe2014ad7ba7ece/test/hash-to-curve.test.js#L113
I just needed to modify my function above to look like this:
hashToCurve(arr, {DST: "QUUX-V01-CS02-with-edwards25519_XMD:SHA-512_ELL2_RO_"}).toAffine().x
then it matched what the tests had.
Thanks for the help
How can I verify that my HashToCurve results are correct as per these tests here: [https://github.com/paulmillr/noble-curves/blob/main/test/hash-to-curve/edwards25519_XMD%3ASHA-512_ELL2_RO_.json ]()?
This is the code I've implemented:
I've tried finding the value of y in the test pages linked above but couldn't seem to find it. I'm sure that I'm comparing the wrong values, so any help would be great.