Skip to content

Commit

Permalink
feat: add support to double XPRV
Browse files Browse the repository at this point in the history
We are moving the business logic related to the XPRV length to the witnet.dart
library (https://github.com/witnet/witnet.dart). So, in this PR, we only remove
the XPRV length validation while importing a wallet. The logic to handle a
double XPRV is implemented here: witnet/witnet.dart#31
  • Loading branch information
Tommytrg committed Aug 17, 2023
1 parent 4d2e8cd commit 32bbeee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/screens/create_wallet/bloc/api_create_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ class ApiCreateWallet {
try {
int xprvLength = xprvString.length;
String? xprvDecripted;
if (xprvLength == ENCRYPTED_XPRV_LENGTH &&
_xprvType == CreateWalletType.encryptedXprv) {
if (_xprvType == CreateWalletType.encryptedXprv) {
xprvDecripted = await apiCrypto.decryptXprv(
xprv: xprvString, password: password?.value ?? '');
} else if (xprvLength == XPRV_LENGTH &&
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies:
worker_manager: ^4.0.2
toml: ^0.13.1
decimal: 2.3.2
witnet: 0.2.7
witnet: 0.3.0
table_calendar: ^3.0.3
qr_flutter: ^4.0.0
window_manager: ^0.3.2
Expand Down

0 comments on commit 32bbeee

Please sign in to comment.