add 16 word polyseeds as an option for monero

This commit is contained in:
sneurlax 2024-04-28 23:11:10 -05:00
parent 19de471b85
commit 09cbcc7b66
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ abstract class Constants {
values.addAll([24, 12]); values.addAll([24, 12]);
case Coin.monero: case Coin.monero:
values.addAll([25]); values.addAll([16, 25]);
break; break;
case Coin.wownero: case Coin.wownero:
values.addAll([14, 25]); values.addAll([14, 25]);

View file

@ -392,7 +392,7 @@ class MoneroWallet extends CryptonoteWallet with CwBasedInterface {
final mnemonic = await getMnemonic(); final mnemonic = await getMnemonic();
final seedLength = mnemonic.trim().split(" ").length; final seedLength = mnemonic.trim().split(" ").length;
if (seedLength != 25) { if (seedLength != 25 && seedLength != 16) {
throw Exception("Invalid monero mnemonic length found: $seedLength"); throw Exception("Invalid monero mnemonic length found: $seedLength");
} }