Skip to content

Commit 9737c75

Browse files
committed
carrot_core: janus protection tests
1 parent 747a27a commit 9737c75

File tree

2 files changed

+917
-2
lines changed

2 files changed

+917
-2
lines changed

src/carrot_core/payment_proposal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void get_normal_proposal_ecdh_parts(const CarrotPaymentProposalV1 &propos
104104
mx25519_pubkey &enote_ephemeral_pubkey_out,
105105
mx25519_pubkey &s_sender_receiver_unctx_out)
106106
{
107-
// 1. d_e = H_n(anchor_norm, input_context, K^j_s, K^j_v, pid))
107+
// 1. d_e = H_n(anchor_norm, input_context, K^j_s, pid))
108108
const crypto::secret_key enote_ephemeral_privkey = get_enote_ephemeral_privkey(proposal.randomness,
109109
proposal.destination,
110110
input_context);
@@ -133,7 +133,7 @@ static void get_output_proposal_parts(const crypto::hash &s_sender_receiver,
133133
encrypted_amount_t &encrypted_amount_out,
134134
encrypted_payment_id_t &encrypted_payment_id_out)
135135
{
136-
// 1. k_a = H_n(s^ctx_sr, enote_type) if !coinbase, else 1
136+
// 1. k_a = H_n(s^ctx_sr, a, K^j_s, enote_type) if !coinbase, else 1
137137
if (coinbase_amount_commitment)
138138
sc_1(to_bytes(amount_blinding_factor_out));
139139
else

0 commit comments

Comments
 (0)