verifySignature function

Future<bool> verifySignature({
  1. required PublicKey publicKey,
  2. required String data,
  3. required String signature,
  4. required int? signatureId,
})

Check signature by publicKey and data hash

Implementation

Future<bool> verifySignature({
  required PublicKey publicKey,
  required String data,
  required String signature,
  required int? signatureId,
}) {
  return createLib().verifySignature(
    publicKey: publicKey.publicKey,
    data: data,
    signature: signature,
    signatureId: signatureId,
  );
}