Score
Note
The current proposal (Draft C) does not use a score: it asks for leading hex zeros in the txid (Difficulty, Valid mint condition 7). This page describes the score rule of the earlier drafts, kept because Draft C is not frozen. At 80 bits, zeros leading zeros equals a score of at least 16^zeros, except at the single boundary value.
Definition
ONE = 2^16
MAX = 2^256
k(β) = (β − 80) / 8 # 0 for 80-bit, 1 for 88-bit
score_fp(β, txid) = floor( ONE · 256^k(β) · MAX / max(1, txid) )
layer 2 holds ⇔ score_fp(β, txid) ≥ ONE · D
All quantities are unbounded integers. txid is read in display order as a big-endian integer (conventions).
Equivalent target form
For integer D ≥ 1 (the values of D below are arithmetic examples, not the schedule):
score_fp(β, txid) ≥ ONE·D ⇔ txid ≤ floor( 256^k · MAX / D )
D |
β |
Condition | Meaning |
|---|---|---|---|
| 1 | 80 | txid ≤ 2^256 |
always true |
| 32 | 80 | txid ≤ 2^251 |
top 5 bits zero (or exactly 2^251) |
| 256 | 88 | txid ≤ 2^256 |
always true at 88 bits |
| 1,024 | 88 | txid ≤ 2^254 |
top 2 bits zero (or exactly 2^254) |
| 1,024 | 80 | not allowed | β_min(1024) = 88 |
Minimum level
β_min(D) = 80 + 8 · max{ i ∈ {0, 1} : D ≥ 256^i }
Levels above 88 are not recognised. A spend at a level above β_min(D) is accepted and its extra work is credited through 256^k.
Display
APIs may display score_fp / ONE as a decimal (e.g. 69.06). Displayed values are informative; comparisons MUST use the integers.
Worked examples
See Test vectors for exact integers, including the boundary cases txid = 2^251 and 2^251 + 1.
Implementation note
The reference indexer's API field txid_target shows floor(256^k · MAX / D) − 1, one below the rule's boundary. A transaction with txid exactly at the boundary is valid under the rule. This display difference is listed for fixing before freeze.