ringct: remove an unnecessary scalarmultBase in zeroCommit

This commit is contained in:
moneromooo-monero
2018-06-06 10:05:14 +01:00
parent 8a7b3ff138
commit 01cc978722
3 changed files with 12 additions and 4 deletions

View File

@@ -134,12 +134,9 @@ namespace rct {
}
key zeroCommit(xmr_amount amount) {
key mask = identity();
mask = scalarmultBase(mask);
key am = d2h(amount);
key bH = scalarmultH(am);
addKeys(mask, mask, bH);
return mask;
return addKeys(G, bH);
}
key commit(xmr_amount amount, const key &mask) {