1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! This module contains a type [ChunkedEvaluations],

use ark_ff::PrimeField;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;

/// This struct contains multiple chunk evaluations.
#[serde_as]
#[derive(Clone, Serialize, Deserialize)]
pub struct ChunkedEvaluations<F>
where
    F: PrimeField,
{
    /// The chunk evaluations.
    #[serde_as(as = "Vec<crate::serialization::SerdeAs>")]
    pub chunks: Vec<F>,

    /// Each chunk polynomial has degree `size-1`.
    pub size: usize,
}