pub struct PrivateExecutionResult {
pub entrypoint: PrivateCallExecutionResult,
pub first_nullifier: Fr,
pub expiration_timestamp: u64,
pub public_function_calldata: Vec<HashedValues>,
}Expand description
Top-level result from private execution.
Matches TS PrivateExecutionResult.
Fields§
§entrypoint: PrivateCallExecutionResultThe entrypoint call execution result (root of the call tree).
first_nullifier: FrThe first nullifier (protocol nullifier / nonce generator).
expiration_timestamp: u64The minimum include-by timestamp enforced during private execution.
public_function_calldata: Vec<HashedValues>Calldata preimages for enqueued public calls.
Implementations§
Source§impl PrivateExecutionResult
impl PrivateExecutionResult
Sourcepub fn iter_all_calls(&self) -> Vec<&PrivateCallExecutionResult>
pub fn iter_all_calls(&self) -> Vec<&PrivateCallExecutionResult>
Iterate all call results in the execution tree (depth-first).
Sourcepub fn all_note_hashes(&self) -> Vec<&ScopedNoteHash>
pub fn all_note_hashes(&self) -> Vec<&ScopedNoteHash>
Collect all note hashes from the execution tree.
Sourcepub fn all_nullifiers(&self) -> Vec<&ScopedNullifier>
pub fn all_nullifiers(&self) -> Vec<&ScopedNullifier>
Collect all nullifiers from the execution tree.
Sourcepub fn all_note_hash_read_requests(&self) -> Vec<&ScopedReadRequest>
pub fn all_note_hash_read_requests(&self) -> Vec<&ScopedReadRequest>
Collect all note hash read requests.
Sourcepub fn all_nullifier_read_requests(&self) -> Vec<&ScopedReadRequest>
pub fn all_nullifier_read_requests(&self) -> Vec<&ScopedReadRequest>
Collect all nullifier read requests.
Sourcepub fn all_private_logs(&self) -> Vec<&PrivateLogData>
pub fn all_private_logs(&self) -> Vec<&PrivateLogData>
Collect all private logs from the execution tree.
Sourcepub fn all_contract_class_logs_sorted(&self) -> Vec<&CountedContractClassLog>
pub fn all_contract_class_logs_sorted(&self) -> Vec<&CountedContractClassLog>
Collect all contract class logs, sorted by counter.
Sourcepub fn all_public_call_requests(&self) -> Vec<&PublicCallRequestData>
pub fn all_public_call_requests(&self) -> Vec<&PublicCallRequestData>
Collect all public call requests from the execution tree.
Sourcepub fn get_teardown_call_request(&self) -> Option<&PublicCallRequestData>
pub fn get_teardown_call_request(&self) -> Option<&PublicCallRequestData>
Get the teardown call request (if any).
Sourcepub fn all_note_hash_nullifier_counter_maps(&self) -> HashMap<u32, u32>
pub fn all_note_hash_nullifier_counter_maps(&self) -> HashMap<u32, u32>
Collect the note hash -> nullifier counter map from all calls.
Trait Implementations§
Source§impl Clone for PrivateExecutionResult
impl Clone for PrivateExecutionResult
Source§fn clone(&self) -> PrivateExecutionResult
fn clone(&self) -> PrivateExecutionResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PrivateExecutionResult
impl RefUnwindSafe for PrivateExecutionResult
impl Send for PrivateExecutionResult
impl Sync for PrivateExecutionResult
impl Unpin for PrivateExecutionResult
impl UnwindSafe for PrivateExecutionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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