pub struct StateProofVerifier;Expand description
Verifier for state proofs (object existence/ownership).
Implementations§
Source§impl StateProofVerifier
impl StateProofVerifier
Sourcepub fn verify_object_exists(
object_id: [u8; 32],
rpc: &dyn SuiRpc,
) -> SuiResult<Option<SuiObject>>
pub fn verify_object_exists( object_id: [u8; 32], rpc: &dyn SuiRpc, ) -> SuiResult<Option<SuiObject>>
Verify that an object exists on-chain.
§Arguments
object_id- The object ID to checkrpc- RPC client for fetching object data
Sourcepub fn verify_object_consumed(
object_id: [u8; 32],
rpc: &dyn SuiRpc,
) -> SuiResult<bool>
pub fn verify_object_consumed( object_id: [u8; 32], rpc: &dyn SuiRpc, ) -> SuiResult<bool>
Verify that an object has been consumed (deleted).
§Arguments
object_id- The object ID to checkrpc- RPC client for fetching object data
Sourcepub fn verify_object_consumed_in_tx(
tx_digest: [u8; 32],
object_id: [u8; 32],
rpc: &dyn SuiRpc,
) -> SuiResult<bool>
pub fn verify_object_consumed_in_tx( tx_digest: [u8; 32], object_id: [u8; 32], rpc: &dyn SuiRpc, ) -> SuiResult<bool>
Verify that a transaction consumed a specific object.
§Arguments
tx_digest- The transaction digestobject_id- The object ID that should have been consumedrpc- RPC client for fetching transaction data
Auto Trait Implementations§
impl Freeze for StateProofVerifier
impl RefUnwindSafe for StateProofVerifier
impl Send for StateProofVerifier
impl Sync for StateProofVerifier
impl Unpin for StateProofVerifier
impl UnsafeUnpin for StateProofVerifier
impl UnwindSafe for StateProofVerifier
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