mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Add passphrase support for Eth, Polygon, and Tron (#1719)
* Add passphrase support for Eth, Polygon, and Tron * move passphrase to advanced settings even for restore
This commit is contained in:
parent
fc14bf4e2b
commit
4b4d8a4840
29 changed files with 249 additions and 154 deletions
|
@ -42,6 +42,7 @@ abstract class NanoWalletBase
|
|||
required String password,
|
||||
NanoBalance? initialBalance,
|
||||
required EncryptionFileUtils encryptionFileUtils,
|
||||
this.passphrase,
|
||||
}) : syncStatus = NotConnectedSyncStatus(),
|
||||
_password = password,
|
||||
_mnemonic = mnemonic,
|
||||
|
@ -548,4 +549,7 @@ abstract class NanoWalletBase
|
|||
}
|
||||
return await NanoSignatures.verifyMessage(message, signature, address);
|
||||
}
|
||||
|
||||
@override
|
||||
final String? passphrase;
|
||||
}
|
||||
|
|
|
@ -9,13 +9,15 @@ class NanoNewWalletCredentials extends WalletCredentials {
|
|||
DerivationType? derivationType,
|
||||
this.mnemonic,
|
||||
String? parentAddress,
|
||||
String? passphrase,
|
||||
}) : super(
|
||||
name: name,
|
||||
password: password,
|
||||
walletInfo: walletInfo,
|
||||
parentAddress: parentAddress,
|
||||
passphrase: passphrase,
|
||||
);
|
||||
|
||||
|
||||
final String? mnemonic;
|
||||
}
|
||||
|
||||
|
@ -25,10 +27,12 @@ class NanoRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|||
required this.mnemonic,
|
||||
String? password,
|
||||
required DerivationType derivationType,
|
||||
String? passphrase,
|
||||
}) : super(
|
||||
name: name,
|
||||
password: password,
|
||||
derivationInfo: DerivationInfo(derivationType: derivationType),
|
||||
passphrase: passphrase,
|
||||
);
|
||||
|
||||
final String mnemonic;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue