Verifies a ECDSA signature over the secp256k1 curve.
inputs:
x coordinate of public key as 32 bytes
y coordinate of public key as 32 bytes
the signature, as a 64 bytes array
The signature internally will be represented as (r, s),
where r and s are fixed-sized big endian scalar values.
As the secp256k1 has a 256-bit modulus, we have a 64 byte signature
while r and s will both be 32 bytes.
We expect s to be normalized. This means given the curve's order,
s should be less than or equal to order / 2.
This is done to prevent malleability.
For more context regarding malleability you can reference BIP 0062.
Verifies a ECDSA signature over the secp256k1 curve.
(r, s), whererandsare fixed-sized big endian scalar values. As thesecp256k1has a 256-bit modulus, we have a 64 byte signature whilerandswill both be 32 bytes. We expectsto be normalized. This means given the curve's order,sshould be less than or equal toorder / 2. This is done to prevent malleability. For more context regarding malleability you can reference BIP 0062.