MIZAN Mirror

Run this, and the record carries a head signed by a key MIZAN does not hold.

One file, standard library plus Ed25519. It pulls every public entry, re-derives the head with its own code, signs that head with a key made on your machine, and registers the signature with the record. If any byte disagrees it signs nothing and exits 2.

curl -sO https://mizan.market/mirror/mirror.pypython3 mirror.py

What it checks

  • The record’s signature. Verifies the head’s Ed25519 signature over {size, root, ts, alg, log} with the key published at /.well-known/mizan-keys.json.
  • Every leaf. Fetches all entries in pages of 1,000, recomputes each leaf hash and index, and folds the RFC 6962 root itself. Nothing is imported from the server.
  • Append-only. On every run after the first, verifies the consistency proof from the last head it signed to the head it is about to sign.
  • Match before signature. It signs only when its re-derived root equals the record’s. A mismatch writes nothing, registers nothing, exit code 2.

What it writes

  • ./mizan-mirror/heads/<size>.json and heads/latest.json — the head, the seven signed fields, your public key, your signature. Verifiable by anyone with the key inside the file.
  • ./mizan-mirror/key.json and operator.txt — your public key and the statement whose digest you signed.
  • ~/.mizan/mirror/ — your private key (0600), made on first run, never sent anywhere.
  • One registration — POST /api/log/witnesses/register. The record verifies your signature with the key in the body, matches (size, root) to a head it actually had, and refuses every key MIZAN holds. One accepted registration per key per size. Add --no-register to skip.
LIVE · GET /api/log/witnesses

outside keys · loading…

studio.mizan.market/api/log/witnesses

A key id is a hash, not a name. A registered key shows that the key saw this head and re-derived it; it says nothing about who holds it. The witness MIZAN itself runs stays listed as the same operator as the record, and is never counted here. Source: mirror.py.

A static copy of the whole record is served from this host at /mirror/latest/: every line, the head, the published keys and the outside clocks. When the live log does not answer, the app loads this copy and re-derives the head from every line in the browser. It is a copy on a second host. A second verifier, written only from the public spec and vectors, checks the same copy: the specification, era one.

← Back to the second ledger