sign function

Future<String> sign({
  1. required String message,
  2. required String privateKey,
})

Implementation

Future<String> sign({
  required String message,
  required String privateKey,
}) async {
  final signatureWithVersion = await OpenPGP.sign(message, privateKey, "");
  return removeVersionFromPublicKey(signatureWithVersion);
}