dev
dart 17 lines 408 Bytes
Raw
1 import 'package:cw_core/wallet_type.dart';
2
3 const bitcoinMnemonicLength = 12;
4 const moneroMnemonicLength = 25;
5
6 int mnemonicLength(WalletType type) {
7 // TODO: need to have only one place for get(set) mnemonic string length;
8
9 switch (type) {
10 case WalletType.monero:
11 return moneroMnemonicLength;
12 case WalletType.bitcoin:
13 return bitcoinMnemonicLength;
14 default:
15 return 0;
16 }
17 }