validateDecoding method
Implementation
@override
EncodingValidation validateDecoding(
String encoded, {
String? receiverPublicKey,
}) {
final EncodingParams deserialized = deserialize(encoded);
final String? senderPublicKey = deserialized.senderPublicKey != null
? hex.encode(deserialized.senderPublicKey!)
: null;
return validateEncoding(
type: deserialized.type,
senderPublicKey: senderPublicKey,
receiverPublicKey: receiverPublicKey,
);
}