validateAndStripOtherKeys method

Future<void> validateAndStripOtherKeys(
  1. String type,
  2. String secret, {
  3. bool isDefaultKey = true,
})

Implementation

Future<void> validateAndStripOtherKeys(
  String type,
  String secret, {
  bool isDefaultKey = true,
}) async {
  final privateKey = this.privateKey;
  if (privateKey == null) {
    throw Exception('SSSS not unlocked');
  }
  await ssss.validateAndStripOtherKeys(
    type,
    secret,
    keyId,
    privateKey,
    isDefaultKey: isDefaultKey,
  );
}