Struct ethcore::header::Header [] [src]

pub struct Header { /* fields omitted */ }

A block header.

Reflects the specific RLP fields of a block in the chain with additional room for the seal which is non-specific.

Doesn't do all that much on its own.

Methods

impl Header
[src]

Create a new, default-valued, header.

Get the parent_hash field of the header.

Get the timestamp field of the header.

Get the number field of the header.

Get the author field of the header.

Get the extra data field of the header.

Get the state root field of the header.

Get the receipts root field of the header.

Get the log bloom field of the header.

Get the transactions root field of the header.

Get the uncles hash field of the header.

Get the gas used field of the header.

Get the gas limit field of the header.

Get the difficulty field of the header.

Important traits for &'a [u8]

Get the seal field of the header.

Get the seal field with RLP-decoded values as bytes.

Set the number field of the header.

Set the uncles hash field of the header.

Set the state root field of the header.

Set the transactions root field of the header.

Set the receipts root field of the header.

Set the log bloom field of the header.

Set the timestamp field of the header.

Set the number field of the header.

Set the author field of the header.

Set the extra data field of the header.

Set the gas used field of the header.

Set the gas limit field of the header.

Set the difficulty field of the header.

Set the seal field of the header.

Get & memoize the hash of this header (keccak of the RLP with seal).

Get the hash of this header (keccak of the RLP with seal).

Get the hash of the header excluding the seal

Encode the header, getting a type-safe wrapper around the RLP.

Trait Implementations

impl Debug for Header
[src]

Formats the value using the given formatter. Read more

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Header
[src]

impl PartialEq for Header
[src]

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

This method tests for !=.

impl Default for Header
[src]

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

impl Decodable for Header
[src]

Decode a value from RLP bytes

impl Encodable for Header
[src]

Append a value to the stream

Get rlp-encoded bytes for this instance

impl HeapSizeOf for Header
[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

impl Header for Header
[src]

Cryptographic hash of the header, excluding the seal.

Cryptographic hash of the header, including the seal.

Important traits for &'a [u8]

Get a reference to the seal fields.

The author of the header.

The number of the header.

impl ScoredHeader for Header
[src]

Get the score of this header.

Set the score of this header.

impl BlockLike for Header
[src]

Get the hash of this item.

Get the hash of this item's parent.

Get the difficulty of this item.

Auto Trait Implementations

impl Send for Header

impl Sync for Header