fixed field ordering to allow GCC to compile; removed unlock_time field from CARROT/SPARC TX outputs
This commit is contained in:
@@ -67,16 +67,14 @@ struct CarrotEnoteV1 final
|
|||||||
encrypted_amount_t amount_enc;
|
encrypted_amount_t amount_enc;
|
||||||
/// anchor_enc
|
/// anchor_enc
|
||||||
encrypted_janus_anchor_t anchor_enc;
|
encrypted_janus_anchor_t anchor_enc;
|
||||||
|
/// return_enc
|
||||||
|
encrypted_return_pubkey_t return_enc;
|
||||||
/// view_tag
|
/// view_tag
|
||||||
view_tag_t view_tag;
|
view_tag_t view_tag;
|
||||||
/// D_e
|
/// D_e
|
||||||
mx25519_pubkey enote_ephemeral_pubkey;
|
mx25519_pubkey enote_ephemeral_pubkey;
|
||||||
/// L_0
|
/// L_0
|
||||||
crypto::key_image tx_first_key_image;
|
crypto::key_image tx_first_key_image;
|
||||||
/// return_enc
|
|
||||||
encrypted_return_pubkey_t return_enc;
|
|
||||||
/// asset_type
|
|
||||||
std::string asset_type;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// equality operators
|
/// equality operators
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ void get_output_proposal_return_v1(const CarrotPaymentProposalV1 &proposal,
|
|||||||
output_enote_out.enote.anchor_enc = encrypt_carrot_anchor(proposal.randomness, s_sender_receiver, output_enote_out.enote.onetime_address);
|
output_enote_out.enote.anchor_enc = encrypt_carrot_anchor(proposal.randomness, s_sender_receiver, output_enote_out.enote.onetime_address);
|
||||||
|
|
||||||
// Recalculate the pid_enc = pid XOR m_pid
|
// Recalculate the pid_enc = pid XOR m_pid
|
||||||
encrypted_payment_id_out =encrypt_legacy_payment_id(proposal.destination.payment_id, s_sender_receiver, output_enote_out.enote.onetime_address);
|
encrypted_payment_id_out = encrypt_legacy_payment_id(proposal.destination.payment_id, s_sender_receiver, output_enote_out.enote.onetime_address);
|
||||||
|
|
||||||
// 6. save the amount and first key image
|
// 6. save the amount and first key image
|
||||||
output_enote_out.amount = proposal.amount;
|
output_enote_out.amount = proposal.amount;
|
||||||
|
|||||||
@@ -379,8 +379,8 @@ cryptonote::transaction store_carrot_to_coinbase_transaction_v1(
|
|||||||
tx.vout.push_back(cryptonote::tx_out{enote.amount,
|
tx.vout.push_back(cryptonote::tx_out{enote.amount,
|
||||||
cryptonote::txout_to_carrot_v1{
|
cryptonote::txout_to_carrot_v1{
|
||||||
.key = enote.onetime_address,
|
.key = enote.onetime_address,
|
||||||
.view_tag = enote.view_tag,
|
|
||||||
.asset_type = enote.asset_type,
|
.asset_type = enote.asset_type,
|
||||||
|
.view_tag = enote.view_tag,
|
||||||
.encrypted_janus_anchor = enote.anchor_enc
|
.encrypted_janus_anchor = enote.anchor_enc
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ namespace cryptonote
|
|||||||
BEGIN_SERIALIZE_OBJECT()
|
BEGIN_SERIALIZE_OBJECT()
|
||||||
FIELD(key)
|
FIELD(key)
|
||||||
FIELD(asset_type)
|
FIELD(asset_type)
|
||||||
VARINT_FIELD(unlock_time)
|
|
||||||
FIELD(view_tag)
|
FIELD(view_tag)
|
||||||
FIELD(encrypted_janus_anchor)
|
FIELD(encrypted_janus_anchor)
|
||||||
END_SERIALIZE()
|
END_SERIALIZE()
|
||||||
|
|||||||
@@ -243,8 +243,8 @@ static std::optional<enote_view_incoming_scan_info_t> view_incoming_scan_pre_car
|
|||||||
.payment_id = payment_id,
|
.payment_id = payment_id,
|
||||||
.subaddr_index = subaddr_index,
|
.subaddr_index = subaddr_index,
|
||||||
.amount = amount,
|
.amount = amount,
|
||||||
.asset_type = enote.asset_type,
|
|
||||||
.amount_blinding_factor = amount_blinding_factor,
|
.amount_blinding_factor = amount_blinding_factor,
|
||||||
|
.asset_type = enote.asset_type,
|
||||||
.main_tx_pubkey_index = main_deriv_idx
|
.main_tx_pubkey_index = main_deriv_idx
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user