Module floresta_chain::pruned_utreexo::consensus
source · Expand description
A collection of functions that implement the consensus rules for the Bitcoin Network. This module contains functions that are used to verify blocks and transactions, and doesn’t assume anything about the chainstate, so it can be used in any context. We use this to avoid code reuse among the different implementations of the chainstate.
Structs
- This struct contains all the information and methods needed to validate a block, it is used by the [ChainState] to validate blocks and transactions.
Constants
- The value of a single coin in satoshis.
- The version tag to be prepended to the leafhash. It’s just the sha512 hash of the string
UtreexoV1
represented as a vector of u8 ([85 116 114 101 101 120 111 86 49]). The same tag is “5574726565786f5631” as a hex string.