Module zebra_chain::block
source ยท Expand description
Blocks and block-related structures (heights, headers, etc.)
Re-exportsยง
pub use arbitrary::LedgerState;
Modulesยง
- Randomised property testing for
Block
s. - commitment ๐The Commitment enum, used for the corresponding block header field.
- error ๐Errors that can occur when checking Block consensus rules.
- Regtest genesis block
- hash ๐
- header ๐The block header.
- height ๐Block height.
- The Bitcoin-inherited Merkle tree of transactions.
- serialize ๐Serialization and deserialization for Zcash blocks.
- Tests for Zebra blocks
Structsยง
- A Zcash block, containing a header and a list of transactions.
- A block commitment to chain history and transaction auth.
- The root hash of a Merkle Mountain Range chain history tree.
- A header with a count of the number of transactions in its block. This structure is used in the Bitcoin network protocol.
- A hash of a block, used to identify blocks and link blocks into a chain. โ๏ธ
- A block header, containing metadata about a block.
- The length of the chain back to the genesis block.
- A serialized block.
Enumsยง
- TODO: Use this error as the source for zebra_consensus::error::BlockError::Time, and make
BlockError::Time
add additional context. See https://github.com/ZcashFoundation/zebra/issues/1021 for more details. - Zcash blocks contain different kinds of commitments to their contents, depending on the network and height.
- Errors that can occur when checking RootHash consensus rules.
Constantsยง
- BLOC
K_ ๐HASH_ SIZE A serialized Block hash takes 32 bytes - The maximum size of a Zcash block, in bytes.
- The Zcash accepted block version.
Traitsยง
- Convenience trait for converting a type into a valid Zcash
Height
.
Type Aliasesยง
- A difference between two
Height
s, possibly negative.