pub struct BlockHeaderWire {
pub height: u64,
pub hash: HashHex,
pub parent_hash: HashHex,
pub timestamp: u64,
pub proposer: PubkeyHex,
pub state_root: HashHex,
pub receipts_root: HashHex,
pub weight: u64,
pub total_iters: u128,
pub signature: SignatureHex,
}Expand description
Block header in wire form.
Fields§
§height: u64L2 block height.
hash: HashHexCanonical hash of this header.
parent_hash: HashHexParent block hash.
timestamp: u64Unix timestamp (seconds).
proposer: PubkeyHexProposer’s BLS public key.
state_root: HashHexCoin-state SMT root at the end of this block.
receipts_root: HashHexTransaction-receipts root.
weight: u64Cumulative attestation weight.
total_iters: u128Chia-style cumulative iteration count (128 bits).
signature: SignatureHexProposer’s signature over the header’s canonical preimage.
Trait Implementations§
Source§impl Clone for BlockHeaderWire
impl Clone for BlockHeaderWire
Source§fn clone(&self) -> BlockHeaderWire
fn clone(&self) -> BlockHeaderWire
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 BlockHeaderWire
impl Debug for BlockHeaderWire
Source§impl<'de> Deserialize<'de> for BlockHeaderWire
impl<'de> Deserialize<'de> for BlockHeaderWire
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
Auto Trait Implementations§
impl Freeze for BlockHeaderWire
impl RefUnwindSafe for BlockHeaderWire
impl Send for BlockHeaderWire
impl Sync for BlockHeaderWire
impl Unpin for BlockHeaderWire
impl UnsafeUnpin for BlockHeaderWire
impl UnwindSafe for BlockHeaderWire
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