verify method
Takes a 32-byte message hash
and publickey
and returns true if the
signature is valid for the public key and hash. This accepts malleable
signatures with high and low S-values.
Implementation
bool verify(ECPublicKey publickey, Uint8List hash)
=> secp256k1.ecdsaVerify(
secp256k1.ecdsaSignatureNormalize(_compact),
checkBytes(hash, 32),
publickey.data,
);