signatureVerify method

Future<Map> signatureVerify(
  1. String message,
  2. String signature
)

get signer of a signature. so we can verify the signer.

Implementation

Future<Map> signatureVerify(String message, String signature) async {
  final res =
      await service.verifySignature(message: message, signature: signature);
  if (res['error'] != null) {
    throw Exception(res['error']);
  }
  return res;
}