verify method

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

Verify the signature of the string data

Implementation

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

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