aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/serialization.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-08 23:43:40 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-08 23:43:41 +0200
commit22e16e88e3d2d4475761f9c2c0c59a7b20247f9f (patch)
treeffa7dae44cca09099708d6386cb0b0b4c802f10a /tests/unit_tests/serialization.cpp
parentMerge pull request #1405 (diff)
parentblockchain: bring the v4 fork height one block forward (diff)
downloadmonero-22e16e88e3d2d4475761f9c2c0c59a7b20247f9f.tar.xz
Merge pull request #1413
648ea6be blockchain: bring the v4 fork height one block forward (luigi1111) 46a0dcc1 ringct: luigi1111's changes to fix and speedup Borromean sigs (luigi1111) 76958fc7 ringct: switch to Borromean signatures (Shen Noether)
Diffstat (limited to 'tests/unit_tests/serialization.cpp')
-rw-r--r--tests/unit_tests/serialization.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp
index b592f456b..f8afb2e94 100644
--- a/tests/unit_tests/serialization.cpp
+++ b/tests/unit_tests/serialization.cpp
@@ -457,7 +457,7 @@ TEST(Serialization, serializes_ringct_types)
rct::ctkeyV ctkeyv0, ctkeyv1;
rct::ctkeyM ctkeym0, ctkeym1;
rct::ecdhTuple ecdh0, ecdh1;
- rct::asnlSig asnl0, asnl1;
+ rct::boroSig boro0, boro1;
rct::mgSig mg0, mg1;
rct::rangeSig rg0, rg1;
rct::rctSig s0, s1;
@@ -541,13 +541,13 @@ TEST(Serialization, serializes_ringct_types)
for (size_t n = 0; n < 64; ++n)
{
- asnl0.L1[n] = rct::skGen();
- asnl0.s2[n] = rct::skGen();
+ boro0.s0[n] = rct::skGen();
+ boro0.s1[n] = rct::skGen();
}
- asnl0.s = rct::skGen();
- ASSERT_TRUE(serialization::dump_binary(asnl0, blob));
- ASSERT_TRUE(serialization::parse_binary(blob, asnl1));
- ASSERT_TRUE(!memcmp(&asnl0, &asnl1, sizeof(asnl0)));
+ boro0.ee = rct::skGen();
+ ASSERT_TRUE(serialization::dump_binary(boro0, blob));
+ ASSERT_TRUE(serialization::parse_binary(blob, boro1));
+ ASSERT_TRUE(!memcmp(&boro0, &boro1, sizeof(boro0)));
// create a full rct signature to use its innards
rct::ctkeyV sc, pc;