verify method
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);
}
Verify the signature of the string data
bool verify(String data, AMAXPublicKey publicKey) {
Digest d = sha256.convert(utf8.encode(data));
return verifyHash(Uint8List.fromList(d.bytes), publicKey);
}