verifySignature method
Verify the validity of a signature
Implementation
bool verifySignature(
Uint8List signature,
Uint8List message,
HashAlgorithm digestAlgorithm,
) {
// Get the hash for the message
final digest = getDigest(digestAlgorithm);
final hash = digest.process(message);
return verifySignatureOfHash(signature, hash, digestAlgorithm);
}