Structs§
- Block
Template - BlockTemplate: Interface for mining software
Enums§
- Mining
Result - Result of mining attempt
Functions§
- calculate_
merkle_ root - Calculate merkle root using proper Bitcoin Merkle tree construction
- calculate_
merkle_ root_ from_ tx_ ids - Build merkle tree from pre-computed leaf hashes.
- compute_
merkle_ root_ and_ mutated - Compute merkle root and CVE-2012-2459 mutation flag without aborting on mutation.
Matches Bitcoin Core’s
ComputeMerkleRoot(leaves, &mutated)— always returns a root. Callers decide policy:CheckBlockrejects mutated blocks;ConnectBlockmay skip the check for already-accepted blocks. - create_
block_ template - Create a block template for mining
- create_
new_ block - CreateNewBlock: 𝒰𝒮 × 𝒯𝒳* → ℬ
- create_
new_ block_ with_ time - CreateNewBlock variant that accepts an explicit block_time.
- mine_
block - MineBlock: ℬ × ℕ → ℬ × {success, failure}