pub struct OfflineExecution<N: Network> { /* private fields */ }
Expand description
Offline Execution of a single program function
Implementations§
source§impl<N: Network> OfflineExecution<N>
impl<N: Network> OfflineExecution<N>
sourcepub fn execution_id(&self) -> Result<Field<N>>
pub fn execution_id(&self) -> Result<Field<N>>
Get the execution id
sourcepub fn execution_proof(&self) -> Option<&Proof<N>>
pub fn execution_proof(&self) -> Option<&Proof<N>>
Get the execution proof
sourcepub fn verifying_key(&self) -> &VerifyingKey<N>
pub fn verifying_key(&self) -> &VerifyingKey<N>
Get the verifying key
sourcepub fn public_outputs(&self) -> Option<Vec<Value<N>>>
pub fn public_outputs(&self) -> Option<Vec<Value<N>>>
Get public outputs
sourcepub fn verify_execution(
execution: &Execution<N>,
program: &Program<N>,
function_name: impl TryInto<Identifier<N>>,
verifying_key: &VerifyingKey<N>
) -> Result<()>
pub fn verify_execution( execution: &Execution<N>, program: &Program<N>, function_name: impl TryInto<Identifier<N>>, verifying_key: &VerifyingKey<N> ) -> Result<()>
Verify the execution against the given verifier inputs and program verifying key
Trait Implementations§
Auto Trait Implementations§
impl<N> RefUnwindSafe for OfflineExecution<N>where
N: UnwindSafe + RefUnwindSafe,
<N as Network>::BlockHash: UnwindSafe + RefUnwindSafe,
<N as Environment>::Field: UnwindSafe + RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
<N as Environment>::Projective: UnwindSafe + RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
<N as Network>::StateRoot: UnwindSafe + RefUnwindSafe,
<N as Network>::TransactionID: UnwindSafe + RefUnwindSafe,
<N as Network>::TransitionID: RefUnwindSafe,
impl<N> Send for OfflineExecution<N>
impl<N> Sync for OfflineExecution<N>
impl<N> Unpin for OfflineExecution<N>where
N: Unpin,
<N as Network>::BlockHash: Unpin,
<N as Environment>::Field: Unpin,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
<N as Network>::StateRoot: Unpin,
<N as Network>::TransactionID: Unpin,
<N as Network>::TransitionID: Unpin,
impl<N> UnwindSafe for OfflineExecution<N>where
N: UnwindSafe,
<N as Network>::BlockHash: UnwindSafe,
<N as Environment>::Field: UnwindSafe + RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
<N as Network>::StateRoot: UnwindSafe,
<N as Network>::TransactionID: UnwindSafe,
<N as Network>::TransitionID: 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