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§

Traits§

  • Trait for obtaining an advanced builder for BlockView.
  • Trait for obtaining an advanced builder for HeaderView.
  • Trait for obtaining an advanced builder for TransactionView.
  • Trait for building a compact block from a BlockView.
  • Trait for calculating the extra hash of a block.
  • Trait for calculating difficulty.
  • An alias of from_slice(..) to mark where we are really have confidence to do unwrap on the result of from_slice(..).
  • Trait for converting types into BlockView.
  • Trait for converting types into HeaderView.
  • Trait for converting types into TransactionView.
  • Trait for converting types into UncleBlockView.
  • A syntactic sugar to convert a rust type into binary data.
  • A syntactic sugar to convert a vector of binary data into one binary data.
  • Trait for resetting the header of a packed block.
  • An alias of unwrap() to mark where we are really have confidence to do unwrap.
  • A syntactic sugar to convert binary data into rust types.

Functions§