ringct: prevent use of full ringct signatures for more than one input

This commit is contained in:
moneromooo-monero
2019-04-11 18:41:41 +00:00
parent 9c77dbf376
commit 93bb2f48f7
4 changed files with 60 additions and 142 deletions

View File

@@ -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;