[][src]Module nakamoto_common::block

Modules

genesis
store
time
tree

Structs

Block

A Bitcoin block, which is a collection of transactions with an attached proof of work.

BlockHash

A bitcoin block hash.

BlockHeader

A block header, which contains all the block's information except the actual transactions

CachedBlock
Transaction

A Bitcoin transaction, which describes an authenticated movement of coins.

Functions

locators_indexes

Get the locator indexes starting from a given height, and going backwards, exponentially backing off.

target_from_bits

Convert a compact difficulty representation to 256-bits. Taken from BlockHeader::target from the bitcoin library.

Type Definitions

Bits

Compact difficulty bits (target) of a block.

Height

Height of a block.

Target

Difficulty target of a block.

Time

Block timestamp.

Work

Block work.