verify method

bool verify(
  1. String data,
  2. EOSPublicKey publicKey
)

Verify the signature of the string data

Implementation

bool verify(String data, EOSPublicKey publicKey) {
  Digest d = sha256.convert(utf8.encode(data));

  return verifyHash(Uint8List.fromList(d.bytes), publicKey);
}