# Functions
BigToCompact converts a whole number N to a compact representation using an unsigned 32-bit number.
CalcWork calculates a work value from difficulty bits.
CompactToBig converts a compact representation of a whole number N to an unsigned 32-bit number.
HashToBig converts a chainhash.Hash into a big.Int that can be used to perform math comparisons.