aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/ringct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/ringct.cpp')
-rw-r--r--tests/unit_tests/ringct.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp
index 5ab77d4aa..f6409d1ae 100644
--- a/tests/unit_tests/ringct.cpp
+++ b/tests/unit_tests/ringct.cpp
@@ -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