verify static method Null safety

Future<bool> verify(
  1. Uint8List publicKey,
  2. Uint8List data,
  3. Uint8List signature
)

verify reports whether sig is a valid signature of message by publicKey.

Implementation

static Future<bool> verify(
    Uint8List publicKey, Uint8List data, Uint8List signature) async {
  try {
    return await _methodChannel.invokeMethod('verify', {
      'publicKey': publicKey,
      'data': data,
      'signature': signature,
    });
  } catch (e) {
    throw e;
  }
}