setPrivateKey method

Future<void> setPrivateKey(
  1. Uint8List key
)

Implementation

Future<void> setPrivateKey(Uint8List key) async {
  if (!await ssss.checkKey(key, keyData)) {
    throw Exception('Invalid key');
  }
  privateKey = key;
}