Module ckb_types::core[][src]

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.

Modules

TODO(doc): @quake

The error types to unexpected out-points.

Hard forks related types.

Types for CKB services.

Tx-pool shared type define.

Macros

TODO(doc): @keroro520

Structs

An advanced builder for BlockView.

Includes the rewards details for a block and when the block is finalized.

TODO(doc): @quake

Native token issuance.

Details of miner rewards issued by block cellbase transaction.

A readonly and immutable struct which includes Block and its associated hashes.

CKB capacity.

TODO(doc): @quake

Represents an epoch number with a fraction unit, it can be used to accurately represent the position for a block within an epoch.

A readonly and immutable struct which includes extra hash and the decoupled parts of it.

shannons per kilobytes

An advanced builder for HeaderView.

A readonly and immutable struct which includes Header and its hash.

Miner reward.

Represents the ratio numerator / denominator, where numerator and denominator are both unsigned 64-bit integers.

Represents the ratio numerator / denominator, where numerator and denominator are both unsigned 256-bit integers.

An advanced builder for TransactionView.

TODO(doc): @quake

TODO(doc): @quake

TODO(doc): @quake

A readonly and immutable struct which includes Transaction and its associated hashes.

A readonly and immutable struct which includes a vector of UncleBlocks and their hashes.

A readonly and immutable struct which includes UncleBlock and its hash.

Enums

TODO(doc): @quake

Specifies how the script code_hash is used to match the script code and how to run the code.

Type Definitions

Block number.

Numeric operation result.

Cycle number.

Epoch number.

Public key. It’s a 512 bits fixed binary data.

Version number.