@@ -88,7 +88,7 @@ void make_carrot_enote_ephemeral_privkey(const janus_anchor_t &anchor_norm,
88
88
// k_e = (H_64(anchor_norm, input_context, K^j_s, K^j_v, pid)) mod l
89
89
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_EPHEMERAL_PRIVKEY>(
90
90
anchor_norm, input_context, address_spend_pubkey, address_view_pubkey, payment_id);
91
- derive_scalar (transcript.data (), transcript.size , nullptr , &enote_ephemeral_privkey_out);
91
+ derive_scalar (transcript.data (), transcript.size () , nullptr , &enote_ephemeral_privkey_out);
92
92
}
93
93
// -------------------------------------------------------------------------------------------------------------------
94
94
void make_carrot_enote_ephemeral_pubkey_cryptonote (const crypto::secret_key &enote_ephemeral_privkey,
@@ -163,7 +163,7 @@ void make_carrot_view_tag(const unsigned char s_sender_receiver_unctx[32],
163
163
{
164
164
// vt = H_3(s_sr || input_context || Ko)
165
165
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_VIEW_TAG>(input_context, onetime_address);
166
- derive_bytes_3 (transcript.data (), transcript.size , s_sender_receiver_unctx, &view_tag_out);
166
+ derive_bytes_3 (transcript.data (), transcript.size () , s_sender_receiver_unctx, &view_tag_out);
167
167
}
168
168
// -------------------------------------------------------------------------------------------------------------------
169
169
void make_carrot_input_context_coinbase (const std::uint64_t block_index, input_context_t &input_context_out)
@@ -189,7 +189,7 @@ void make_carrot_sender_receiver_secret(const unsigned char s_sender_receiver_un
189
189
// s^ctx_sr = H_32(s_sr, D_e, input_context)
190
190
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_SENDER_RECEIVER_SECRET>(
191
191
enote_ephemeral_pubkey, input_context);
192
- derive_bytes_32 (transcript.data (), transcript.size , s_sender_receiver_unctx, &s_sender_receiver_out);
192
+ derive_bytes_32 (transcript.data (), transcript.size () , s_sender_receiver_unctx, &s_sender_receiver_out);
193
193
}
194
194
// -------------------------------------------------------------------------------------------------------------------
195
195
void make_carrot_onetime_address_extension_g (const crypto::hash &s_sender_receiver,
@@ -198,7 +198,7 @@ void make_carrot_onetime_address_extension_g(const crypto::hash &s_sender_receiv
198
198
{
199
199
// k^o_g = H_n("..g..", s^ctx_sr, C_a)
200
200
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_ONETIME_EXTENSION_G>(amount_commitment);
201
- derive_scalar (transcript.data (), transcript.size , &s_sender_receiver, &sender_extension_out);
201
+ derive_scalar (transcript.data (), transcript.size () , &s_sender_receiver, &sender_extension_out);
202
202
}
203
203
// -------------------------------------------------------------------------------------------------------------------
204
204
void make_carrot_onetime_address_extension_t (const crypto::hash &s_sender_receiver,
@@ -207,7 +207,7 @@ void make_carrot_onetime_address_extension_t(const crypto::hash &s_sender_receiv
207
207
{
208
208
// k^o_t = H_n("..t..", s^ctx_sr, C_a)
209
209
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_ONETIME_EXTENSION_T>(amount_commitment);
210
- derive_scalar (transcript.data (), transcript.size , &s_sender_receiver, &sender_extension_out);
210
+ derive_scalar (transcript.data (), transcript.size () , &s_sender_receiver, &sender_extension_out);
211
211
}
212
212
// -------------------------------------------------------------------------------------------------------------------
213
213
void make_carrot_onetime_address_extension_pubkey (const crypto::hash &s_sender_receiver,
@@ -253,7 +253,7 @@ void make_carrot_amount_blinding_factor(const crypto::hash &s_sender_receiver,
253
253
// k_a = H_n(s^ctx_sr, enote_type)
254
254
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_AMOUNT_BLINDING_FACTOR>(
255
255
static_cast <unsigned char >(enote_type));
256
- derive_scalar (transcript.data (), transcript.size , &s_sender_receiver, &amount_blinding_factor_out);
256
+ derive_scalar (transcript.data (), transcript.size () , &s_sender_receiver, &amount_blinding_factor_out);
257
257
}
258
258
// -------------------------------------------------------------------------------------------------------------------
259
259
void make_carrot_anchor_encryption_mask (const crypto::hash &s_sender_receiver,
@@ -262,7 +262,7 @@ void make_carrot_anchor_encryption_mask(const crypto::hash &s_sender_receiver,
262
262
{
263
263
// m_anchor = H_16(s^ctx_sr, Ko)
264
264
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_ENCRYPTION_MASK_ANCHOR>(onetime_address);
265
- derive_bytes_16 (transcript.data (), transcript.size , &s_sender_receiver, &anchor_encryption_mask_out);
265
+ derive_bytes_16 (transcript.data (), transcript.size () , &s_sender_receiver, &anchor_encryption_mask_out);
266
266
}
267
267
// -------------------------------------------------------------------------------------------------------------------
268
268
encrypted_janus_anchor_t encrypt_carrot_anchor (const janus_anchor_t &anchor,
@@ -295,7 +295,7 @@ void make_carrot_amount_encryption_mask(const crypto::hash &s_sender_receiver,
295
295
{
296
296
// m_a = H_8(s^ctx_sr, Ko)
297
297
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_ENCRYPTION_MASK_AMOUNT>(onetime_address);
298
- derive_bytes_8 (transcript.data (), transcript.size , &s_sender_receiver, &amount_encryption_mask_out);
298
+ derive_bytes_8 (transcript.data (), transcript.size () , &s_sender_receiver, &amount_encryption_mask_out);
299
299
}
300
300
// -------------------------------------------------------------------------------------------------------------------
301
301
encrypted_amount_t encrypt_carrot_amount (const rct::xmr_amount amount,
@@ -328,7 +328,7 @@ void make_carrot_payment_id_encryption_mask(const crypto::hash &s_sender_receive
328
328
{
329
329
// m_pid = H_8(s^ctx_sr, Ko)
330
330
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_ENCRYPTION_MASK_PAYMENT_ID>(onetime_address);
331
- derive_bytes_8 (transcript.data (), transcript.size , &s_sender_receiver, &payment_id_encryption_mask_out);
331
+ derive_bytes_8 (transcript.data (), transcript.size () , &s_sender_receiver, &payment_id_encryption_mask_out);
332
332
}
333
333
// -------------------------------------------------------------------------------------------------------------------
334
334
encrypted_payment_id_t encrypt_legacy_payment_id (const payment_id_t payment_id,
@@ -365,7 +365,7 @@ void make_carrot_janus_anchor_special(const crypto::x25519_pubkey &enote_ephemer
365
365
// anchor_sp = H_16(D_e, input_context, Ko, k_v, K_s)
366
366
const auto transcript = sp::make_fixed_transcript<CARROT_DOMAIN_SEP_JANUS_ANCHOR_SPECIAL>(
367
367
enote_ephemeral_pubkey, input_context, account_spend_pubkey);
368
- derive_bytes_16 (transcript.data (), transcript.size , &k_view, &anchor_special_out);
368
+ derive_bytes_16 (transcript.data (), transcript.size () , &k_view, &anchor_special_out);
369
369
}
370
370
// -------------------------------------------------------------------------------------------------------------------
371
371
void recover_address_spend_pubkey (const crypto::public_key &onetime_address,
0 commit comments