Skip to content
Snippets Groups Projects

refactor shard to use a simple vector

Merged STEVAN Antoine requested to merge refactor-shard into main
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -188,8 +188,7 @@ mod tests {
@@ -188,8 +188,7 @@ mod tests {
linear_combination: &[E::ScalarField],
linear_combination: &[E::ScalarField],
bytes: &[u8],
bytes: &[u8],
) -> Shard<E> {
) -> Shard<E> {
let bytes =
let bytes = field::split_data_into_field_elements::<E>(bytes, 1, false);
field::split_data_into_field_elements::<E>(bytes, linear_combination.len(), false);
Shard {
Shard {
k: 0,
k: 0,
linear_combination: linear_combination.to_vec(),
linear_combination: linear_combination.to_vec(),
Loading