Module bitcoin::pow

source ·
Expand description

Proof-of-work related integer types.

Provides the Work and Target types that are use in proof-of-work calculations. The functions here are designed to be fast, by that we mean it is safe to use them to check headers.

Structs

  • Encoding of 256-bit target as 32-bit float.
  • A 256 bit integer representing target.
  • Error from TryFrom<signed type> implementations, occurs when input is negative.
  • A 256 bit integer representing work.