[][src]Struct casper_node::types::Block

pub struct Block { /* fields omitted */ }

A proto-block after execution, with the resulting post-state-hash. This is the core component of the Casper linear blockchain.

Implementations

impl Block[src]

pub fn hash(&self) -> &BlockHash[src]

The hash of this block's header.

pub fn deploy_hashes(&self) -> &Vec<DeployHash>[src]

The deploy hashes included in this block.

pub fn height(&self) -> u64[src]

The height of a block.

pub fn proofs(&self) -> &BTreeMap<PublicKey, Signature>[src]

Provide proofs for an OpenRPC compatible representation.

pub fn verify(&self) -> Result<(), BlockValidationError>[src]

Check the integrity of a block by hashing its body and header

Trait Implementations

impl Clone for Block[src]

impl DataSize for Block[src]

impl Debug for Block[src]

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

impl Display for Block[src]

impl DocExample for Block[src]

impl Eq for Block[src]

impl From<Block> for JsonBlock[src]

impl From<JsonBlock> for Block[src]

impl FromBytes for Block[src]

impl Hash for Block[src]

impl Item for Block[src]

type Id = BlockHash

The type of ID of the item.

impl Ord for Block[src]

impl PartialEq<Block> for Block[src]

impl PartialOrd<Block> for Block[src]

impl Serialize for Block[src]

impl StructuralEq for Block[src]

impl StructuralPartialEq for Block[src]

impl ToBytes for Block[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]