cake_wallet/cw_bitcoin/lib/bitcoin_wallet_creation_credentials.dart

43 lines
1.3 KiB
Dart
Raw Normal View History

import 'package:cw_core/wallet_credentials.dart';
import 'package:cw_core/wallet_info.dart';
class BitcoinNewWalletCredentials extends WalletCredentials {
BitcoinNewWalletCredentials(
2023-10-09 21:19:58 +00:00
{required String name,
WalletInfo? walletInfo,
DerivationType? derivationType,
String? derivationPath})
: super(
name: name,
walletInfo: walletInfo,
);
}
class BitcoinRestoreWalletFromSeedCredentials extends WalletCredentials {
2023-08-25 15:12:07 +00:00
BitcoinRestoreWalletFromSeedCredentials({
required String name,
required String password,
required this.mnemonic,
WalletInfo? walletInfo,
2023-10-09 21:19:58 +00:00
required DerivationType derivationType,
required String derivationPath,
2023-08-25 15:12:07 +00:00
}) : super(
name: name,
password: password,
walletInfo: walletInfo,
derivationInfo: DerivationInfo(
derivationType: derivationType,
derivationPath: derivationPath,
));
final String mnemonic;
}
class BitcoinRestoreWalletFromWIFCredentials extends WalletCredentials {
BitcoinRestoreWalletFromWIFCredentials(
2022-10-12 17:09:57 +00:00
{required String name, required String password, required this.wif, WalletInfo? walletInfo})
: super(name: name, password: password, walletInfo: walletInfo);
final String wif;
}