Closed obatirou closed 1 month ago
This PR is part of https://github.com/verklegarden/crysol/issues/23. It adds the tests vectors for point validity and de/encoding and allows to test:
mul
add
IsOnCurve
pointFromEncoded
pointFromCompressedEncoded
The addition of those tests allowed to catch a bug: isOnCurve was missing a check on coordinate that needs to be inferior to P
isOnCurve
P
This PR is part of https://github.com/verklegarden/crysol/issues/23. It adds the tests vectors for point validity and de/encoding and allows to test:
mul
add
IsOnCurve
pointFromEncoded
pointFromCompressedEncoded
The addition of those tests allowed to catch a bug:
isOnCurve
was missing a check on coordinate that needs to be inferior toP