package
0.16.0
Repository: https://github.com/bitmark-inc/bitmarkd.git
Documentation: pkg.go.dev

# Functions

Hashrate - calculate hashrate from current difficulty, rounded to 3 digits.
New - create a difficulty with the largest possible value which is the easiest for the miners and has the fewest leading zeros.
NextDifficultyByPreviousTimespan - next difficulty calculated by previous timespan.
PrevTimespanBlockBeginAndEnd - previous begin & end block of difficulty timespan.

# Constants

the default values.
the default values.
the default values.

# Variables

Current - current difficulty.

# Structs

Difficulty - Type for difficulty bits is encoded as: 8 bit exponent, 57 bit mantissa normalised so msb is '1' and omitted mantissa is shifted by exponent+8 examples: the "One" value: 00 ff ff ff ff ff ff ff represents the 256 bit value: 00ff ffff ffff ffff 8000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 value: 01 ff ff ff ff ff ff ff represents the 256 bit value: 007f ffff ffff ffff c000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000.