Bitcoin Difficulty Utilities. Copyright (c) 2013 Alexander Færøy
Authors: Alexander Færøy (ahf@0x90.dk
).
This module contains utilities for calculating the Bitcoin difficulty.
uint32_t() = peculium_core_types:uint32_t()
block_work/1 | Calculates the amount of block work from the compact bits representation. |
from_bits/1 | Calculates the difficulty from the compact bits representation. |
max_difficulty/0 | Returns the max difficulty. |
target/1 | Calculates the target from the compact bits. |
block_work(Bits::uint32_t()) -> number()
Calculates the amount of block work from the compact bits representation.
from_bits(Bits::uint32_t()) -> number()
Calculates the difficulty from the compact bits representation.
max_difficulty() -> number()
target(Bits::uint32_t()) -> number()
Calculates the target from the compact bits.