pub struct DeviceMultiStarkProvingKey<'a, PB: ProverBackend> {
pub per_air: Vec<DeviceStarkProvingKey<'a, PB>>,
pub trace_height_constraints: Vec<LinearConstraint>,
pub vk_pre_hash: PB::Commitment,
/* private fields */
}
Expand description
A view of the proving key after it has been transferred to device.
Fields§
§per_air: Vec<DeviceStarkProvingKey<'a, PB>>
§trace_height_constraints: Vec<LinearConstraint>
Each LinearConstraint is indexed by AIR ID.
Caution: the linear constraints are not filtered for only the AIRs appearing in per_air
.
vk_pre_hash: PB::Commitment
Implementations§
Source§impl<'a, PB: ProverBackend> DeviceMultiStarkProvingKey<'a, PB>
impl<'a, PB: ProverBackend> DeviceMultiStarkProvingKey<'a, PB>
pub fn new( air_ids: Vec<usize>, per_air: Vec<DeviceStarkProvingKey<'a, PB>>, trace_height_constraints: Vec<LinearConstraint>, vk_pre_hash: PB::Commitment, ) -> Self
Auto Trait Implementations§
impl<'a, PB> Freeze for DeviceMultiStarkProvingKey<'a, PB>
impl<'a, PB> RefUnwindSafe for DeviceMultiStarkProvingKey<'a, PB>where
<PB as ProverBackend>::Commitment: RefUnwindSafe,
<PB as ProverBackend>::RapPartialProvingKey: RefUnwindSafe,
<PB as ProverBackend>::Matrix: RefUnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
<PB as ProverBackend>::Val: RefUnwindSafe,
impl<'a, PB> Send for DeviceMultiStarkProvingKey<'a, PB>
impl<'a, PB> Sync for DeviceMultiStarkProvingKey<'a, PB>
impl<'a, PB> Unpin for DeviceMultiStarkProvingKey<'a, PB>where
<PB as ProverBackend>::Commitment: Unpin,
<PB as ProverBackend>::RapPartialProvingKey: Unpin,
<PB as ProverBackend>::Matrix: Unpin,
<PB as ProverBackend>::PcsData: Unpin,
impl<'a, PB> UnwindSafe for DeviceMultiStarkProvingKey<'a, PB>where
<PB as ProverBackend>::Commitment: UnwindSafe + RefUnwindSafe,
<PB as ProverBackend>::RapPartialProvingKey: UnwindSafe,
<PB as ProverBackend>::Matrix: UnwindSafe,
<PB as ProverBackend>::PcsData: UnwindSafe,
<PB as ProverBackend>::Val: RefUnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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