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>
impl<StateProof> BorshDeserialize for ProofOfBond<StateProof>
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>
impl<StateProof> BorshSerialize for ProofOfBond<StateProof>
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 for ProofOfBond<StateProof>
impl<StateProof: PartialEq> PartialEq for ProofOfBond<StateProof>
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> StructuralPartialEq for ProofOfBond<StateProof>
Auto Trait Implementations§
impl<StateProof> Freeze for ProofOfBond<StateProof>where
StateProof: Freeze,
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