mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 12:44:31 +00:00
default to 12 word seeds for new wallets
This commit is contained in:
parent
78d2627064
commit
b7619c3108
10 changed files with 10 additions and 10 deletions
|
@ -1468,7 +1468,7 @@ class BitcoinWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
|
||||
|
||||
// Generate and add addresses to relevant arrays
|
||||
|
|
|
@ -1371,7 +1371,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
|
||||
|
||||
// Generate and add addresses to relevant arrays
|
||||
|
|
|
@ -1318,7 +1318,7 @@ class DogecoinWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
value: "",
|
||||
|
|
|
@ -538,7 +538,7 @@ class ECashWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
|
||||
|
||||
const int startingIndex = 0;
|
||||
|
|
|
@ -350,7 +350,7 @@ class EthereumWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
|||
"Attempted to overwrite mnemonic on generate new wallet!");
|
||||
}
|
||||
|
||||
final String mnemonic = bip39.generateMnemonic(strength: 256);
|
||||
final String mnemonic = bip39.generateMnemonic(strength: 128);
|
||||
await _secureStore.write(key: '${_walletId}_mnemonic', value: mnemonic);
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
|
|
|
@ -2163,7 +2163,7 @@ class FiroWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
value: "",
|
||||
|
|
|
@ -1498,7 +1498,7 @@ class LitecoinWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
value: "",
|
||||
|
|
|
@ -1479,7 +1479,7 @@ class NamecoinWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
value: "",
|
||||
|
|
|
@ -1394,7 +1394,7 @@ class ParticlWallet extends CoinServiceAPI
|
|||
}
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonic',
|
||||
value: bip39.generateMnemonic(strength: 256));
|
||||
value: bip39.generateMnemonic(strength: 128));
|
||||
await _secureStore.write(
|
||||
key: '${_walletId}_mnemonicPassphrase',
|
||||
value: "",
|
||||
|
|
|
@ -183,7 +183,7 @@ abstract class Constants {
|
|||
}
|
||||
}
|
||||
|
||||
static const int seedPhraseWordCountBip39 = 24;
|
||||
static const int seedPhraseWordCountBip39 = 12;
|
||||
static const int seedPhraseWordCountMonero = 25;
|
||||
|
||||
static const Map<int, String> monthMapShort = {
|
||||
|
|
Loading…
Reference in a new issue