verify method

  1. @override
bool verify(
  1. Uint8List data,
  2. Uint8List signature
)
override

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);
}