pub struct GlobalIndexWithLeafHash {
pub global_index: U256,
pub bridge_exit_hash: Digest,
}
Expand description
Refers to one claim as per its global index and the hash of the underlying bridge exit.
Fields§
§global_index: U256
Global index of the claimed bridge exit.
bridge_exit_hash: Digest
Hash of the claimed bridge exit.
Implementations§
Source§impl GlobalIndexWithLeafHash
impl GlobalIndexWithLeafHash
Sourcepub fn commitment(&self) -> Digest
pub fn commitment(&self) -> Digest
Compute the bridge exit commitment used for the hash chain.
Trait Implementations§
Source§impl Clone for GlobalIndexWithLeafHash
impl Clone for GlobalIndexWithLeafHash
Source§fn clone(&self) -> GlobalIndexWithLeafHash
fn clone(&self) -> GlobalIndexWithLeafHash
Returns a duplicate 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 Debug for GlobalIndexWithLeafHash
impl Debug for GlobalIndexWithLeafHash
Source§impl<'de> Deserialize<'de> for GlobalIndexWithLeafHash
impl<'de> Deserialize<'de> for GlobalIndexWithLeafHash
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 Serialize for GlobalIndexWithLeafHash
impl Serialize for GlobalIndexWithLeafHash
impl Copy for GlobalIndexWithLeafHash
Auto Trait Implementations§
impl Freeze for GlobalIndexWithLeafHash
impl RefUnwindSafe for GlobalIndexWithLeafHash
impl Send for GlobalIndexWithLeafHash
impl Sync for GlobalIndexWithLeafHash
impl Unpin for GlobalIndexWithLeafHash
impl UnwindSafe for GlobalIndexWithLeafHash
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