verify method

bool verify(
  1. ECPublicKey publickey,
  2. Uint8List hash
)

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,
  );