Skip to main content

Module pow

Module pow 

Source

Structs§

U256
256-bit integer for Bitcoin target / chainwork calculations (256-bit limb layout).

Functions§

batch_check_proof_of_work
Batch check proof of work for multiple headers
check_proof_of_work
CheckProofOfWork: ℋ → {true, false}
difficulty_from_bits
Convert compact target bits to human-readable difficulty (MAX_TARGET / target).
expand_target
Expand target from compact representation
get_block_proof
Per-block chainwork contribution (Orange Paper §11.3 / GetBlockProof).
get_next_work_required
GetNextWorkRequired: ℋ × ℋ* → ℕ
get_next_work_required_corrected
GetNextWorkRequired (Corrected): ℋ × ℋ* → ℕ