sign static method Null safety

Future<Uint8List> sign(
  1. Uint8List privateKey,
  2. Uint8List data
)

sign signs the given message with priv

Implementation

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