verifyPublicMessage method
Implementation
Future<Message> verifyPublicMessage({
required PublicKey publicKey,
}) async {
if (header.purpose != Purpose.public) {
throw UnsupportedError('Unable to verify non-public message');
}
return Message(
header: header,
package: await _verifyPackage(publicKey: publicKey),
payload: payload,
);
}