Expand description
Blocks and block-related structures (heights, headers, etc.)
Re-exports§
pub use arbitrary::LedgerState;
Modules§
- arbitrary
- 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.
- genesis
- Regtest genesis block
- hash 🔒
- header 🔒
- The block header.
- height 🔒
- Block height.
- merkle
- The Bitcoin-inherited Merkle tree of transactions.
- serialize 🔒
- Serialization and deserialization for Zcash blocks.
- tests
- Tests for Zebra blocks
Structs§
- Block
- A Zcash block, containing a header and a list of transactions.
- Chain
History Block TxAuth Commitment Hash - A block commitment to chain history and transaction auth.
- Chain
History MmrRoot Hash - The root hash of a Merkle Mountain Range chain history tree.
- Counted
Header - A header with a count of the number of transactions in its block. This structure is used in the Bitcoin network protocol.
- Hash
- A hash of a block, used to identify blocks and link blocks into a chain. ⛓️
- Header
- A block header, containing metadata about a block.
- Height
- The length of the chain back to the genesis block.
- Serialized
Block - A serialized block.
Enums§
- Block
Time Error - 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. - Commitment
- Zcash blocks contain different kinds of commitments to their contents, depending on the network and height.
- Commitment
Error - Errors that can occur when checking RootHash consensus rules.
Constants§
- BLOCK_
HASH_ 🔒SIZE - A serialized Block hash takes 32 bytes
- MAX_
BLOCK_ BYTES - The maximum size of a Zcash block, in bytes.
- ZCASH_
BLOCK_ VERSION - The Zcash accepted block version.
Traits§
- TryInto
Height - Convenience trait for converting a type into a valid Zcash
Height
.
Type Aliases§
- Height
Diff - A difference between two
Height
s, possibly negative.