cake_wallet/lib/core/mnemonic_length.dart

17 lines
419 B
Dart
Raw Normal View History

2020-09-21 11:50:26 +00:00
import 'package:cake_wallet/entities/wallet_type.dart';
2020-06-20 07:10:00 +00:00
const bitcoinMnemonicLength = 12;
const moneroMnemonicLength = 25;
int mnemonicLength(WalletType type) {
// TODO: need to have only one place for get(set) mnemonic string lenth;
switch (type) {
case WalletType.monero:
return moneroMnemonicLength;
case WalletType.bitcoin:
return bitcoinMnemonicLength;
default:
return 0;
}
}