cake_wallet/cw_bitcoin/lib/bitcoin_wallet_creation_credentials.dart

35 lines
1.1 KiB
Dart
Raw Normal View History

import 'package:cw_core/wallet_credentials.dart';
import 'package:cw_core/wallet_info.dart';
class BitcoinNewWalletCredentials extends WalletCredentials {
2022-10-12 17:09:57 +00:00
BitcoinNewWalletCredentials({required String name, WalletInfo? walletInfo})
: 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,
DerivationType? derivationType,
String? derivationPath,
WalletInfo? walletInfo,
}) : super(
name: name,
password: password,
walletInfo: walletInfo,
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;
}