aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctOps.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-06 10:05:14 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-06 10:14:36 +0100
commit01cc9787225fb3ac810f25228eb0547516caedc8 (patch)
tree042e53372e04aefa5469033a5118f12311f57d43 /src/ringct/rctOps.cpp
parentMerge pull request #3866 (diff)
downloadmonero-01cc9787225fb3ac810f25228eb0547516caedc8.tar.xz
ringct: remove an unnecessary scalarmultBase in zeroCommit
Diffstat (limited to '')
-rw-r--r--src/ringct/rctOps.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ringct/rctOps.cpp b/src/ringct/rctOps.cpp
index cc46d0aa7..68cc43128 100644
--- a/src/ringct/rctOps.cpp
+++ b/src/ringct/rctOps.cpp
@@ -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) {