cake_wallet/lib/core/mnemonic_length.dart

17 lines
407 B
Dart
Raw Permalink Normal View History

2021-12-24 12:37:24 +00:00
import 'package:cw_core/wallet_type.dart';
2020-06-20 07:10:00 +00:00
const bitcoinMnemonicLength = 12;
const moneroMnemonicLength = 25;
int mnemonicLength(WalletType type) {
2022-03-09 11:43:18 +00:00
// TODO: need to have only one place for get(set) mnemonic string length;
2020-06-20 07:10:00 +00:00
switch (type) {
case WalletType.monero:
return moneroMnemonicLength;
case WalletType.bitcoin:
return bitcoinMnemonicLength;
default:
return 0;
}
}