ckb_types

Module prelude

Source
Expand description

This module includes several traits.

Few traits are re-exported from other crates, few are used as aliases and others are syntactic sugar.

Re-exports§

pub use crate::utilities::merkle_mountain_range::ProverMessageBuilder;

Traits§

AsBlockBuilder
Trait for obtaining an advanced builder for BlockView.
AsHeaderBuilder
Trait for obtaining an advanced builder for HeaderView.
AsTransactionBuilder
Trait for obtaining an advanced builder for TransactionView.
BuildCompactBlock
Trait for building a compact block from a BlockView.
Builder
CalcExtraHash
Trait for calculating the extra hash of a block.
Difficulty
Trait for calculating difficulty.
Entity
FromSliceShouldBeOk
An alias of from_slice(..) to mark where we are really have confidence to do unwrap on the result of from_slice(..).
IntoBlockView
Trait for converting types into BlockView.
IntoHeaderView
Trait for converting types into HeaderView.
IntoTransactionView
Trait for converting types into TransactionView.
IntoUncleBlockView
Trait for converting types into UncleBlockView.
Pack
A syntactic sugar to convert a rust type into binary data.
PackVec
A syntactic sugar to convert a vector of binary data into one binary data.
Reader
ResetBlock
Trait for resetting the header of a packed block.
ShouldBeOk
An alias of unwrap() to mark where we are really have confidence to do unwrap.
Unpack
A syntactic sugar to convert binary data into rust types.

Functions§

hex_string