mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user