diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 18:41:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 19:44:06 +0000 |
commit | 93bb2f48f7af95ec9048bcac48cbb372d84d7a11 (patch) | |
tree | c139a038a2d1d75f24c2428c1d664195934ba233 /src/ringct/rctSigs.cpp | |
parent | Merge pull request #5386 (diff) | |
download | monero-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.cpp | 1 |
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; |