PQGrind Docs

Constants and difficulty (pending freeze)

Important

Pending freeze. Every number on this page may change before the start height is announced. This is the only page that states issuance numbers; every other page refers here by symbol. Three internal drafts exist. Draft C is the current proposal; none is frozen.

Fixed by the construction (not issuance; will not change)

Symbol Value Source
N, h, c 79, 9, 4 [P4 Table 1]
D_ℓ at 80-bit 56, 59 × 8 [P4 Table 1]
D_ℓ at 88-bit 55, 59 × 8 [P4 Table 1]
Script size 1,985 bytes, 201 counted opcodes Espresso mainnet spend fa160ab0…57b4
Accepted levels 80, 88 this protocol
ONE 2^16 this protocol
Claim script Format B (runestone, proposed): 6a5d087fd0a2cd92b4a013; Format A (test network): 6a0b50515342024d5051534200 this protocol (choice pending freeze)
Protocol name PQGrind —
Ticker PQSB —

Issuance, Draft C (current proposal): leading-zero waves — pending freeze

The issuance follows the shape of Bitcoin's: each wave asks for one more leading zero in the transaction ID and pays half as many units per mint. After wave 5 the halving continues on its own, so the tail stays open while becoming harder each wave.

The rule

END[1..4] = 3,150 · 17,850 · 38,850 · 64,050         end of waves 1–4 (cumulative mints)
END[n]    = END[n−1] + 16,800                         for n ≥ 5
wave(m)   = smallest n ≥ 1 with m < END[n]
zeros(m)  = wave(m) − 1
R(m)      = 1,000 >> zeros(m)                         integer halving, as in Bitcoin
txid rule = int(txid, display order) < 16^(64 − zeros)   i.e. at least `zeros` leading hex zeros
M_max     = 164,850                                   R would be 0 from here on
β_min     = 80 in every wave; 88-bit locks are accepted and get no extra credit
  • zeros is read once per block, from m(h) = valid mints in earlier blocks (as on Difficulty).
  • R is taken from the mint's own number (m(h) plus valid mints earlier in the same block), so the total is exact.
  • The txid rule replaces the score threshold. It equals score_fp ≥ ONE · 16^zeros at 80 bits except at the single value txid = 16^(64 − zeros), which Draft C rejects.

Waves

Wave Mints Count Units per mint Units in wave Share of 21,000,000 txid starts with
1 1 – 3,150 3,150 1,000 3,150,000 15.0 % anything
2 3,151 – 17,850 14,700 500 7,350,000 35.0 % 0
3 17,851 – 38,850 21,000 250 5,250,000 25.0 % 00
4 38,851 – 64,050 25,200 125 3,150,000 15.0 % 000
5 64,051 – 80,850 16,800 62 1,041,600 4.96 % 0000
6 80,851 – 97,650 16,800 31 520,800 2.48 % 00000
7 97,651 – 114,450 16,800 15 252,000 1.20 % 000000
8 114,451 – 131,250 16,800 7 117,600 0.56 % 0000000
9 131,251 – 148,050 16,800 3 50,400 0.24 % 00000000
10 148,051 – 164,850 16,800 1 16,800 0.08 % 000000000
total 164,850 20,899,200 99.5 %

As in Bitcoin, integer halving makes the final total fall just below the round number (Bitcoin: 20,999,999.9769 of 21,000,000).

Draft C, expected work (model, not measurement)

From the paper's Table 1 timings at 80 bits (RTX 5090 0.9 s, Apple M3 72 s); each leading zero multiplies the work by 16.

Wave Trials per mint Per mint, RTX 5090 Per mint, M3 Whole wave, RTX 5090 Block space (≈ 1,114 vB per mint)
1 2^31.79 ≈ 0.9 s ≈ 72 s ≈ 0.8 h ≈ 3.5 M vB
2 2^35.79 ≈ 14 s ≈ 19 min ≈ 59 h ≈ 16.4 M vB
3 2^39.79 ≈ 3.8 min ≈ 5.1 h ≈ 56 card-days ≈ 23.4 M vB
4 2^43.79 ≈ 61 min ≈ 3.4 days ≈ 2.9 card-years ≈ 28.1 M vB
5 2^47.79 ≈ 16 h ≈ 55 days ≈ 31 card-years ≈ 18.7 M vB
6 2^51.79 ≈ 11 days ≈ 2.4 years ≈ 500 card-years ≈ 18.7 M vB
7 2^55.79 ≈ 175 days ≈ 38 years ≈ 8,000 card-years ≈ 18.7 M vB
8 – 10 ×16 per wave ≈ 7.7 years and up — — —

In practice waves 1–6 can be completed; wave 7 yields occasional mints; waves 8–10 stay open on paper only.

Comparison with Bitcoin

Bitcoin Draft C
Payout block subsidy halves every 210,000 blocks units per mint halve every wave
First period 2009–2012, 50 % of supply waves 1 + 2, 50 %
Second period 2012–2016, 25 % wave 3, 25 %
Later periods 12.5 %, 6.25 %, … wave 4, 15 %; wave 5 onward halves from 5 %
Difficulty retargeted every 2,016 blocks to keep ≈ 10 minutes; leading zeros grew from 8 to ≈ 19–20 hex digits fixed per wave: one more leading hex zero each wave
Period length fixed in blocks (≈ 4 years) ends when the wave's mints are done
End subsidy reaches 0 after 33 halvings R reaches 0 after wave 10

Issuance, earlier drafts A and B

Symbol Meaning Draft A (three waves) Draft B (Bitcoin-style)
H_start first height examined not set not set
R units per mint 1,000 1,000, halving every 105,000 mints
M_max number of mints 21,000 until the halving schedule runs out
Supply 21,000,000 210,000,000 (limit just below, as in Bitcoin)
Schedule W below retarget every 2,016 mints toward 2,016 blocks; factor clamped to [¼, 4]; if a period exceeds 8,064 blocks, divide by 4
D at start 1 1
Ledger model units follow satoshis (State transition) balances by address with a 19-byte transfer claim — not re-specified for this manual

Draft A schedule W

difficulty_for(m) = multiplier of the first row with m < end; m = valid mints in earlier blocks.

Wave Mints Count Share of supply D Minimum level
1 1 – 12,000 12,000 57.1 % 1 80
2 12,001 – 18,000 6,000 28.6 % 32 80
3 18,001 – 21,000 3,000 14.3 % 1,024 88

Draft A, expected work (model, not measurement)

From the paper's Table 1 timings (RTX 5090: 0.9 s at 80-bit, 3.9 min at 88-bit; Apple M3: 72 s and 5.1 h) multiplied by the layer-2 factor:

Wave Trials per mint Per mint, RTX 5090 Per mint, M3 Whole wave, RTX 5090-hours
1 2^31.79 ≈ 0.9 s ≈ 72 s ≈ 3
2 2^36.79 ≈ 29 s ≈ 38 min ≈ 48
3 2^41.79 ≈ 15.6 min ≈ 20.4 h ≈ 780

Observation. Wave 1 issues 57 % of supply at about one GPU-second per mint (≈ 3 GPU-hours for the whole wave). At that cost the binding constraints are block space, fee bidding and tooling, not search. Whoever is ready at H_start with scripts and fee budget can take most of wave 1 within a few blocks — including the developers.

Draft B notes

  • Earlier internal version; its retarget simulation predates the lock with pins and the satoshi-based ledger.
  • Retarget counts mints, not blocks, so a period ends only when 2,016 mints have happened; the 8,064-block fallback prevents a permanent stall.

Companion rune — pending freeze

Applies only if claim Format B is chosen. See Companion rune.

Item Proposal Notes
Name not chosen must be unlocked at the etching height; avoid any term linked to an identity
Premine 0 no allocation
Mint terms open; amount per mint and cap not chosen anyone can mint while open, PQSB or not
Mint window HeightStart ≤ H_start; end not chosen
Divisibility, symbol not chosen
Rune id known only after etching goes into every Format B claim as tag 20

Other items pending freeze

Item Current state Where used
Claim format: B (runestone, tag 127) or A (direct push) B proposed Claim output
Runes tag 127 stays unassigned Runes says unused tags may be assigned later Claim output
Overlap rule when input 0 already carries units in [0, R) unspecified (ranges merge) State transition
Reporting depth ("final after n confirmations") none Reorganizations
State-digest format proposal only State digest
txid byte-order sentence display order, big-endian Overview
API txid_target off by one shows bound − 1 Score
Test-vector file and its hash not published Test vectors
Rejection codes E02–E09 proposed Error codes