pub struct WalletRegistryDataIntegrityShardingSubReport {
pub merkle_proof: Vec<u8>,
pub data_digest: [u8; 32],
pub merkle_node_count: u32,
pub index: u32,
pub total_register_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 wallet registry data integrity in merkle tree
total_register_tx_count: u32
Total count wallet register tx in wallet registry sharding sub report
Implementations§
source§impl WalletRegistryDataIntegrityShardingSubReport
impl WalletRegistryDataIntegrityShardingSubReport
pub fn merkle_verify(&self, merkle_root: &MerkleRoot) -> bool
Trait Implementations§
source§impl Clone for WalletRegistryDataIntegrityShardingSubReport
impl Clone for WalletRegistryDataIntegrityShardingSubReport
source§fn clone(&self) -> WalletRegistryDataIntegrityShardingSubReport
fn clone(&self) -> WalletRegistryDataIntegrityShardingSubReport
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 WalletRegistryDataIntegrityShardingSubReport
impl Default for WalletRegistryDataIntegrityShardingSubReport
source§fn default() -> WalletRegistryDataIntegrityShardingSubReport
fn default() -> WalletRegistryDataIntegrityShardingSubReport
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WalletRegistryDataIntegrityShardingSubReport
impl<'de> Deserialize<'de> for WalletRegistryDataIntegrityShardingSubReport
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 WalletRegistryDataIntegrityShardingSubReport
impl PartialEq for WalletRegistryDataIntegrityShardingSubReport
source§fn eq(&self, other: &WalletRegistryDataIntegrityShardingSubReport) -> bool
fn eq(&self, other: &WalletRegistryDataIntegrityShardingSubReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Storable for WalletRegistryDataIntegrityShardingSubReport
impl Storable for WalletRegistryDataIntegrityShardingSubReport
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 WalletRegistryDataIntegrityShardingSubReport
impl StructuralPartialEq for WalletRegistryDataIntegrityShardingSubReport
Auto Trait Implementations§
impl Freeze for WalletRegistryDataIntegrityShardingSubReport
impl RefUnwindSafe for WalletRegistryDataIntegrityShardingSubReport
impl Send for WalletRegistryDataIntegrityShardingSubReport
impl Sync for WalletRegistryDataIntegrityShardingSubReport
impl Unpin for WalletRegistryDataIntegrityShardingSubReport
impl UnwindSafe for WalletRegistryDataIntegrityShardingSubReport
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