Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed comments
Browse files Browse the repository at this point in the history
Michael Rosenberg committed Jan 6, 2025
1 parent 8fcbbe8 commit 606c72a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vdaf/prio3.rs
Original file line number Diff line number Diff line change
@@ -1039,6 +1039,8 @@ where
let measurement_len = T::Field::ENCODED_SIZE * prio3.typ.input_len();
let proof_len = T::Field::ENCODED_SIZE * prio3.typ.proof_len() * prio3.num_proofs();

// TODO optimization: Use a decoding routine that preallocates using knowledge of the
// expected output len
let measurement_share = decode_items(measurement_len, &(), bytes)?;
let proofs_share = decode_items(proof_len, &(), bytes)?;

@@ -1464,7 +1466,7 @@ where

Ok((
Prio3PrepareState {
measurement_share: msg.measurement_share().clone(),
measurement_share: msg.measurement_share(),
joint_rand_seed,
agg_id,
verifiers_len: verifiers_share.len(),

0 comments on commit 606c72a

Please sign in to comment.