Struct sov_rollup_interface::optimistic::ProofOfBond
source · pub struct ProofOfBond<StateProof> {
pub claimed_transition_num: u64,
pub proof: StateProof,
}
Expand description
A proof that the attester was bonded at the transition num transition_num
.
For rollups using the jmt
, this will be a jmt::SparseMerkleProof
Fields§
§claimed_transition_num: u64
The transition number for which the proof of bond applies
proof: StateProof
The actual state proof that the attester was bonded
Trait Implementations§
source§impl<StateProof> BorshDeserialize for ProofOfBond<StateProof>where
u64: BorshDeserialize,
StateProof: BorshDeserialize,
impl<StateProof> BorshDeserialize for ProofOfBond<StateProof>where u64: BorshDeserialize, StateProof: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<StateProof> BorshSerialize for ProofOfBond<StateProof>where
u64: BorshSerialize,
StateProof: BorshSerialize,
impl<StateProof> BorshSerialize for ProofOfBond<StateProof>where u64: BorshSerialize, StateProof: BorshSerialize,
source§impl<StateProof: Clone> Clone for ProofOfBond<StateProof>
impl<StateProof: Clone> Clone for ProofOfBond<StateProof>
source§fn clone(&self) -> ProofOfBond<StateProof>
fn clone(&self) -> ProofOfBond<StateProof>
Returns a copy 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<StateProof: Debug> Debug for ProofOfBond<StateProof>
impl<StateProof: Debug> Debug for ProofOfBond<StateProof>
source§impl<StateProof: Default> Default for ProofOfBond<StateProof>
impl<StateProof: Default> Default for ProofOfBond<StateProof>
source§fn default() -> ProofOfBond<StateProof>
fn default() -> ProofOfBond<StateProof>
Returns the “default value” for a type. Read more
source§impl<'de, StateProof> Deserialize<'de> for ProofOfBond<StateProof>where
StateProof: Deserialize<'de>,
impl<'de, StateProof> Deserialize<'de> for ProofOfBond<StateProof>where StateProof: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<StateProof: PartialEq> PartialEq<ProofOfBond<StateProof>> for ProofOfBond<StateProof>
impl<StateProof: PartialEq> PartialEq<ProofOfBond<StateProof>> for ProofOfBond<StateProof>
source§fn eq(&self, other: &ProofOfBond<StateProof>) -> bool
fn eq(&self, other: &ProofOfBond<StateProof>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<StateProof> Serialize for ProofOfBond<StateProof>where
StateProof: Serialize,
impl<StateProof> Serialize for ProofOfBond<StateProof>where StateProof: Serialize,
impl<StateProof: Eq> Eq for ProofOfBond<StateProof>
impl<StateProof> StructuralEq for ProofOfBond<StateProof>
impl<StateProof> StructuralPartialEq for ProofOfBond<StateProof>
Auto Trait Implementations§
impl<StateProof> RefUnwindSafe for ProofOfBond<StateProof>where StateProof: RefUnwindSafe,
impl<StateProof> Send for ProofOfBond<StateProof>where StateProof: Send,
impl<StateProof> Sync for ProofOfBond<StateProof>where StateProof: Sync,
impl<StateProof> Unpin for ProofOfBond<StateProof>where StateProof: Unpin,
impl<StateProof> UnwindSafe for ProofOfBond<StateProof>where StateProof: 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