6#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_PUBLICATION_DATA_HPP_
7#define ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_PUBLICATION_DATA_HPP_
13#include <veriblock/pop/serde.hpp>
14#include <veriblock/pop/strutil.hpp>
16#include "context_info_container.hpp"
17#include "veriblock/pop/json.hpp"
40 std::string toPrettyString()
const;
49 size_t estimateSize()
const;
53template <
typename JsonValue>
55 JsonValue obj = json::makeEmptyObject<JsonValue>();
56 json::putIntKV(obj,
"identifier", p.
identifier);
Class that is used for storing validation state.
Binary writer that is useful for binary serialization.
bool DeserializeFromVbkEncoding(ReadStream &stream, AltBlockAddon &out, ValidationState &state)
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string HexStr(const T itbegin, const T itend)
Convert bytes to hex.
Publication data about ALT block inside VBK blockchain.
void toVbkEncoding(WriteStream &stream) const
Convert PublicationData to data stream using PublicationData byte format.
std::vector< uint8_t > payoutInfo
bitcoin script or POP payout address
int64_t identifier
altchain network POP ID
std::vector< uint8_t > contextInfo
serialized AuthenticatedContextInfoContainer
std::vector< uint8_t > header
altchain block header
Binary reading stream, that is useful during binary deserialization.