mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
rct: do not serialize senderPk - it is not used anymore
This commit is contained in:
parent
e5a9a4755b
commit
b337aea6cc
3 changed files with 5 additions and 3 deletions
|
@ -219,7 +219,7 @@ namespace boost
|
||||||
{
|
{
|
||||||
a & x.mask;
|
a & x.mask;
|
||||||
a & x.amount;
|
a & x.amount;
|
||||||
a & x.senderPk;
|
// a & x.senderPk; // not serialized, as we do not use it in monero currently
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void serializeOutPk(boost::archive::binary_iarchive &a, rct::ctkeyV &outPk_, const boost::serialization::version_type ver)
|
inline void serializeOutPk(boost::archive::binary_iarchive &a, rct::ctkeyV &outPk_, const boost::serialization::version_type ver)
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace rct {
|
||||||
BEGIN_SERIALIZE_OBJECT()
|
BEGIN_SERIALIZE_OBJECT()
|
||||||
FIELD(mask)
|
FIELD(mask)
|
||||||
FIELD(amount)
|
FIELD(amount)
|
||||||
FIELD(senderPk)
|
// FIELD(senderPk) // not serialized, as we do not use it in monero currently
|
||||||
END_SERIALIZE()
|
END_SERIALIZE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -532,7 +532,9 @@ TEST(Serialization, serializes_ringct_types)
|
||||||
ecdh0.senderPk = rct::skGen();
|
ecdh0.senderPk = rct::skGen();
|
||||||
ASSERT_TRUE(serialization::dump_binary(ecdh0, blob));
|
ASSERT_TRUE(serialization::dump_binary(ecdh0, blob));
|
||||||
ASSERT_TRUE(serialization::parse_binary(blob, ecdh1));
|
ASSERT_TRUE(serialization::parse_binary(blob, ecdh1));
|
||||||
ASSERT_TRUE(!memcmp(&ecdh0, &ecdh1, sizeof(ecdh0)));
|
ASSERT_TRUE(!memcmp(&ecdh0.mask, &ecdh1.mask, sizeof(ecdh0.mask)));
|
||||||
|
ASSERT_TRUE(!memcmp(&ecdh0.amount, &ecdh1.amount, sizeof(ecdh0.amount)));
|
||||||
|
// senderPk is not serialized
|
||||||
|
|
||||||
for (size_t n = 0; n < 64; ++n)
|
for (size_t n = 0; n < 64; ++n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue