pub struct ProofInput {
pub escrow: Escrow,
pub chain: Chain,
pub agent_id: ID,
pub escrow_id: u64,
}Expand description
The private input handed to the guest: the full escrow context plus the on-chain identifiers needed to bind the proof to a specific settlement.
Fields§
§escrow: EscrowThe escrow whose conditions the guest verifies.
chain: ChainNetwork the escrow settles on.
agent_id: IDOn-chain escrow program id (Solana) or contract address (Ethereum).
escrow_id: u64Unique on-chain identifier for this escrow instance.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ProofInput
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ProofInput
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ProofInput
impl Clone for ProofInput
Source§fn clone(&self) -> ProofInput
fn clone(&self) -> ProofInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProofInput
impl Debug for ProofInput
Source§impl<__Context> Decode<__Context> for ProofInput
impl<__Context> Decode<__Context> for ProofInput
Auto Trait Implementations§
impl Freeze for ProofInput
impl RefUnwindSafe for ProofInput
impl Send for ProofInput
impl Sync for ProofInput
impl Unpin for ProofInput
impl UnsafeUnpin for ProofInput
impl UnwindSafe for ProofInput
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