mirror of
https://github.com/feather-wallet/feather.git
synced 2025-04-13 16:31:55 +00:00
getAddressSafe: check torsion
This commit is contained in:
parent
c34ad819a6
commit
45ea707c0c
1 changed files with 10 additions and 0 deletions
|
@ -261,6 +261,16 @@ QString Wallet::getAddressSafe(quint32 accountIndex, quint32 addressIndex, bool
|
|||
return {};
|
||||
}
|
||||
|
||||
if (!rct::isInMainSubgroup(rct::pk2rct(info.address.m_spend_public_key))) {
|
||||
reason = "Spend public key is not is main subgroup";
|
||||
return {};
|
||||
}
|
||||
|
||||
if (!rct::isInMainSubgroup(rct::pk2rct(info.address.m_view_public_key))) {
|
||||
reason = "View public key is not in main subgroup";
|
||||
return {};
|
||||
}
|
||||
|
||||
ok = true;
|
||||
return QString::fromStdString(address_str);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue