verify function

bool verify(
  1. String message,
  2. String signature,
  3. ECPublicKey key
)

Verify a message.

Implementation

bool verify(String message, String signature, ECPublicKey key) {
  // ignore: omit_local_variable_types
  ECDSASigner verifier = _createVerifier(key);
  // ignore: omit_local_variable_types
  ECSignature decodedSignature = _decodeSignature(signature);

  return verifier.verifySignature(utf8.encode(message), decodedSignature);
}