cake_wallet/cw_core/lib/wallet_credentials.dart
Matthew Fosse 5ecc1a1db6
Bip39 passphrase support (#1412)
* save

* passphrase working

* fix for when loading wallets + translation update

* minor fix

* Fix Nano

* minor fix [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-04-29 19:57:46 +03:00

25 lines
561 B
Dart

import 'package:cw_core/wallet_info.dart';
abstract class WalletCredentials {
WalletCredentials({
required this.name,
this.height,
this.seedPhraseLength,
this.walletInfo,
this.password,
this.passphrase,
this.derivationInfo,
}) {
if (this.walletInfo != null && derivationInfo != null) {
this.walletInfo!.derivationInfo = derivationInfo;
}
}
final String name;
final int? height;
int? seedPhraseLength;
String? password;
String? passphrase;
WalletInfo? walletInfo;
DerivationInfo? derivationInfo;
}