verifySignature function

Future<void> verifySignature({
  1. required String messageContent,
  2. required String signatureArmored,
  3. required String publicKeyArmored,
})

Implementation

Future<void> verifySignature(
    {required String messageContent,
    required String signatureArmored,
    required String publicKeyArmored}) async {
  try {
    await OpenPGP.verify(
      signatureArmored,
      messageContent,
      publicKeyArmored,
    );
  } catch (e) {
    log('verifySignature Error ${e.toString()}');
  }
}