Module ckb_types::core

source ·
Expand description

The essential rust types for CKB.

Packed bytes are not enough for all usage scenarios.

This module provides essential rust types.

Most of them is composed of those packed bytes or can convert between self and those bytes.

Re-exports§

Modules§

  • TODO(doc): @quake
  • The error types to unexpected out-points.
  • Hardfork-related configuration
  • Types for CKB services.
  • Tx-pool shared type define.

Macros§

Structs§

Enums§

  • Numeric errors.
  • The DepType enum represents different types of dependencies for cell_deps.
  • Specifies how the script code_hash is used to match the script code and how to run the code. The hash type is split into the high 7 bits and the low 1 bit, when the low 1 bit is 1, it indicates the type, when the low 1 bit is 0, it indicates the data, and then it relies on the high 7 bits to indicate that the data actually corresponds to the version.

Type Aliases§