pub struct DepositDetectorDataIntegrityShardingSubReport {
pub merkle_proof: Vec<u8>,
pub data_digest: [u8; 32],
pub merkle_node_count: u32,
pub index: u32,
pub total_deposit_tx_count: u32,
}
Fields§
§merkle_proof: Vec<u8>
§data_digest: [u8; 32]
The data digest of the sharding report
merkle_node_count: u32
The merkle node count of the data integrity merkle tree
index: u32
Index of deposit detector data integrity in merkle tree
total_deposit_tx_count: u32
Total count deposit tx in deposit detector sharding sub report
Implementations§
source§impl DepositDetectorDataIntegrityShardingSubReport
impl DepositDetectorDataIntegrityShardingSubReport
pub fn merkle_verify(&self, merkle_root: &MerkleRoot) -> bool
Trait Implementations§
source§impl Clone for DepositDetectorDataIntegrityShardingSubReport
impl Clone for DepositDetectorDataIntegrityShardingSubReport
source§fn clone(&self) -> DepositDetectorDataIntegrityShardingSubReport
fn clone(&self) -> DepositDetectorDataIntegrityShardingSubReport
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 Default for DepositDetectorDataIntegrityShardingSubReport
impl Default for DepositDetectorDataIntegrityShardingSubReport
source§fn default() -> DepositDetectorDataIntegrityShardingSubReport
fn default() -> DepositDetectorDataIntegrityShardingSubReport
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DepositDetectorDataIntegrityShardingSubReport
impl<'de> Deserialize<'de> for DepositDetectorDataIntegrityShardingSubReport
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 PartialEq for DepositDetectorDataIntegrityShardingSubReport
impl PartialEq for DepositDetectorDataIntegrityShardingSubReport
source§fn eq(&self, other: &DepositDetectorDataIntegrityShardingSubReport) -> bool
fn eq(&self, other: &DepositDetectorDataIntegrityShardingSubReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Storable for DepositDetectorDataIntegrityShardingSubReport
impl Storable for DepositDetectorDataIntegrityShardingSubReport
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for DepositDetectorDataIntegrityShardingSubReport
impl StructuralPartialEq for DepositDetectorDataIntegrityShardingSubReport
Auto Trait Implementations§
impl Freeze for DepositDetectorDataIntegrityShardingSubReport
impl RefUnwindSafe for DepositDetectorDataIntegrityShardingSubReport
impl Send for DepositDetectorDataIntegrityShardingSubReport
impl Sync for DepositDetectorDataIntegrityShardingSubReport
impl Unpin for DepositDetectorDataIntegrityShardingSubReport
impl UnwindSafe for DepositDetectorDataIntegrityShardingSubReport
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