aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_boost_serialization.h
diff options
context:
space:
mode:
authorShen Noether <Shen.Noether@gmx.com>2016-08-08 12:54:00 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:30:12 +0100
commitc5be4b0beaaa7a703d4e2b84aa9f3c727bf992df (patch)
tree2f67cca38b750f77681ce1687304c00ecca548b2 /src/cryptonote_core/cryptonote_boost_serialization.h
parentwallet: do not store signatures in the wallet cache (diff)
downloadmonero-c5be4b0beaaa7a703d4e2b84aa9f3c727bf992df.tar.xz
rct: avoid the need for the last II element
This element is used in the generation of the MLSAG, but isn't needed in verification. Also misc changes in the cryptonote code to match, by mooo.
Diffstat (limited to 'src/cryptonote_core/cryptonote_boost_serialization.h')
-rw-r--r--src/cryptonote_core/cryptonote_boost_serialization.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/cryptonote_core/cryptonote_boost_serialization.h b/src/cryptonote_core/cryptonote_boost_serialization.h
index 41f864803..8a82aa7a7 100644
--- a/src/cryptonote_core/cryptonote_boost_serialization.h
+++ b/src/cryptonote_core/cryptonote_boost_serialization.h
@@ -209,19 +209,12 @@ namespace boost
a & x.s;
}
- inline void serialize(boost::archive::binary_iarchive &a, rct::mgSig &x, const boost::serialization::version_type ver)
- {
- a & x.ss;
- a & x.cc;
- x.II.resize(1);
- a & x.II[0];
- }
-
- inline void serialize(boost::archive::binary_oarchive &a, rct::mgSig &x, const boost::serialization::version_type ver)
+ template <class Archive>
+ inline void serialize(Archive &a, rct::mgSig &x, const boost::serialization::version_type ver)
{
a & x.ss;
a & x.cc;
- a & x.II.back();
+ // a & x.II; // not serialized, we can recover it from the tx vin
}
template <class Archive>