pub struct TxProvingResult {
pub tx_hash: Option<TxHash>,
pub private_execution_result: Value,
pub public_inputs: PrivateKernelTailCircuitPublicInputs,
pub chonk_proof: ChonkProof,
pub contract_class_log_fields: Vec<ContractClassLogFields>,
pub public_function_calldata: Vec<HashedValues>,
pub stats: Option<Value>,
}Expand description
Result of proving a transaction via the PXE.
Mirrors the upstream stdlib proving result shape closely enough for the
wallet to materialize the node-facing Tx envelope.
Fields§
§tx_hash: Option<TxHash>Canonical tx hash computed from the tail public inputs.
private_execution_result: ValueStructured private execution result.
public_inputs: PrivateKernelTailCircuitPublicInputsSerialized private-kernel tail public inputs.
chonk_proof: ChonkProofSerialized chonk proof.
contract_class_log_fields: Vec<ContractClassLogFields>Contract-class log preimages.
public_function_calldata: Vec<HashedValues>Calldata preimages for enqueued public calls.
stats: Option<Value>Optional proving or profiling stats.
Implementations§
Source§impl TxProvingResult
impl TxProvingResult
Sourcepub fn to_tx(&self) -> Tx
pub fn to_tx(&self) -> Tx
Convert the proving result into the node-facing transaction payload.
This matches upstream TxProvingResult.toTx() semantics:
- Contract class log fields are included as-is (already collected/sorted by the prover)
- Public function calldata preimages are included for hash verification
- The tx hash would be computed from the public inputs (done by the node)
Trait Implementations§
Source§impl Clone for TxProvingResult
impl Clone for TxProvingResult
Source§fn clone(&self) -> TxProvingResult
fn clone(&self) -> TxProvingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TxProvingResult
impl Debug for TxProvingResult
Source§impl Default for TxProvingResult
impl Default for TxProvingResult
Source§fn default() -> TxProvingResult
fn default() -> TxProvingResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TxProvingResult
impl<'de> Deserialize<'de> for TxProvingResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TxProvingResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TxProvingResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TxProvingResult
impl Serialize for TxProvingResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TxProvingResult
impl RefUnwindSafe for TxProvingResult
impl Send for TxProvingResult
impl Sync for TxProvingResult
impl Unpin for TxProvingResult
impl UnwindSafe for TxProvingResult
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> 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>
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