35 #define TX_EXTRA_PADDING_MAX_COUNT 255 36 #define TX_EXTRA_NONCE_MAX_COUNT 255 38 #define TX_EXTRA_TAG_PADDING 0x00 39 #define TX_EXTRA_TAG_PUBKEY 0x01 40 #define TX_EXTRA_NONCE 0x02 41 #define TX_EXTRA_MERGE_MINING_TAG 0x03 42 #define TX_EXTRA_MYSTERIOUS_MINERGATE_TAG 0xDE 44 #define TX_EXTRA_NONCE_PAYMENT_ID 0x00 45 #define TX_EXTRA_NONCE_ENCRYPTED_PAYMENT_ID 0x01 54 template <
template <
bool>
class Archive>
60 std::ios_base::iostate
state = ar.stream().rdstate();
61 bool eof = EOF == ar.stream().peek();
62 ar.stream().clear(
state);
79 template <
template <
bool>
class Archive>
86 for (
size_t i = 1; i <
size; ++i)
127 FIELD_N("merkle_root", mm_tag.merkle_root)
135 template <template <
bool> class Archive>
142 std::istringstream iss(field);
149 template <
template <
bool>
class Archive>
152 std::ostringstream oss;
158 std::string field = oss.str();
Definition: unordered_containers_boost_serialization.h:38
#define VARINT_FIELD_N(t, f)
tags (as t) and serializes the varint f
Definition: serialization.h:267
void serialize(Archive &a, std::unordered_map< h_key, hval > &x, const boost::serialization::version_type ver)
Definition: unordered_containers_boost_serialization.h:127
crypto namespace.
Definition: crypto.cpp:47
Definition: binary_archive.h:182
#define END_SERIALIZE()
self-explanatory
Definition: serialization.h:207
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:225
static const unsigned char zero[32]
Definition: fe_isnonzero.c:12
Definition: binary_archive.h:99
#define false
Definition: stdbool.h:38
boost::variant< tx_extra_padding, tx_extra_pub_key, tx_extra_nonce, tx_extra_merge_mining_tag, tx_extra_mysterious_minergate > tx_extra_field
Definition: tx_extra.h:176
POD_CLASS public_key
Definition: crypto.h:65
Definition: blake256.h:37
#define BEGIN_SERIALIZE()
Begins the environment of the DSL for describing how to serialize an of an archive type...
Definition: serialization.h:179
bool do_serialize(Archive< false > &ar, std::vector< crypto::signature > &v)
Definition: crypto.h:44
POD_CLASS hash
Definition: hash.h:46
#define FIELD(f)
tags the field with the variable name and then serializes it
Definition: serialization.h:236
#define FIELD_N(t, f)
serializes a field f tagged t
Definition: serialization.h:225
Definition: binary_archive.h:95