verifySignature method

Future<bool?> verifySignature(
  1. String signature,
  2. String hash,
  3. String pubKey
)

Implementation

Future<bool?> verifySignature(
  String signature,
  String hash,
  String pubKey,
) async {
  final arguments = {
    "signature": hex.decode(signature),
    "hash": hex.decode(hash),
    "pubKey": hex.decode(pubKey),
  };
  return await methodChannel.invokeMethod<bool>('verifySignature', arguments);
}