aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctSigs.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 18:41:41 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 19:44:06 +0000
commit93bb2f48f7af95ec9048bcac48cbb372d84d7a11 (patch)
treec139a038a2d1d75f24c2428c1d664195934ba233 /src/ringct/rctSigs.cpp
parentMerge pull request #5386 (diff)
downloadmonero-93bb2f48f7af95ec9048bcac48cbb372d84d7a11.tar.xz
ringct: prevent use of full ringct signatures for more than one input
Diffstat (limited to 'src/ringct/rctSigs.cpp')
-rw-r--r--src/ringct/rctSigs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index e877c13ce..ff2a81d43 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -695,6 +695,7 @@ namespace rct {
CHECK_AND_ASSERT_THROW_MES(mixRing[n].size() == inSk.size(), "Bad mixRing size");
}
CHECK_AND_ASSERT_THROW_MES((kLRki && msout) || (!kLRki && !msout), "Only one of kLRki/msout is present");
+ CHECK_AND_ASSERT_THROW_MES(inSk.size() < 2, "genRct is not suitable for 2+ rings");
rctSig rv;
rv.type = RCTTypeFull;