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 - should be 0x20000000 except when versionbits signalling

Previous blockhash

Transaction Merkle root

Block timestamp

Block height

Block height

Trait Implementations

impl Clone for BlockHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BlockHeader
[src]

Formats the value using the given formatter. Read more

impl Default for BlockHeader
[src]

Returns the "default value" for a type. Read more

impl Eq for BlockHeader
[src]

impl Hash for BlockHeader
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for BlockHeader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: SimpleEncoder> ConsensusEncodable<S> for BlockHeader
[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockHeader
[src]

Decode an object with a well-defined format

impl BitcoinHash for BlockHeader
[src]

Produces a Sha256dHash which can be used to refer to the object

Auto Trait Implementations

impl Send for BlockHeader

impl Sync for BlockHeader