mirror of
https://codeberg.org/nahuhh/wownero
synced 2026-10-21 06:18:46 +02:00
store outPk/8 in the tx for speed
It avoids dividing by 8 when deserializing a tx, which is a slow operation, and multiplies by 8 when verifying and extracing the amount, which is much faster as well as less frequent
This commit is contained in:
committed by
wowario
parent
1520d6a271
commit
04dbdfcd98
@@ -204,7 +204,7 @@ namespace cryptonote
|
||||
CHECK_AND_ASSERT_MES(n_amounts == rv.outPk.size(), false, "Internal error filling out V");
|
||||
rv.p.bulletproofs_plus[0].V.resize(n_amounts);
|
||||
for (size_t i = 0; i < n_amounts; ++i)
|
||||
rv.p.bulletproofs_plus[0].V[i] = rct::scalarmultKey(rv.outPk[i].mask, rct::INV_EIGHT);
|
||||
rv.p.bulletproofs_plus[0].V[i] = rv.outPk[i].mask;
|
||||
}
|
||||
const bool bulletproof = rct::is_rct_bulletproof(rv.type);
|
||||
if (rct::is_rct_new_bulletproof(rv.type))
|
||||
|
||||
Reference in New Issue
Block a user