Skip to main content

Module pow

Module pow 

Source

Structs§

U256
256-bit integer for Bitcoin target calculations

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_next_work_required
GetNextWorkRequired: ℋ × ℋ* → ℕ
get_next_work_required_corrected
GetNextWorkRequired (Corrected): ℋ × ℋ* → ℕ