<p>Assuming everything else in the block is valid, the block hash simply needs to be smaller than the target. <a href="https://en.bitcoin.it/wiki/Difficulty">https://en.bitcoin.it/wiki/Difficulty</a> explains how to find the target from the bits representation; and to find it from the human-readable difficulty D, you calculate 2^208*(2^16-1)/D.</p>

CC BY-SA 3.0
2011-12-02T10:59:29.303Z
2011-12-02T10:59:29.303Z
Meni Rosenfeld
<p>Having the difficulty (either in the "bits" form, big integer form, or human-readable format) and a given block hash, how does one know if they solved that block? What is the formula or algorithm for checking it?</p>

<p>(The question might seem trivial, but it does not seem to be described explicitly on the SE or the Wiki)</p>

<protocol><difficulty>
How does one know they solved a block?
ThePiachu
# How does one know they solved a block?

(Asked by: username_0 on 2011-12-02)

Having the difficulty (either in the "bits" form, big integer form, or human-readable format) and a given block hash, how does one know if they solved that block? What is the formula or algorithm for checking it?

(The question might seem trivial, but it does not seem to be described explicitly on the SE or the Wiki)

**Tags:** protocol, difficulty


---

## 1 answers

### Answer by username_1 on 2011-12-02. Score: 5 | Accepted answer

Assuming everything else in the block is valid, the block hash simply needs to be smaller than the target. <https://en.bitcoin.it/wiki/Difficulty> explains how to find the target from the bits representation; and to find it from the human-readable difficulty D, you calculate 2^208\*(2^16-1)/D.


---

