Struct exonum::blockchain::Block [] [src]

pub struct Block { /* fields omitted */ }

Exonum block header data structure.

Block is essentially a list of transactions, which is a result of the consensus algorithm (thus authenticated by the supermajority of validators) and is applied atomically to the blockchain state.

Header only contains the amount of transactions and the transactions root hash as well as other information, but not the transactions themselves.

Methods

impl Block
[src]

[src]

Creates a new instance with given parameters.

[src]

Information schema version.

[src]

Block proposer id.

[src]

Height of the committed block

[src]

Number of transactions in block.

[src]

Hash link to the previous block in blockchain.

[src]

Root hash of merkle tree of current block transactions.

[src]

Hash of the current exonum state after applying transactions in the block.

Trait Implementations

impl Clone for Block
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Block
[src]

[src]

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

[src]

This method tests for !=.

impl<'a> Field<'a> for Block
[src]

[src]

Read Field from buffer, with given position, beware of memory unsafety, you should check Field before read. Read more

[src]

Write Field to buffer, in given position write doesn't lead to memory unsafety. Read more

[src]

Checks if data in the buffer could be deserialized. Returns an index of latest data seen. Read more

[src]

Field's header size

impl CryptoHash for Block
[src]

[src]

Returns a hash of the value. Read more

impl StorageValue for Block
[src]

Important traits for Vec<u8>
[src]

Serialize a value into a vector of bytes.

[src]

Deserialize a value from bytes.

impl Debug for Block
[src]

[src]

Formats the value using the given formatter. Read more

impl ExonumJson for Block
[src]

[src]

write deserialized field in buffer on place.

[src]

serialize field as json::Value

impl ExonumJsonDeserialize for Block
[src]

[src]

deserialize json value.

impl<'de> Deserialize<'de> for Block
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Block
[src]

[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Block

impl Sync for Block