mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +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]);
|
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]);
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue