mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
ringct: encode 8 byte amount, saving 24 bytes per output
Found by knaccc
This commit is contained in:
parent
cdc3ccec5f
commit
99d946e619
14 changed files with 93 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue