ckb_types

Module utilities

Source
Expand description

Types utilities.

Modules§

merkle_mountain_range
Types for variable difficulty Merkle Mountain Range (MMR) in CKB.

Structs§

MergeByte32
TODO(doc): @quake

Constants§

DIFF_TWO
The minimal difficulty that can be represented in the compact format.

Traits§

FilterDataProvider
Provides data for building block filter data.

Functions§

build_filter_data
Builds filter data for transactions.
calc_filter_hash
Calculates a block filter hash.
compact_to_difficulty
Converts compact format of difficulty to the decoded difficulty.
compact_to_target
Converts compact format of difficulty to PoW target.
difficulty_to_compact
Converts difficulty into the compact format.
merkle_root
TODO(doc): @quake
target_to_compact
Converts PoW target into compact format of difficulty.

Type Aliases§

CBMT
TODO(doc): @quake
MerkleProof
TODO(doc): @quake