Safe Haskell | None |
---|---|
Language | Haskell98 |
Bitcoin.Protocol.Difficulty
Description
Difficulty computation. See https://en.bitcoin.it/wiki/Difficulty
Documentation
difficultyTarget :: Word32 -> Hash256 Source #
Computes the target from the packed difficulty representation
maximalTarget :: Hash256 Source #
The highest (easiest) target
decimalDifficulty :: Word32 -> Double Source #
Computes the decimal difficulty from the packed representation
targetDecimalDifficulty :: Hash256 -> Double Source #
Computes the decimal difficulty from a target