2015-05-27 12:08:46 +00:00
|
|
|
// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers
|
2015-04-06 16:13:07 +00:00
|
|
|
//
|
|
|
|
// This file is part of Bytecoin.
|
|
|
|
//
|
|
|
|
// Bytecoin is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Bytecoin is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with Bytecoin. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cryptonote_basic.h"
|
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
namespace CryptoNote {
|
2015-04-06 16:13:07 +00:00
|
|
|
class ISerializer;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace crypto {
|
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
void serialize(public_key& pubKey, const std::string& name, CryptoNote::ISerializer& enumerator);
|
|
|
|
void serialize(secret_key& secKey, const std::string& name, CryptoNote::ISerializer& enumerator);
|
|
|
|
void serialize(hash& h, const std::string& name, CryptoNote::ISerializer& enumerator);
|
|
|
|
void serialize(chacha8_iv& chacha, const std::string& name, CryptoNote::ISerializer& enumerator);
|
|
|
|
void serialize(key_image& keyImage, const std::string& name, CryptoNote::ISerializer& enumerator);
|
2015-04-06 16:13:07 +00:00
|
|
|
|
|
|
|
} //namespace crypto
|
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
namespace CryptoNote {
|
2015-04-06 16:13:07 +00:00
|
|
|
void serialize(ParentBlockSerializer& pbs, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionPrefix& txP, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(Transaction& tx, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionInput& in, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionOutput& in, const std::string& name, ISerializer& serializer);
|
|
|
|
|
|
|
|
void serialize(TransactionInputGenerate& gen, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionInputToScript& script, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionInputToScriptHash& scripthash, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionInputToKey& key, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionInputMultisignature& multisignature, const std::string& name, ISerializer& serializer);
|
|
|
|
|
|
|
|
void serialize(TransactionOutput& output, const std::string& name, ISerializer& serializer);
|
|
|
|
|
|
|
|
void serialize(TransactionOutputTarget& output, const std::string& name, ISerializer& serializer);
|
|
|
|
|
|
|
|
void serialize(TransactionOutputToScript& script, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionOutputToScriptHash& scripthash, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionOutputToKey& key, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(TransactionOutputMultisignature& multisignature, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(BlockHeader& header, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(Block& block, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(AccountPublicAddress& address, const std::string& name, ISerializer& serializer);
|
|
|
|
void serialize(tx_extra_merge_mining_tag& tag, const std::string& name, ISerializer& serializer);
|
|
|
|
|
2015-05-27 12:08:46 +00:00
|
|
|
} //namespace CryptoNote
|