Struct elements::BlockHeader [−][src]
pub struct BlockHeader { pub version: u32, pub prev_block: Sha256dHash, pub merkle_root: Sha256dHash, pub time: u32, pub height: u32, pub proof: Proof, }
Elements block header
Fields
version: u32
Version - should be 0x20000000 except when versionbits signalling
prev_block: Sha256dHash
Previous blockhash
merkle_root: Sha256dHash
Transaction Merkle root
time: u32
Block timestamp
height: u32
Block height
proof: Proof
Block height
Trait Implementations
impl Clone for BlockHeader
[src]
impl Clone for BlockHeader
fn clone(&self) -> BlockHeader
[src]
fn clone(&self) -> BlockHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for BlockHeader
[src]
impl Debug for BlockHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for BlockHeader
[src]
impl Default for BlockHeader
fn default() -> BlockHeader
[src]
fn default() -> BlockHeader
Returns the "default value" for a type. Read more
impl Eq for BlockHeader
[src]
impl Eq for BlockHeader
impl Hash for BlockHeader
[src]
impl Hash for BlockHeader
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for BlockHeader
[src]
impl PartialEq for BlockHeader
fn eq(&self, other: &BlockHeader) -> bool
[src]
fn eq(&self, other: &BlockHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BlockHeader) -> bool
[src]
fn ne(&self, other: &BlockHeader) -> bool
This method tests for !=
.
impl<S: SimpleEncoder> ConsensusEncodable<S> for BlockHeader
[src]
impl<S: SimpleEncoder> ConsensusEncodable<S> for BlockHeader
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockHeader
[src]
impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockHeader
fn consensus_decode(d: &mut D) -> Result<BlockHeader, Error>
[src]
fn consensus_decode(d: &mut D) -> Result<BlockHeader, Error>
Decode an object with a well-defined format
impl BitcoinHash for BlockHeader
[src]
impl BitcoinHash for BlockHeader
fn bitcoin_hash(&self) -> Sha256dHash
[src]
fn bitcoin_hash(&self) -> Sha256dHash
Produces a Sha256dHash which can be used to refer to the object
Auto Trait Implementations
impl Send for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Sync for BlockHeader