PQGrind Docs

Security and risks

Threats to a mint in flight

Threat Analysis Mitigation
Front-running (copying a mint from the mempool) Units go to output 0 of the same transaction, covered by every SIGHASH_ALL signature. Redirecting them needs a different valid spend of the same lock before confirmation: an in-flight forgery with a β-bit target [P4 §8.3], plus layer 2. Use 88-bit locks when the stakes justify it.
Fee bumping Any change to the transaction voids the search. A second spend of the same lock reveals more openings. Fix the fee before the search; never replace.
Lock reuse A spent lock's openings are public; anything later sent to its address is exposed. Use each lock once. Tools must refuse reuse.
Grover's algorithm Quadratic speed-up gives ≈ 2^{β/2} sequential steps (≈ 2^40 at 80 bits) [P4 §8.3]. Only relevant once large quantum computers exist.

Threats to the ledger

Threat Analysis Mitigation
Indexer divergence Any difference in the nine conditions or in the state transition produces two ledgers. Frozen text with hash; test vectors; a second independent indexer; published state digests (not yet available).
Reorganisations Replaced blocks can remove or re-judge mints. Wait for confirmations; see Reorganizations.
Careless wallets Spending unit-carrying outputs as fee burns units. Holding units.
Companion rune on the same output Runes markets move the whole output; Runes transfers without edicts send all runes to the first output, unlike first-in first-out. Split output 0 after minting; see Companion rune.
Runes tag reuse Runes may assign tag 127 in future. Pending freeze; a later Runes change could make old claims ambiguous on the Runes side only.
Overlap edge case Mint on an input already carrying units in [0, R); see State transition. Pending freeze.

Fairness and concentration

Factor Analysis
Hardware Output scales linearly with search speed. Expected trials per mint: Two layers of work.
Faster private tools The public reference miner (not yet available) will not be the fastest possible. Faster private implementations may exist, including the developers' own.
Developer participation The developers, the contributors and people they know may mint from the start and may sell. There is no allocation and no premine.
Miners A Bitcoin miner can include its own mints without paying fees to others and can order transactions in its block. Order matters at schedule boundaries and at the mint limit. Layer 2 gives miners nothing: block contents do not affect txid.
Many mints per block Block space caps throughput: ≈ 1M vB / ≈ 1,114 vB ≈ 890 mints in a block with nothing else in it.
Early waves Where difficulty is low, block space and fees, not search, decide who mints; see the observation on Constants.

Things that are not reviewed

  • The PQSB construction: "has not been reviewed independently" [P4 §6.4].
  • The paper's measured implementations use locktime and sequence as the nonce, outside its formal nonce model [P4 §8.1, Remark 3].
  • This experiment's code and rules: no external review.
  • Relay and mining policy for this script type may change.

Economic risks

  • No value is promised. Units may be worth nothing.
  • Every mint pays Bitcoin fees whether or not it mints anything (E07, E09 still pay).
  • There is no administrator who can reverse, refund or fix anything.