PQGrind Docs

Introduction

PQGrind is an unofficial, independent public experiment on Bitcoin; its units have the ticker PQSB. It combines a quantum-resistant lock, leading-zero proof of work, colored satoshis, a Runes-readable claim and Bitcoin-style halving (Where each idea comes from). A mint is an ordinary Bitcoin transaction that:

  1. spends, in input 0, a PQSB-segwit lock with pins — a script published by Espresso Systems that Bitcoin nodes reject unless the spender searched for a transaction with a rare property;
  2. has a transaction ID starting with as many zeros as the current wave asks for;
  3. carries a claim in an OP_RETURN output (a Runes runestone), optionally minting a companion rune too.

A valid mint marks R satoshis of input 0. Marked satoshis are the token's units; they travel with Bitcoin outputs first-in first-out, so holding and sending units is holding and sending Bitcoin outputs.

          layer 1: enforced by Bitcoin consensus         layer 2: enforced by indexers
          ───────────────────────────────────────        ──────────────────────────────────
 search → script accepts the spend at level β     →     txid starts with enough zeros  →  R units on vout[0]

Contents of this manual

Section For whom What you get
Concepts everyone the lock, the two layers of work, units, difficulty
Protocol Specification implementers the normative rules: claim bytes, valid-mint conditions, score arithmetic, state transition, reorgs
Indexer operators, auditors data model, scan loop, judgment pseudocode, replay, API
Official client minters the planned one-command miner and wallet
Minting Guide minters commands and expected output for each step
Wallet & Transfers holders how not to lose units, how to split and send
Market traders, wallet authors the exact PSBT layouts for listing and buying
Reference everyone constants (pending freeze), byte layouts, error codes, test vectors, glossary

Every issuance number — units per mint, number of mints, difficulty schedule, start height — appears only on Constants and difficulty. Other pages use symbols (R, M_max, W, H_start).

Read this first

  • Not affiliated. No relationship with Espresso Systems, with the authors of PQSB, PQB, QSB or Binohash, or with the Atomicals project. None of them has reviewed or endorsed this experiment.
  • Started by anonymous developers, run with anonymous contributors. There is no company, no premine, no presale and no allocation. The developers, the contributors and people they know may mint from the start and may sell.
  • No value is promised. Every mint pays Bitcoin fees; units may be worth nothing.
  • Nothing is frozen yet. See Status and scope.
  • Features marked not yet available do not exist yet. Do not rely on them.

Where this manual lives

The manual is at https://docs.pqgrind.com, on the project website. The same pages are also on GitBook. Addresses linked from docs.pqgrind.com are official.

Sources