danicoin/tests/CoreTests/AccountBoostSerialization.h
2016-01-18 15:33:29 +00:00

31 lines
817 B
C++

// 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.
#pragma once
#include "CryptoNoteCore/Account.h"
#include "CryptoNoteBoostSerialization.h"
//namespace CryptoNote {
namespace boost
{
namespace serialization
{
template <class Archive>
inline void serialize(Archive &a, CryptoNote::AccountKeys &x, const boost::serialization::version_type ver)
{
a & x.address;
a & x.spendSecretKey;
a & x.viewSecretKey;
}
template <class Archive>
inline void serialize(Archive &a, CryptoNote::AccountPublicAddress &x, const boost::serialization::version_type ver)
{
a & x.spendPublicKey;
a & x.viewPublicKey;
}
}
}