pub struct Proof<F: PrimeField> {
pub up_evals: Vec<F>,
pub down_evals: Vec<F>,
}Expand description
The proof type of the combined polynomial resolver subprotocol.
Note: the sumcheck proof now lives at the protocol
level as part of MultiDegreeSumcheckProof.
Fields§
§up_evals: Vec<F>The evaluation of the projected trace columns MLEs at the shared point.
down_evals: Vec<F>The evaluations of the shifted projected trace columns MLEs at the shared point.
Implementations§
Source§impl<F: PrimeField> Proof<F>
impl<F: PrimeField> Proof<F>
Sourcepub fn validate_evaluation_sizes(
&self,
num_cols: usize,
num_down_cols: usize,
) -> Result<(), CombinedPolyResolverError<F>>
pub fn validate_evaluation_sizes( &self, num_cols: usize, num_down_cols: usize, ) -> Result<(), CombinedPolyResolverError<F>>
Check if up_evals and down_evals vectors have the expected lengths.
Trait Implementations§
Source§impl<F: PrimeField> GenTranscribable for Proof<F>where
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
impl<F: PrimeField> GenTranscribable for Proof<F>where
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
Source§fn read_transcription_bytes_exact(bytes: &[u8]) -> Self
fn read_transcription_bytes_exact(bytes: &[u8]) -> Self
Creates a new instance from a byte buffer.
The buffer must be exactly the expected length.
Source§fn write_transcription_bytes_exact(&self, buf: &mut [u8])
fn write_transcription_bytes_exact(&self, buf: &mut [u8])
Transcribes the current instance into a byte buffer.
The buffer must be exactly the expected length.
Source§impl<F: PrimeField> Transcribable for Proof<F>where
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
impl<F: PrimeField> Transcribable for Proof<F>where
F::Inner: ConstTranscribable,
F::Modulus: ConstTranscribable,
Source§fn get_num_bytes(&self) -> usize
fn get_num_bytes(&self) -> usize
Returns the number of bytes required to represent this type.
The buffer passed to
write_transcription_bytes should be exactly the
length returned by this function.Source§const LENGTH_NUM_BYTES: usize = u32::NUM_BYTES
const LENGTH_NUM_BYTES: usize = u32::NUM_BYTES
Number of bytes required to represent length of this type, could be
zero if known in advance.
Source§fn read_num_bytes(bytes: &[u8]) -> usize
fn read_num_bytes(bytes: &[u8]) -> usize
Read number of bytes required to represent this type.
The buffer must be exactly
LENGTH_NUM_BYTES long.
The buffer passed to read_transcription_bytes should be exactly the
length returned by this function.Source§fn read_transcription_bytes_subset(bytes: &[u8]) -> (Self, &[u8])
fn read_transcription_bytes_subset(bytes: &[u8]) -> (Self, &[u8])
Reads an instance of this type from the beginning of the byte slice, and
returns the instance along with the remaining byte slice.
impl<F: Eq + PrimeField> Eq for Proof<F>
impl<F: PrimeField> StructuralPartialEq for Proof<F>
Auto Trait Implementations§
impl<F> Freeze for Proof<F>
impl<F> RefUnwindSafe for Proof<F>where
F: RefUnwindSafe,
impl<F> Send for Proof<F>
impl<F> Sync for Proof<F>
impl<F> Unpin for Proof<F>where
F: Unpin,
impl<F> UnsafeUnpin for Proof<F>
impl<F> UnwindSafe for Proof<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more