Open pmerkleplant opened 3 months ago
Made the first part with https://github.com/verklegarden/crysol/pull/32 for secp256k1 Point validity and de/encoding vectors.
For ECDSA it will be in an other PR.
From my understanding: to use the verify function from the ECDSA library, one would need to do some processing on vector values as it uses a scalar as a privateKey. Hence, one would need to get the SecretKey
from the scalar d
. For that it would require to have access to secretKeyFromUint
from Secp256k1
.
it would require to have access to
secretKeyFromUint
fromSecp256k1
.
Feel free to import the Secp256k1
library anywhere necessary. 👍
Paul Miller's
noble-curves
project provides different test vectorscrysol
should test again:Note that .json files should be used, which can be injected either via forge's
stdJson
library or simple shell script usingcast
to abi-encode the vectors.