You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
406 B
17 lines
406 B
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 lenth;
|
|
|
|
switch (type) {
|
|
case WalletType.monero:
|
|
return moneroMnemonicLength;
|
|
case WalletType.bitcoin:
|
|
return bitcoinMnemonicLength;
|
|
default:
|
|
return 0;
|
|
}
|
|
} |