verify method
Verifies that the signature is valid for for the provided message
Implementation
@override
bool verify(Uint8List data, Uint8List signature) {
if (signature.length != 64) {
signature = parseSerializedSignature(base64Encode(signature)).signature;
}
return ed25519.verify(ed25519.PublicKey(toRawBytes()), data, signature);
}