Expand description
Bitcoin blocks.
A block is a bundle of transactions with a proof-of-work attached, which commits to an earlier block to form the blockchain. This module describes structures and functions needed to describe these blocks and the blockchain.
Structs§
- Block
- Bitcoin block.
- Block
Decoder - The decoder for the
Blocktype. - Block
Decoder Error - An error consensus decoding a
Block. - Block
Encoder - The encoder for the
Blocktype. - Block
Hash - A bitcoin block hash.
- Block
Hash Decoder - The decoder for the
BlockHashtype. - Block
Hash Decoder Error - An error consensus decoding a
BlockHash. - Block
Hash Encoder - The encoder for the
BlockHashtype. - Header
- Bitcoin block header.
- Header
Decoder - The decoder for the
Headertype. - Header
Encoder - The encoder for the
Headertype. - TxMerkle
Node - A hash of the Merkle tree branch or root for transactions.
- TxMerkle
Node Decoder - The decoder for the
TxMerkleNodetype. - TxMerkle
Node Decoder Error - An error consensus decoding an
TxMerkleNode. - TxMerkle
Node Encoder - The encoder for the
TxMerkleNodetype. - Version
- Bitcoin block version number.
- Version
Decoder - The decoder for the
Versiontype. - Version
Decoder Error - An error consensus decoding an
Version. - Version
Encoder - The encoder for the
Versiontype. - Witness
Commitment - A hash corresponding to the witness structure commitment in the coinbase transaction.
- Witness
Merkle Node - A hash corresponding to the Merkle tree root for witness data.
- Witness
Merkle Node Decoder - The decoder for the
WitnessMerkleNodetype. - Witness
Merkle Node Decoder Error - An error consensus decoding an
WitnessMerkleNode. - Witness
Merkle Node Encoder - The encoder for the
WitnessMerkleNodetype.
Enums§
- Bip34
Error - An error when looking up a BIP34 block height.
- Header
Decoder Error - An error consensus decoding a
Header. - Validation
Error - A block validation error.