pub struct DeviceMultiStarkProvingKey<PB: ProverBackend> {
pub per_air: Vec<DeviceStarkProvingKey<PB>>,
pub trace_height_constraints: Vec<LinearConstraint>,
pub max_constraint_degree: usize,
pub params: SystemParams,
pub vk_pre_hash: PB::Commitment,
}Expand description
The proving key for a circuit consisting of multiple AIRs, after prover-specific data has been transferred to device. The host data (e.g., vkey) is owned by this struct.
Ordering is always by AIR ID and includes all AIRs, including ones that may have empty traces.
Fields§
§per_air: Vec<DeviceStarkProvingKey<PB>>§trace_height_constraints: Vec<LinearConstraint>§max_constraint_degree: usizeMaximum degree of constraints across all AIRs
params: SystemParams§vk_pre_hash: PB::CommitmentImplementations§
Source§impl<PB: ProverBackend> DeviceMultiStarkProvingKey<PB>
impl<PB: ProverBackend> DeviceMultiStarkProvingKey<PB>
Sourcepub fn new(
per_air: Vec<DeviceStarkProvingKey<PB>>,
trace_height_constraints: Vec<LinearConstraint>,
max_constraint_degree: usize,
params: SystemParams,
vk_pre_hash: PB::Commitment,
) -> Self
pub fn new( per_air: Vec<DeviceStarkProvingKey<PB>>, trace_height_constraints: Vec<LinearConstraint>, max_constraint_degree: usize, params: SystemParams, vk_pre_hash: PB::Commitment, ) -> Self
Constructs a new DeviceMultiStarkProvingKey.
Source§impl<PB: ProverBackend> DeviceMultiStarkProvingKey<PB>
impl<PB: ProverBackend> DeviceMultiStarkProvingKey<PB>
pub fn get_vk<SC>(&self) -> MultiStarkVerifyingKey<SC>
Auto Trait Implementations§
impl<PB> Freeze for DeviceMultiStarkProvingKey<PB>
impl<PB> RefUnwindSafe for DeviceMultiStarkProvingKey<PB>where
<PB as ProverBackend>::Commitment: RefUnwindSafe,
<PB as ProverBackend>::OtherAirData: RefUnwindSafe,
<PB as ProverBackend>::Matrix: RefUnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
<PB as ProverBackend>::Val: RefUnwindSafe,
impl<PB> Send for DeviceMultiStarkProvingKey<PB>
impl<PB> Sync for DeviceMultiStarkProvingKey<PB>
impl<PB> Unpin for DeviceMultiStarkProvingKey<PB>where
<PB as ProverBackend>::Commitment: Unpin,
<PB as ProverBackend>::OtherAirData: Unpin,
<PB as ProverBackend>::Matrix: Unpin,
<PB as ProverBackend>::Val: Unpin,
impl<PB> UnsafeUnpin for DeviceMultiStarkProvingKey<PB>
impl<PB> UnwindSafe for DeviceMultiStarkProvingKey<PB>where
<PB as ProverBackend>::Commitment: UnwindSafe,
<PB as ProverBackend>::OtherAirData: UnwindSafe,
<PB as ProverBackend>::Matrix: UnwindSafe,
<PB as ProverBackend>::PcsData: RefUnwindSafe,
<PB as ProverBackend>::Val: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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