Skip to content

Commit

Permalink
Merge branch 'master' into matthias/remove-broken-non_pow2_rayon_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens authored Dec 10, 2024
2 parents b07f100 + 79ce99f commit 92d7970
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion transcript/src/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ impl<E: ExtensionField> Transcript<E> for BasicTranscript<E> {
}

fn read_challenge(&mut self) -> Challenge<E> {
let r = E::from_bases(self.permutation.squeeze());
// notice `from_bases` and `from_limbs` has the same behavior but
// `from_bases` has a sanity check for length of input slices
// while `from_limbs` use the first two fields silently
// we select `from_base` here to make it being more clear that
// we only use the first 2 fields here to construct the
// extension field (i.e. the challenge)
let r = E::from_bases(&self.permutation.squeeze()[..2]);

Challenge { elements: r }
}
Expand Down

0 comments on commit 92d7970

Please sign in to comment.