33 #include <boost/serialization/vector.hpp> 34 #include <boost/serialization/utility.hpp> 40 bool construct_miner_tx(
size_t height,
size_t median_weight, uint64_t already_generated_coins,
size_t current_block_weight, uint64_t fee,
const account_public_address &miner_address, transaction& tx,
const blobdata& extra_nonce =
blobdata(),
size_t max_outs = 999, uint8_t hard_fork_version = 1);
93 bool construct_tx_with_tx_key(const
account_keys& sender_account_keys, const
std::unordered_map<
crypto::
public_key,
subaddress_index>& subaddresses,
std::vector<
tx_source_entry>& sources,
std::vector<
tx_destination_entry>& destinations, const
boost::optional<
cryptonote::
account_public_address>& change_addr,
std::vector<uint8_t> extra,
transaction& tx, uint64_t unlock_time, const
crypto::
secret_key &tx_key, const
std::vector<
crypto::
secret_key> &additional_tx_keys,
bool rct =
false,
rct::
RangeProofType range_proof_type =
rct::
RangeProofBorromean,
rct::multisig_out *msout = NULL,
bool shuffle_outs =
true);
94 bool construct_tx_and_get_tx_key(const
account_keys& sender_account_keys, const
std::unordered_map<
crypto::
public_key,
subaddress_index>& subaddresses,
std::vector<
tx_source_entry>& sources,
std::vector<
tx_destination_entry>& destinations, const
boost::optional<
cryptonote::
account_public_address>& change_addr,
std::vector<uint8_t> extra,
transaction& tx, uint64_t unlock_time,
crypto::
secret_key &tx_key,
std::vector<
crypto::
secret_key> &additional_tx_keys,
bool rct =
false,
rct::
RangeProofType range_proof_type =
rct::
RangeProofBorromean,
rct::multisig_out *msout = NULL);
98 ,
std::
string const & genesis_tx
111 template <
class Archive>
127 template <
class Archive>
Definition: binary_utils.h:36
bool construct_tx_with_tx_key(const account_keys &sender_account_keys, const std::unordered_map< crypto::public_key, subaddress_index > &subaddresses, std::vector< tx_source_entry > &sources, std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr, std::vector< uint8_t > extra, transaction &tx, uint64_t unlock_time, const crypto::secret_key &tx_key, const std::vector< crypto::secret_key > &additional_tx_keys, bool rct, rct::RangeProofType range_proof_type, rct::multisig_out *msout, bool shuffle_outs)
Definition: cryptonote_tx_utils.cpp:198
crypto::public_key real_out_tx_key
Definition: cryptonote_tx_utils.h:48
static const rct::key & pk2rct(const crypto::public_key &pk)
Definition: rctTypes.h:535
Definition: unordered_containers_boost_serialization.h:37
Definition: cryptonote_basic.h:366
Definition: rctTypes.h:96
uint64_t height
Definition: blockchain.cpp:88
void serialize(Archive &a, cryptonote::tx_destination_entry &x, const boost::serialization::version_type ver)
Definition: cryptonote_tx_utils.h:128
crypto namespace.
Definition: crypto.cpp:59
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:69
Definition: blockchain_ancestry.cpp:70
Definition: bulletproofs.cc:56
bool rct
Definition: cryptonote_tx_utils.h:52
uint64_t amount
Definition: cryptonote_tx_utils.h:51
size_t real_output
Definition: cryptonote_tx_utils.h:47
Definition: rctTypes.h:104
key zeroCommit(xmr_amount amount)
Definition: rctOps.cpp:145
#define END_SERIALIZE()
self-explanatory
Definition: serialization.h:214
BOOST_CLASS_VERSION(nodetool::node_server< cryptonote::t_cryptonote_protocol_handler< cryptonote::core > >, 1)
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:224
bool generate_genesis_block(block &bl, std::string const &genesis_tx, uint32_t nonce)
Definition: cryptonote_tx_utils.cpp:640
Definition: cryptonote_tx_utils.h:42
Definition: rctTypes.h:78
Definition: subaddress_index.h:38
#define BEGIN_SERIALIZE_OBJECT()
begins the environment of the DSL for described the serialization of an object
Definition: serialization.h:190
uint64_t amount
Definition: cryptonote_tx_utils.h:76
tx_destination_entry(uint64_t a, const account_public_address &ad, bool is_subaddress)
Definition: cryptonote_tx_utils.h:81
Definition: rctTypes.h:234
#define false
Definition: stdbool.h:37
bool is_subaddress
Definition: cryptonote_tx_utils.h:78
POD_CLASS public_key
Definition: crypto.h:63
void push_output(uint64_t idx, const crypto::public_key &k, uint64_t amount)
Definition: cryptonote_tx_utils.h:56
rct::multisig_kLRki multisig_kLRki
Definition: cryptonote_tx_utils.h:54
account_public_address addr
Definition: cryptonote_tx_utils.h:77
std::string blobdata
Definition: blobdatatype.h:35
Definition: cryptonote_basic.h:400
tx_destination_entry()
Definition: cryptonote_tx_utils.h:80
bool construct_tx_and_get_tx_key(const account_keys &sender_account_keys, const std::unordered_map< crypto::public_key, subaddress_index > &subaddresses, std::vector< tx_source_entry > &sources, std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr, std::vector< uint8_t > extra, transaction &tx, uint64_t unlock_time, crypto::secret_key &tx_key, std::vector< crypto::secret_key > &additional_tx_keys, bool rct, rct::RangeProofType range_proof_type, rct::multisig_out *msout)
Definition: cryptonote_tx_utils.cpp:607
std::vector< crypto::public_key > real_out_additional_tx_keys
Definition: cryptonote_tx_utils.h:49
crypto::public_key get_destination_view_key_pub(const std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr)
Definition: cryptonote_tx_utils.cpp:176
#define VARINT_FIELD(f)
tags and serializes the varint f
Definition: serialization.h:263
size_t real_output_in_tx_index
Definition: cryptonote_tx_utils.h:50
string a
Definition: MakeCryptoOps.py:15
if(real_output >=outputs.size()) return false
bool construct_tx(const account_keys &sender_account_keys, std::vector< tx_source_entry > &sources, const std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr, std::vector< uint8_t > extra, transaction &tx, uint64_t unlock_time)
Definition: cryptonote_tx_utils.cpp:630
std::vector< output_entry > outputs
Definition: cryptonote_tx_utils.h:46
Definition: cryptonote_tx_utils.h:74
std::pair< uint64_t, rct::ctkey > output_entry
Definition: cryptonote_tx_utils.h:44
RangeProofType
Definition: rctTypes.h:234
#define FIELD(f)
tags the field with the variable name and then serializes it
Definition: serialization.h:243
bool construct_miner_tx(size_t height, size_t median_weight, uint64_t already_generated_coins, size_t current_block_weight, uint64_t fee, const account_public_address &miner_address, transaction &tx, const blobdata &extra_nonce, size_t max_outs, uint8_t hard_fork_version)
Definition: cryptonote_tx_utils.cpp:77
Definition: cryptonote_basic.h:182
#define true
Definition: stdbool.h:36
rct::key mask
Definition: cryptonote_tx_utils.h:53