|
|
@ -2511,12 +2511,12 @@ show_my_outputs(string tx_hash_str,
|
|
|
|
|
|
|
|
|
|
|
|
//cout << " - " << pod_to_hex(txout_k.key) << endl;
|
|
|
|
//cout << " - " << pod_to_hex(txout_k.key) << endl;
|
|
|
|
|
|
|
|
|
|
|
|
// // analyze only those output keys
|
|
|
|
// // analyze only those output keys
|
|
|
|
// // that were used in mixins
|
|
|
|
// // that were used in mixins
|
|
|
|
// if (txout_k.key != output_data.pubkey)
|
|
|
|
// if (txout_k.key != output_data.pubkey)
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// continue;
|
|
|
|
// continue;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// get the tx output public key
|
|
|
|
// get the tx output public key
|
|
|
|
// that normally would be generated for us,
|
|
|
|
// that normally would be generated for us,
|
|
|
@ -2632,22 +2632,22 @@ show_my_outputs(string tx_hash_str,
|
|
|
|
|
|
|
|
|
|
|
|
// generate key_image using this output
|
|
|
|
// generate key_image using this output
|
|
|
|
// just to see how would having spend keys worked
|
|
|
|
// just to see how would having spend keys worked
|
|
|
|
// crypto::key_image key_img;
|
|
|
|
// crypto::key_image key_img;
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// if (!xmreg::generate_key_image(derivation,
|
|
|
|
// if (!xmreg::generate_key_image(derivation,
|
|
|
|
// output_idx_in_tx, /* position in the tx */
|
|
|
|
// output_idx_in_tx, /* position in the tx */
|
|
|
|
// prv_spend_key,
|
|
|
|
// prv_spend_key,
|
|
|
|
// address.m_spend_public_key,
|
|
|
|
// address.m_spend_public_key,
|
|
|
|
// key_img)) {
|
|
|
|
// key_img)) {
|
|
|
|
// cerr << "Cant generate key image for output: "
|
|
|
|
// cerr << "Cant generate key image for output: "
|
|
|
|
// << pod_to_hex(output_data.pubkey) << endl;
|
|
|
|
// << pod_to_hex(output_data.pubkey) << endl;
|
|
|
|
// break;
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// cout << "output_data.pubkey: " << pod_to_hex(output_data.pubkey)
|
|
|
|
// cout << "output_data.pubkey: " << pod_to_hex(output_data.pubkey)
|
|
|
|
// << ", key_img: " << pod_to_hex(key_img)
|
|
|
|
// << ", key_img: " << pod_to_hex(key_img)
|
|
|
|
// << ", key_img == input_key: " << (key_img == in_key.k_image)
|
|
|
|
// << ", key_img == input_key: " << (key_img == in_key.k_image)
|
|
|
|
// << endl;
|
|
|
|
// << endl;
|
|
|
|
|
|
|
|
|
|
|
|
no_of_output_matches_found++;
|
|
|
|
no_of_output_matches_found++;
|
|
|
|
|
|
|
|
|
|
|
|