aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctSigs.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-12-09 19:05:55 +0200
committerRiccardo Spagni <ric@spagni.net>2017-12-09 19:05:56 +0200
commit2b5abb826978b1ca0fe51d0f879e0b5887c24304 (patch)
tree5f61df04c44ac7dae455fa158a7afc77cffbe2e6 /src/ringct/rctSigs.cpp
parentMerge pull request #2901 (diff)
parentringct: do not include bulletproof commitments in signed message (diff)
downloadmonero-2b5abb826978b1ca0fe51d0f879e0b5887c24304.tar.xz
Merge pull request #2903
8d4469a0 ringct: do not include bulletproof commitments in signed message (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r--src/ringct/rctSigs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index cfb4aaf97..65b8d7166 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -347,11 +347,11 @@ namespace rct {
keyV kv;
if (rv.type == RCTTypeSimpleBulletproof || rv.type == RCTTypeFullBulletproof)
{
- kv.reserve((6*2+10) * rv.p.bulletproofs.size());
+ kv.reserve((6*2+9) * rv.p.bulletproofs.size());
for (const auto &p: rv.p.bulletproofs)
{
- for (size_t n = 0; n < p.V.size(); ++n)
- kv.push_back(p.V[n]);
+ // V are not hashed as they're expanded from outPk.mask
+ // (and thus hashed as part of rctSigBase above)
kv.push_back(p.A);
kv.push_back(p.S);
kv.push_back(p.T1);