danicoin/tests/CoreTests/AccountBoostSerialization.h

32 lines
817 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
2014-03-03 22:07:58 +00:00
#pragma once
2015-07-30 15:22:07 +00:00
#include "CryptoNoteCore/Account.h"
#include "CryptoNoteBoostSerialization.h"
2014-03-03 22:07:58 +00:00
2015-05-27 12:08:46 +00:00
//namespace CryptoNote {
2014-03-03 22:07:58 +00:00
namespace boost
{
namespace serialization
{
template <class Archive>
2015-07-30 15:22:07 +00:00
inline void serialize(Archive &a, CryptoNote::AccountKeys &x, const boost::serialization::version_type ver)
2014-03-03 22:07:58 +00:00
{
2015-07-30 15:22:07 +00:00
a & x.address;
a & x.spendSecretKey;
a & x.viewSecretKey;
2014-03-03 22:07:58 +00:00
}
template <class Archive>
2015-05-27 12:08:46 +00:00
inline void serialize(Archive &a, CryptoNote::AccountPublicAddress &x, const boost::serialization::version_type ver)
2014-03-03 22:07:58 +00:00
{
2015-07-30 15:22:07 +00:00
a & x.spendPublicKey;
a & x.viewPublicKey;
2014-03-03 22:07:58 +00:00
}
}
}