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