updateEncryptedSeed method

Future<void> updateEncryptedSeed(
  1. String? pubKey,
  2. dynamic passOld,
  3. dynamic passNew
)

Implementation

Future<void> updateEncryptedSeed(String? pubKey, passOld, passNew) async {
  final seed = await (getDecryptedSeed(pubKey, passOld)
      as FutureOr<Map<String, dynamic>>);
  encryptSeedAndSave(pubKey, seed['seed'], seed['type'], passNew);
}