mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
42 lines
1.3 KiB
Dart
42 lines
1.3 KiB
Dart
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
class BitcoinNewWalletCredentials extends WalletCredentials {
|
|
BitcoinNewWalletCredentials(
|
|
{required String name,
|
|
WalletInfo? walletInfo,
|
|
DerivationType? derivationType,
|
|
String? derivationPath})
|
|
: super(
|
|
name: name,
|
|
walletInfo: walletInfo,
|
|
);
|
|
}
|
|
|
|
class BitcoinRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
BitcoinRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required String password,
|
|
required this.mnemonic,
|
|
WalletInfo? walletInfo,
|
|
required DerivationType derivationType,
|
|
required String derivationPath,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
walletInfo: walletInfo,
|
|
derivationInfo: DerivationInfo(
|
|
derivationType: derivationType,
|
|
derivationPath: derivationPath,
|
|
));
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class BitcoinRestoreWalletFromWIFCredentials extends WalletCredentials {
|
|
BitcoinRestoreWalletFromWIFCredentials(
|
|
{required String name, required String password, required this.wif, WalletInfo? walletInfo})
|
|
: super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String wif;
|
|
}
|