Two layers of work
A mint passes two independent conditions. They are searched with the same nonce but enforced by different parties.
| Layer 1 — lock | Layer 2 — transaction ID | |
|---|---|---|
| Condition | Bitcoin Script accepts the spend at level β ≥ β_min(D) |
score(β, txid) ≥ D |
| Enforced by | every Bitcoin node (consensus) | the indexer described in this manual |
| If it fails | transaction invalid, never confirms, no fee paid | transaction confirms, fee is paid, nothing is minted |
| Expected trials | 2^31.79 (β = 80), 2^39.79 (β = 88) |
multiplies layer 1 by D / 256^{(β−80)/8} |
| Precedent | Binohash, QSB, PQB, PQSB | Atomicals "bitwork" (transaction-ID prefix) |
Only layer 1 is "proof of work verified by Bitcoin". Layer 2 is a convention among indexers, like Atomicals bitwork.
How they combine
loop:
nonce ← next(nonce)
build tx with nonce (fixed outputs, fixed fee)
if lock_solution(tx) exists: # layer 1, probability θ
if score(β, txid(tx)) ≥ D: # layer 2
sign, broadcast
stop
Layer 2 filters layer-1 solutions. Because txid is a uniform 256-bit value, the chance a layer-1 solution passes layer 2 is 256^k / D (capped at 1), where k = (β − 80)/8.
Why a higher level counts more
A spend at the 88-bit level needs 2^8 more layer-1 trials than one at 80 bits. The score multiplies by 256^k to credit that work, so:
Difficulty D |
Minimum level | Layer-2 factor | Total expected trials (model) |
|---|---|---|---|
| 1 | 80 | 1 | 2^31.79 |
| 32 | 80 | 32 | 2^36.79 |
| 256 | 88 | 1 | 2^39.79 |
| 1,024 | 88 | 4 | 2^41.79 |
The values of D above are arithmetic examples, not the schedule. Formulas: Score. Which D applies when: Constants and difficulty.