mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 01:17:53 +00:00
17 lines
428 B
Dart
17 lines
428 B
Dart
|
import 'package:cake_wallet/src/domain/common/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 lenth;
|
||
|
|
||
|
switch (type) {
|
||
|
case WalletType.monero:
|
||
|
return moneroMnemonicLength;
|
||
|
case WalletType.bitcoin:
|
||
|
return bitcoinMnemonicLength;
|
||
|
default:
|
||
|
return 0;
|
||
|
}
|
||
|
}
|