Difficulty
Difficulty D is a positive integer. It sets two things:
- the minimum lock level
β_min(D)that a mint may use; - the score threshold that the transaction ID must reach.
β_min(D) = 80 + 8 · max{ i ∈ {0, 1} : D ≥ 256^i } → 80 for D < 256, 88 for D ≥ 256
threshold: score_fp(β, txid) ≥ ONE · D
When it is read
The difficulty for a block is computed once, before the first transaction of the block, from the number of valid mints in earlier blocks. Every candidate in that block is judged against that one value. Consequences:
- a schedule boundary crossed inside a block takes effect from the next block;
- up to one block's worth of mints may pass at the old difficulty.
How it changes
The schedule is an issuance parameter and is pending freeze. The numbers are on Constants and difficulty; no other page repeats them.
Current proposal (Draft C): difficulty is a count of leading zeros. Each wave asks the transaction ID, written in hex as usual, to start with one more 0 than the wave before: wave 1 asks for none, wave 2 for 0, wave 3 for 00, and so on. Each extra zero means about 16 times the work. The lock level stays at 80 bits in every wave.
txid starts with |
Example | Work compared with wave 1 |
|---|---|---|
| anything | 9c41… |
1× |
0 |
0e7a… |
16× |
00 |
00b3… |
256× |
000 |
0004… |
4,096× |
Anyone can check a mint by looking at its transaction ID. Earlier drafts used a score multiplier (D below) instead; the score rule on Score still describes them.
Watch a search
Simulation, not the rule. The txid is a real double SHA-256 of a made-up transaction; the nine signature lengths are drawn with made-up odds so that a result shows up within seconds. Pick a wave to see how one more leading zero changes the odds. A real 80-bit search needs about 231.8 attempts on average (PQSB paper, Table 1).
Reading the current value
From an indexer (local only for now; a public endpoint is not yet available):
curl -s "$INDEXER/api/mintjob" | jq '{wave, zeros, units, min_tier}'
{
"wave": "<n>",
"zeros": "<n − 1>",
"units": "<R>",
"min_tier": 80
}
(Proposed shape for Draft C.) zeros is the number of leading hex zeros the txid needs in the next block.