mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
TMP 4
This commit is contained in:
parent
719842964b
commit
81cee186db
94 changed files with 3786 additions and 3001 deletions
17
lib/core/mnemonic_length.dart
Normal file
17
lib/core/mnemonic_length.dart
Normal file
|
@ -0,0 +1,17 @@
|
|||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue