diff options
author | Sarang Noether <32460187+SarangNoether@users.noreply.github.com> | 2020-04-21 00:19:13 -0400 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-08-27 12:44:04 +0000 |
commit | f964a92c57d53e6ae38e664a178c9b7f56dcfd4a (patch) | |
tree | 8f194aeb8d614079313d78d06a6ed5d229c890d2 /tests/performance_tests/sig_clsag.h | |
parent | CLSAG verification performance test (diff) | |
download | monero-f964a92c57d53e6ae38e664a178c9b7f56dcfd4a.tar.xz |
Updated MLSAG and CLSAG tests for consistency
Diffstat (limited to 'tests/performance_tests/sig_clsag.h')
-rw-r--r-- | tests/performance_tests/sig_clsag.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/performance_tests/sig_clsag.h b/tests/performance_tests/sig_clsag.h index 255eac63b..c15668adb 100644 --- a/tests/performance_tests/sig_clsag.h +++ b/tests/performance_tests/sig_clsag.h @@ -51,8 +51,9 @@ public: if (!single_tx_test_base::init()) return false; - message = identity(); + message = skGen(); + // Random signing/commitment keys pubs.reserve(N); for (size_t i = 0; i < N; i++) { @@ -65,18 +66,22 @@ public: pubs.push_back(tmp); } + // Signing key key p; skpkGen(p,pubs[l].dest); + // Commitment key key t,u; t = skGen(); u = skGen(); addKeys2(pubs[l].mask,t,u,H); + // Offset key t2; t2 = skGen(); addKeys2(C_offset,t2,u,H); + // Final signing keys ctkey insk; insk.dest = p; insk.mask = t; |