little bit of branding
This commit is contained in:
@@ -152,7 +152,7 @@ namespace cryptonote
|
||||
uint64_t amount = out_amounts[no];
|
||||
summary_amounts += amount;
|
||||
|
||||
bool use_view_tags = hard_fork_version >= HF_VERSION_VIEW_TAGS;
|
||||
bool use_view_tags = true;
|
||||
crypto::view_tag view_tag;
|
||||
if (use_view_tags)
|
||||
crypto::derive_view_tag(derivation, no, view_tag);
|
||||
@@ -341,7 +341,7 @@ namespace cryptonote
|
||||
}
|
||||
|
||||
//put key image into tx input
|
||||
txin_to_key input_to_key;
|
||||
txin_fulmo_key input_to_key;
|
||||
input_to_key.amount = src_entr.amount;
|
||||
input_to_key.k_image = img;
|
||||
|
||||
@@ -363,8 +363,8 @@ namespace cryptonote
|
||||
for (size_t n = 0; n < sources.size(); ++n)
|
||||
ins_order[n] = n;
|
||||
std::sort(ins_order.begin(), ins_order.end(), [&](const size_t i0, const size_t i1) {
|
||||
const txin_to_key &tk0 = boost::get<txin_to_key>(tx.vin[i0]);
|
||||
const txin_to_key &tk1 = boost::get<txin_to_key>(tx.vin[i1]);
|
||||
const txin_fulmo_key &tk0 = boost::get<txin_fulmo_key>(tx.vin[i0]);
|
||||
const txin_fulmo_key &tk1 = boost::get<txin_fulmo_key>(tx.vin[i1]);
|
||||
return memcmp(&tk0.k_image, &tk1.k_image, sizeof(tk0.k_image)) > 0;
|
||||
});
|
||||
tools::apply_permutation(ins_order, [&] (size_t i0, size_t i1) {
|
||||
@@ -481,7 +481,7 @@ namespace cryptonote
|
||||
std::vector<crypto::signature>& sigs = tx.signatures.back();
|
||||
sigs.resize(src_entr.outputs.size());
|
||||
if (!zero_secret_key)
|
||||
crypto::generate_ring_signature(tx_prefix_hash, boost::get<txin_to_key>(tx.vin[i]).k_image, keys_ptrs, in_contexts[i].in_ephemeral.sec, src_entr.real_output, sigs.data());
|
||||
crypto::generate_ring_signature(tx_prefix_hash, boost::get<txin_fulmo_key>(tx.vin[i]).k_image, keys_ptrs, in_contexts[i].in_ephemeral.sec, src_entr.real_output, sigs.data());
|
||||
ss_ring_s << "signatures:" << ENDL;
|
||||
std::for_each(sigs.begin(), sigs.end(), [&](const crypto::signature& s){ss_ring_s << s << ENDL;});
|
||||
ss_ring_s << "prefix_hash:" << tx_prefix_hash << ENDL << "in_ephemeral_key: " << in_contexts[i].in_ephemeral.sec << ENDL << "real_output: " << src_entr.real_output << ENDL;
|
||||
@@ -582,7 +582,7 @@ namespace cryptonote
|
||||
for (size_t i = 0; i < tx.vin.size(); ++i)
|
||||
{
|
||||
if (sources[i].rct)
|
||||
boost::get<txin_to_key>(tx.vin[i]).amount = 0;
|
||||
boost::get<txin_fulmo_key>(tx.vin[i]).amount = 0;
|
||||
}
|
||||
for (size_t i = 0; i < tx.vout.size(); ++i)
|
||||
tx.vout[i].amount = 0;
|
||||
|
||||
Reference in New Issue
Block a user