45 template<
class t_array>
50 return boost::hash_range(&val.data[0], &val.data[
sizeof(val.data)]);
73 inline std::string
return_first_address(
const std::string &url,
const std::vector<std::string> &addresses,
bool dnssec_valid)
75 if (addresses.empty())
87 bool get_block_reward(
size_t median_size,
size_t current_block_size, uint64_t already_generated_coins, uint64_t &reward, uint8_t
version);
93 ,
const account_public_address& adr
98 ,
const account_public_address& adr
103 account_public_address& adr
104 ,
bool& has_payment_id
107 ,
const std::string& str
111 account_public_address& adr
113 ,
const std::string& str
118 ,
bool& has_payment_id
121 ,
const std::string& str_or_url
122 , std::function<std::string(
const std::string&,
const std::vector<std::string>&,
bool)> dns_confirm =
return_first_address 128 ,
const std::string& str_or_url
129 , std::function<std::string(
const std::string&,
const std::vector<std::string>&,
bool)> dns_confirm =
return_first_address 142 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
145 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
148 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
151 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
154 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
157 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
160 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
bool is_coinbase(const transaction &tx)
Definition: cryptonote_basic_impl.cpp:202
Definition: cryptonote_basic_impl.h:56
crypto::hash8 payment_id
Definition: cryptonote_basic_impl.h:66
size_t get_max_tx_size()
Definition: cryptonote_basic_impl.cpp:89
POD_CLASS key_derivation
Definition: crypto.h:89
Definition: cryptonote_basic.h:382
std::string get_account_address_as_str(bool testnet, account_public_address const &adr)
Definition: cryptonote_basic_impl.cpp:176
std::size_t operator()(const t_array &val) const
Definition: cryptonote_basic_impl.h:48
crypto namespace.
Definition: crypto.cpp:47
uint8_t get_account_integrated_address_checksum(const public_integrated_address_outer_blob &bl)
Definition: cryptonote_basic_impl.cpp:166
std::string get_account_integrated_address_as_str(bool testnet, account_public_address const &adr, crypto::hash8 const &payment_id)
Definition: cryptonote_basic_impl.cpp:187
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:225
bool get_account_address_from_str(account_public_address &adr, bool testnet, std::string const &str)
Definition: cryptonote_basic_impl.cpp:311
uint8_t m_ver
Definition: cryptonote_basic_impl.h:58
Definition: cryptonote_basic_impl.h:46
bool get_block_reward(size_t median_size, size_t current_block_size, uint64_t already_generated_coins, uint64_t &reward, uint8_t version)
Definition: cryptonote_basic_impl.cpp:94
uint8_t get_account_address_checksum(const public_address_outer_blob &bl)
Definition: cryptonote_basic_impl.cpp:156
uint8_t check_sum
Definition: cryptonote_basic_impl.h:60
uint8_t check_sum
Definition: cryptonote_basic_impl.h:67
int b
Definition: base.py:1
size_t get_min_block_size(uint8_t version)
Definition: cryptonote_basic_impl.cpp:73
bool get_account_integrated_address_from_str(account_public_address &adr, bool &has_payment_id, crypto::hash8 &payment_id, bool testnet, std::string const &str)
Definition: cryptonote_basic_impl.cpp:213
account_public_address m_address
Definition: cryptonote_basic_impl.h:59
POD_CLASS public_key
Definition: crypto.h:65
bool get_account_address_from_str_or_url(cryptonote::account_public_address &address, bool &has_payment_id, crypto::hash8 &payment_id, bool testnet, const std::string &str_or_url, std::function< std::string(const std::string &, const std::vector< std::string > &, bool)> dns_confirm)
Definition: cryptonote_basic_impl.cpp:322
uint8_t version
Definition: blockchain.cpp:86
bool operator==(const cryptonote::transaction &a, const cryptonote::transaction &b)
Definition: cryptonote_basic_impl.cpp:351
POD_CLASS signature
Definition: crypto.h:99
Definition: cryptonote_basic.h:421
POD_CLASS hash8
Definition: hash.h:49
POD_CLASS key_image
Definition: crypto.h:93
bool parse_hash256(const std::string str_hash, crypto::hash &hash)
Definition: cryptonote_basic_impl.cpp:361
POD_CLASS secret_key
Definition: crypto.h:69
size_t get_max_block_size()
Definition: cryptonote_basic_impl.cpp:84
account_public_address m_address
Definition: cryptonote_basic_impl.h:65
string a
Definition: MakeCryptoOps.py:15
uint8_t m_ver
Definition: cryptonote_basic_impl.h:64
POD_CLASS hash
Definition: hash.h:46
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
Definition: cryptonote_basic_impl.h:141
Definition: cryptonote_basic_impl.h:62
Definition: cryptonote_basic.h:198
std::string return_first_address(const std::string &url, const std::vector< std::string > &addresses, bool dnssec_valid)
Definition: cryptonote_basic_impl.h:73