diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-06 19:49:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-12 12:16:45 +0000 |
commit | 6ba3a116377ffdf03e0c3580ef5a0c7c6743f69f (patch) | |
tree | 1202fb01fad655c724be61964570e6259f30918a /tests/unit_tests/ringct.cpp | |
parent | ringct: save 3 bytes on bulletproof size (diff) | |
download | monero-6ba3a116377ffdf03e0c3580ef5a0c7c6743f69f.tar.xz |
ringct: encode 8 byte amount, saving 24 bytes per output
Found by knaccc
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/ringct.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp index c60042029..6aa530743 100644 --- a/tests/unit_tests/ringct.cpp +++ b/tests/unit_tests/ringct.cpp @@ -843,8 +843,8 @@ TEST(ringct, ecdh_roundtrip) t0.amount = d2h(amount); t1 = t0; - ecdhEncode(t1, k); - ecdhDecode(t1, k); + ecdhEncode(t1, k, true); + ecdhDecode(t1, k, true); ASSERT_TRUE(t0.mask == t1.mask); ASSERT_TRUE(equalKeys(t0.mask, t1.mask)); ASSERT_TRUE(t0.amount == t1.amount); |