Struct sov_modules_api::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>( reader: &mut R ) -> Result<ProofOfBond<StateProof>, Error>where R: Read,
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 for ProofOfBond<StateProof>where
StateProof: Clone,
impl<StateProof> Clone for ProofOfBond<StateProof>where StateProof: Clone,
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 for ProofOfBond<StateProof>where
StateProof: Debug,
impl<StateProof> Debug for ProofOfBond<StateProof>where StateProof: Debug,
source§impl<StateProof> Default for ProofOfBond<StateProof>where
StateProof: Default,
impl<StateProof> Default for ProofOfBond<StateProof>where StateProof: Default,
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<ProofOfBond<StateProof>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ProofOfBond<StateProof>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<StateProof> PartialEq<ProofOfBond<StateProof>> for ProofOfBond<StateProof>where
StateProof: PartialEq<StateProof>,
impl<StateProof> PartialEq<ProofOfBond<StateProof>> for ProofOfBond<StateProof>where StateProof: PartialEq<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,
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
impl<StateProof> Eq for ProofOfBond<StateProof>where StateProof: Eq,
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