34 #include <boost/serialization/vector.hpp> 35 #include <boost/serialization/utility.hpp> 41 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,
network_type nettype =
MAINNET);
107 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, const
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, const
rct::RCTConfig &rct_config = {
rct::RangeProofBorromean, 0 },
rct::multisig_out *msout = NULL,
bool shuffle_outs =
true,
const uint32_t account_major_offset = 0,
const cryptonote::network_type =
MAINNET);
108 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,
const 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,
const rct::RCTConfig &rct_config = {
rct::RangeProofBorromean, 0 },
rct::multisig_out *msout = NULL,
uint32_t account_major_offset = 0,
const cryptonote::network_type =
MAINNET);
111 const bool &need_additional_txkeys,
const std::vector<crypto::secret_key> &additional_tx_keys,
112 std::vector<crypto::public_key> &additional_tx_public_keys,
113 std::vector<rct::key> &amount_keys,
118 const bool &need_additional_txkeys,
const std::vector<crypto::secret_key> &additional_tx_keys,
119 std::vector<crypto::public_key> &additional_tx_public_keys,
120 std::vector<rct::key> &amount_keys,
137 template <
class Archive>
157 template <
class Archive>
crypto::public_key real_out_tx_key
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, const 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, const rct::RCTConfig &rct_config, rct::multisig_out *msout, bool shuffle_outs, const uint32_t account_major_offset, const cryptonote::network_type nettype)
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, const std::vector< uint8_t > &extra, transaction &tx, uint64_t unlock_time)
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
tx_destination_entry(const std::string &o, uint64_t a, const account_public_address &ad, bool is_subaddress)
#define END_SERIALIZE()
self-explanatory
Holds cryptonote related classes and helpers.
bool generate_genesis_block(block &bl, std::string const &genesis_tx, uint32_t nonce)
void serialize(Archive &a, unsigned_tx_set &x, const boost::serialization::version_type ver)
unsigned __int64 uint64_t
#define BEGIN_SERIALIZE_OBJECT()
begins the environment of the DSL for described the serialization of an object
BOOST_CLASS_VERSION(nodetool::node_server< cryptonote::t_cryptonote_protocol_handler< tests::proxy_core > >, 1)
tx_destination_entry(uint64_t a, const account_public_address &ad, bool is_subaddress)
void push_output(uint64_t idx, const crypto::public_key &k, uint64_t amount)
rct::multisig_kLRki multisig_kLRki
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
account_public_address addr
std::vector< crypto::public_key > real_out_additional_tx_keys
crypto::public_key get_destination_view_key_pub(const std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr)
#define VARINT_FIELD(f)
tags and serializes the varint f
size_t real_output_in_tx_index
if(real_output >=outputs.size()) return false
std::vector< output_entry > outputs
key zeroCommit(etn_amount amount)
bool generate_output_ephemeral_keys(const size_t tx_version, const cryptonote::account_keys &sender_account_keys, const crypto::public_key &txkey_pub, const crypto::secret_key &tx_key, const cryptonote::tx_destination_entry &dst_entr, const boost::optional< cryptonote::account_public_address > &change_addr, const size_t output_index, const bool &need_additional_txkeys, const std::vector< crypto::secret_key > &additional_tx_keys, std::vector< crypto::public_key > &additional_tx_public_keys, std::vector< rct::key > &amount_keys, crypto::public_key &out_eph_public_key)
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, network_type nettype)
std::pair< uint64_t, rct::ctkey > output_entry
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, const 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, const rct::RCTConfig &rct_config, rct::multisig_out *msout, const uint32_t account_major_offset, const cryptonote::network_type nettype)
subaddress_index subaddr_index