ringct: luigi1111's changes to fix and speedup Borromean sigs

This commit is contained in:
luigi1111 2016-11-17 23:27:00 +00:00 committed by moneromooo-monero
parent 76958fc75a
commit 46a0dcc1d2
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 19 additions and 24 deletions

View file

@ -57,19 +57,15 @@ TEST(ringct, Borromean)
xv[j] = skGen();
if ( (int)indi[j] == 0 ) {
P1v[j] = scalarmultBase(xv[j]);
P2v[j] = pkGen();
scalarmultBase(P1v[j], xv[j]);
} else {
P2v[j] = scalarmultBase(xv[j]);
P1v[j] = pkGen();
addKeys1(P1v[j], xv[j], H2[j]);
}
subKeys(P2v[j], P1v[j], H2[j]);
}
//#true one
boro bb = genBorromean(xv, P1v, P2v, indi);
boroSig bb = genBorromean(xv, P1v, P2v, indi);
ASSERT_TRUE(verifyBorromean(bb, P1v, P2v));
//#false one