mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
add 16 word polyseeds as an option for monero
This commit is contained in:
parent
19de471b85
commit
09cbcc7b66
2 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ abstract class Constants {
|
|||
values.addAll([24, 12]);
|
||||
|
||||
case Coin.monero:
|
||||
values.addAll([25]);
|
||||
values.addAll([16, 25]);
|
||||
break;
|
||||
case Coin.wownero:
|
||||
values.addAll([14, 25]);
|
||||
|
|
|
@ -392,7 +392,7 @@ class MoneroWallet extends CryptonoteWallet with CwBasedInterface {
|
|||
final mnemonic = await getMnemonic();
|
||||
final seedLength = mnemonic.trim().split(" ").length;
|
||||
|
||||
if (seedLength != 25) {
|
||||
if (seedLength != 25 && seedLength != 16) {
|
||||
throw Exception("Invalid monero mnemonic length found: $seedLength");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue