mirror of
https://github.com/vtnerd/monero-lws.git
synced 2024-11-16 17:27:39 +00:00
Fix CLSAG amount decoding
This commit is contained in:
parent
38e863e07e
commit
f077953e02
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ namespace lws
|
||||||
rct::key mask = rct::identity();
|
rct::key mask = rct::identity();
|
||||||
if (!amount && !(ext & db::coinbase_output) && 1 < tx.version)
|
if (!amount && !(ext & db::coinbase_output) && 1 < tx.version)
|
||||||
{
|
{
|
||||||
const bool bulletproof2 = (tx.rct_signatures.type == rct::RCTTypeBulletproof2);
|
const bool bulletproof2 = (rct::RCTTypeBulletproof2 <= tx.rct_signatures.type);
|
||||||
const auto decrypted = lws::decode_amount(
|
const auto decrypted = lws::decode_amount(
|
||||||
tx.rct_signatures.outPk.at(index).mask, tx.rct_signatures.ecdhInfo.at(index), derived, index, bulletproof2
|
tx.rct_signatures.outPk.at(index).mask, tx.rct_signatures.ecdhInfo.at(index), derived, index, bulletproof2
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue