verifySerialized method
Verify serialized signature
Implementation
@override
bool verifySerialized(Uint8List message, String signature, Uint8List publicKey) {
final parsed = parseSerializedSignature(signature);
if (parsed.signatureScheme != SignatureScheme.Secp256r1) {
throw ArgumentError('Invalid signature scheme');
}
if (base64Encode(publicKey) != parsed.pubKey!.toBase64()) {
throw ArgumentError('Signature does not match public key');
}
return verify(message, parsed.signature, publicKey);
}