default to 12 word seeds for new wallets

This commit is contained in:
julian 2023-05-19 14:05:58 -06:00
parent 78d2627064
commit b7619c3108
10 changed files with 10 additions and 10 deletions

View file

@ -1468,7 +1468,7 @@ class BitcoinWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: ""); await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
// Generate and add addresses to relevant arrays // Generate and add addresses to relevant arrays

View file

@ -1371,7 +1371,7 @@ class BitcoinCashWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: ""); await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
// Generate and add addresses to relevant arrays // Generate and add addresses to relevant arrays

View file

@ -1318,7 +1318,7 @@ class DogecoinWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',
value: "", value: "",

View file

@ -538,7 +538,7 @@ class ECashWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: ""); await _secureStore.write(key: '${_walletId}_mnemonicPassphrase', value: "");
const int startingIndex = 0; const int startingIndex = 0;

View file

@ -350,7 +350,7 @@ class EthereumWallet extends CoinServiceAPI with WalletCache, WalletDB {
"Attempted to overwrite mnemonic on generate new wallet!"); "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}_mnemonic', value: mnemonic);
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',

View file

@ -2163,7 +2163,7 @@ class FiroWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',
value: "", value: "",

View file

@ -1498,7 +1498,7 @@ class LitecoinWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',
value: "", value: "",

View file

@ -1479,7 +1479,7 @@ class NamecoinWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',
value: "", value: "",

View file

@ -1394,7 +1394,7 @@ class ParticlWallet extends CoinServiceAPI
} }
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonic', key: '${_walletId}_mnemonic',
value: bip39.generateMnemonic(strength: 256)); value: bip39.generateMnemonic(strength: 128));
await _secureStore.write( await _secureStore.write(
key: '${_walletId}_mnemonicPassphrase', key: '${_walletId}_mnemonicPassphrase',
value: "", value: "",

View file

@ -183,7 +183,7 @@ abstract class Constants {
} }
} }
static const int seedPhraseWordCountBip39 = 24; static const int seedPhraseWordCountBip39 = 12;
static const int seedPhraseWordCountMonero = 25; static const int seedPhraseWordCountMonero = 25;
static const Map<int, String> monthMapShort = { static const Map<int, String> monthMapShort = {