pub struct PrivateKernelExecutionProver<'a, N>where
N: AztecNode,{ /* private fields */ }Expand description
Orchestrates private kernel proof generation.
Processes a private execution result through the full kernel circuit sequence:
- Init — first private call produces kernel public inputs
- Inner — each subsequent nested call chains with previous output
- Reset — between calls: squash transient side effects, verify reads
- Tail — finalize private kernel public inputs
- Hiding — wrap into privacy-preserving proof (to-rollup or to-public)
- ChonkProof — aggregate all execution steps into one proof
Implementations§
Source§impl<'a, N> PrivateKernelExecutionProver<'a, N>where
N: AztecNode,
impl<'a, N> PrivateKernelExecutionProver<'a, N>where
N: AztecNode,
pub fn new( oracle: PrivateKernelOracle<'a, N>, prover: &'a dyn PrivateKernelProver, config: KernelExecutionConfig, ) -> PrivateKernelExecutionProver<'a, N>
Sourcepub fn from_stores(
node: &'a N,
contract_store: &'a ContractStore,
key_store: &'a KeyStore,
prover: &'a dyn PrivateKernelProver,
block_hash: Fr,
config: KernelExecutionConfig,
) -> PrivateKernelExecutionProver<'a, N>
pub fn from_stores( node: &'a N, contract_store: &'a ContractStore, key_store: &'a KeyStore, prover: &'a dyn PrivateKernelProver, block_hash: Fr, config: KernelExecutionConfig, ) -> PrivateKernelExecutionProver<'a, N>
Create from component stores and node.
Sourcepub async fn prove_with_kernels(
&self,
execution_results: &[PrivateCallExecution],
) -> Result<KernelProvingResult, Error>
pub async fn prove_with_kernels( &self, execution_results: &[PrivateCallExecution], ) -> Result<KernelProvingResult, Error>
Execute the full kernel proving sequence for a transaction.
Takes the private execution results (from ACVM execution) and processes them through the kernel circuit sequence.
Auto Trait Implementations§
impl<'a, N> Freeze for PrivateKernelExecutionProver<'a, N>
impl<'a, N> !RefUnwindSafe for PrivateKernelExecutionProver<'a, N>
impl<'a, N> Send for PrivateKernelExecutionProver<'a, N>
impl<'a, N> Sync for PrivateKernelExecutionProver<'a, N>
impl<'a, N> Unpin for PrivateKernelExecutionProver<'a, N>
impl<'a, N> !UnwindSafe for PrivateKernelExecutionProver<'a, N>
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<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