bitcoin-hs-0.0.1: Partial implementation of the Bitcoin protocol (as of 2013)

Safe HaskellNone
LanguageHaskell98

Bitcoin.Protocol.Difficulty

Description

Difficulty computation. See https://en.bitcoin.it/wiki/Difficulty

Synopsis

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