cake_wallet/lib/core/mnemonic_length.dart
Dimitris Apostolou 48653f53a4
Fix typos (#276)
2022-03-09 14:43:18 +03:00

17 lines
No EOL
407 B
Dart

import 'package:cw_core/wallet_type.dart';
const bitcoinMnemonicLength = 12;
const moneroMnemonicLength = 25;
int mnemonicLength(WalletType type) {
// TODO: need to have only one place for get(set) mnemonic string length;
switch (type) {
case WalletType.monero:
return moneroMnemonicLength;
case WalletType.bitcoin:
return bitcoinMnemonicLength;
default:
return 0;
}
}