# quorumTrust a file when **enough rebuilders you chose** reproduced it.Each project publishes, through a *feed*, what its rebuilders built: eachrebuilder signs the hashes of the files they rebuilt from source. In your owntrust store, you pin the rebuilders you believe (by key fingerprint) and set athreshold. A file passes when at least *threshold* pinned rebuilders signedits exact hash, and none of them signed a different one.It's a single executable (no Python), on Windows, Linux and macOS. OpenPGPfeeds (Bitcoin Core's guix.sigs) are checked by GnuPG: `gpg` on PATH, else,on Windows, Gpg4win's or the one that comes with Git for Windows, which itfinds by itself (or `$QUORUM_GPG`). Each check runs in an empty, throwawayGnuPG home, so nothing in your own keyring counts. in-toto feeds neednothing else. It's milestone M1 of[quine-global/charter](https://github.com/quine-global/charter): user-chosentrust for Windows software.## Example: Bitcoin Core```quorum project add bitcoin-core --preset bitcoin-corequorum trust add achow101 --fingerprint 152812300785C96444D3334D17565732E08E5E41 --yesquorum trust add fanquake --fingerprint E777299FC265DD04793070EB944D35F9AC3DB76A --yesquorum trust add hebasto --fingerprint D1DBF2C4B96F2DEBF4C16654410108112E7EA81F --yesquorum check bitcoin-32.1-win64-setup.exe``````bitcoin-32.1-win64-setup.exesha256 d4cc64d500fa7713b5e2f3b9d46a215def3c4ed91aa46bf13e4de1a042bf9aa2bitcoin-core 32.1, attestations from https://raw.githubusercontent.com/bitcoin-core/guix.sigs/mainachow101 OK signed 2026-10-27fanquake OK signed 2026-10-27hebasto OK signed 2026-10-27PASS: 3 pinned rebuilder(s) reproduced this exact file (threshold 3).```Without `--fingerprint`, `trust add` shows the key and asks. Check thefingerprint somewhere other than the feed (the rebuilder, their website, akey you already hold): pinning means trusting what they sign.## Example: your own projectRebuilders sign with [cosign](https://github.com/sigstore/cosign) (in`nix develop`): a key once, then for each release they rebuild, quorumwrites what they're vouching for and cosign signs it:```cosign generate-key-pair --output-key-prefix keys/alice # keys/alice.key (secret), keys/alice.pubcosign signing-config create --out offline.json # once: no public log, no timestamp serverquorum statement --release 1.0 --out statement.json hello-1.0.execosign attest-blob --statement statement.json --key keys/alice.key \--signing-config offline.json --bundle feed/1.0/alice/attestation.sigstore.json```The empty signing config keeps the attestation private: without it, cosignalso publishes it to Sigstore's public Rekor log. quorum checks thesignature against the keys you pinned either way, not Rekor orcertificates.The project publishes the feed (a git repo, a web server, a shared folder):```feed/builder-keys/alice.pem (keys/alice.pub)builder-keys/bob.pem1.0/alice/attestation.sigstore.json1.0/bob/attestation.sigstore.json```Users:```quorum project add hello --feed in-toto --source https://example.org/feed --release-prefix hello-quorum trust -p hello add alicequorum trust -p hello add bobquorum trust -p hello threshold 2quorum check -p hello hello-1.0.exe```## Feeds| Feed | Layout | Signatures ||---|---|---|| `guix-sigs` | `<release>/<rebuilder>/all.SHA256SUMS{,.asc}` (else `noncodesigned.*`), keys in `builder-keys/<rebuilder>.gpg`: Bitcoin Core's [guix.sigs](https://github.com/bitcoin-core/guix.sigs) | OpenPGP, detached || `in-toto` | `<release>/<rebuilder>/attestation.sigstore.json` (a Sigstore bundle, as `cosign attest-blob --bundle` writes) or `attestation.dsse.json` (a bare envelope), keys in `builder-keys/<rebuilder>.pem` | [DSSE](https://github.com/secure-systems-lab/dsse) envelopes holding [in-toto Statements](https://github.com/in-toto/attestation) |For `in-toto`, a rebuilder's key is an SPKI PEM public key: ECDSA P-256with SHA-256, DER or raw signatures (what cosign makes), or Ed25519. Its fingerprint is the SHA-256 ofthe key's DER encoding, which is what the PEM file holds in base64, soanyone can check it without quorum:`grep -v -- ----- key.pem | base64 -d | sha256sum`, or`openssl pkey -pubin -in key.pem -outform DER | sha256sum` (Ed25519 needsOpenSSL 1.1.1 or later; macOS's LibreSSL can't read it).Any in-toto Statement counts, whatever its predicate (SLSA provenance, say):what matters is its subjects, the file names and their SHA-256. Statementsfrom `quorum statement` also carry the release(`https://quineglobal.com/quorum/rebuild/v0`), and an attestation moved toanother release's folder is refused (`WRONG RELEASE`).## Results, per rebuilder| Result | Meaning | Counts ||---|---|---|| `OK` | Their signed attestation lists this file with this hash | yes || `MISMATCH` | They signed a **different** hash for this file | fails the check || `BAD SIGNATURE` | Not signed by the key you pinned (names the key that did sign, and whose it is if you pinned it for someone else) | no || `WRONG RELEASE` | Their attestation is for another release | no || `EXPIRED KEY` | OpenPGP key expired since | only with `--allow-expired`, if signed before the expiry || `REVOKED KEY` | OpenPGP key revoked | never || `NOT LISTED` | Their attestation doesn't include this file | no || `NO ATTESTATION` | Nothing from them for this release | no |Exit codes: 0 pass, 1 fail, 2 error.## The trust store```<home>/projects/<project>/project.toml feed, source, release_prefix, threshold, pinned rebuilders<home>/projects/<project>/keys/<name>.key each rebuilder's key file, as fetched when pinned````<home>` is `--home`, `$QUORUM_HOME`, or `%APPDATA%\quorum`(`~/.config/quorum` on Linux, `~/Library/Application Support/quorum` on macOS).Checks use the cached key files, never what the feed serves later, so achange to the feed's keys can't add or swap a key you trust. `trust refresh`takes in new expiry dates, subkeys and revocations, and only while everypinned fingerprint is still there. A key can be pinned for one rebuilderonly: the threshold counts keys, so it can't be met twice by one key.## Building```cargo build --releasecargo test```For Windows, from macOS or Linux, with[cargo-zigbuild](https://github.com/rust-cross/cargo-zigbuild):```rustup target add x86_64-pc-windows-gnucargo zigbuild --release --target x86_64-pc-windows-gnu```The tests need the producer-side tools too (cosign, Tessera, litewitness,tuftool, GnuPG): `nix develop -c cargo test`, or `nix flake check`.On Windows, HTTPS goes through SChannel and the Windows certificate store;elsewhere through rustls. TLS only protects the download: trust comes fromthe signatures.## Freshness: is this the latest release?Rebuilders' signatures say a file is genuine, not that it's current: an oldrelease with a known hole stays genuinely attested forever. A project canalso publish a [TUF](https://theupdateframework.io/) repository whose onetarget, `release.json`, says which release is the latest. Its timestamp issigned again daily, so a server that stops updating, or replays old data,gets noticed.The repository is made with [tuftool](https://github.com/awslabs/tough/tree/develop/tuftool)(awslabs' tough, which Bottlerocket's updates use), pinned in `flake.nix`.Keys are Ed25519, PKCS#8: PEM for `quorum tuf refresh`, DER for tuftool.The project, once (keep the root key offline):```for r in root targets snapshot timestamp; doopenssl genpkey -algorithm ed25519 -out keys/$r.pem # OpenSSL 1.1.1+, not LibreSSLopenssl pkey -in keys/$r.pem -outform DER -out keys/$r.derdonetuftool root init root.json && tuftool root expire root.json 'in 52 weeks'for r in root targets snapshot timestamp; dotuftool root set-threshold root.json $r 1tuftool root add-key root.json -k keys/$r.der --role $rdonetuftool root sign root.json -k keys/root.derecho '{"release":"1.0"}' > in/release.jsontuftool create --root root.json -k keys/targets.der -k keys/snapshot.der -k keys/timestamp.der \--add-targets in --outdir tuf --targets-version 1 --snapshot-version 1 --timestamp-version 1 \--targets-expires 'in 12 weeks' --snapshot-expires 'in 2 weeks' --timestamp-expires 'in 1 day'sha256sum tuf/metadata/1.root.json # users pin this; publish it on your website too```For each release, `tuftool update` with the new `release.json`, the samekeys and each version one higher (plus `--metadata-url`). Root rotations:`tuftool root bump-version`, `add-key`/`remove-key`, `sign` with the newroot key and `--cross-sign` with the old, then `tuftool transfer-metadata`.Daily (cron, CI), the timestamp is signed again. tuftool re-signs every roleat once, which would put the targets key (it decides what's the latest) onthe machine running the job; `quorum tuf refresh` re-signs only the timestamp(and with `--snapshot-key`, the snapshot):```quorum tuf refresh tuf/metadata --timestamp-key keys/timestamp.pem # daily; add --snapshot-key keys/snapshot.pem weekly```Publish the `tuf/` folder (`metadata/`, `targets/`). Users add it to the project:```quorum project add hello --feed in-toto --source https://example.org/feed \--release-prefix hello- --tuf https://example.org/tuf --tuf-root-sha256 <hex>```From then on, `quorum check` first updates the TUF metadata, following thespecification's client workflow: it follows root key rotations(tuftool's), checks every role's signature threshold, lengthsand hashes, and refuses:- `OUTDATED`: the file is from a release that isn't the latest(`--allow-old` checks it anyway, on purpose);- `FROZEN`: expired metadata;- `ROLLBACK`: versions lower than ones it has seen;- signatures from keys the role doesn't have, and roots the trusted root didn't sign.Supported: Ed25519 and ECDSA P-256 keys, consistent snapshots or not,top-level targets only (no delegations). The tests (`tests/tuf.rs`) makethe repository with the real tuftool, rotation included. python-tuf andtuf-on-ci write the same layout but haven't been tried.## Transparency: the same story for everyoneA rebuilder could sign one hash for most people and another for a target.With a transparency log, an attestation counts only if it's in anappend-only log that everyone sees, so a second hash would be there foranyone to find.The log is a standard [C2SP tlog-tiles](https://c2sp.org/tlog-tiles) log:static files any web server or git repo can serve. quorum doesn't writeit or witness it; off-the-shelf tools do, pinned in `flake.nix`(`nix develop` has them):- [Tessera](https://github.com/transparency-dev/tessera)'s `posix-oneshot`writes the log and signs its checkpoints.- [litewitness](https://github.com/FiloSottile/torchwood/tree/main/cmd/litewitness)witnesses it: Tessera sends each new checkpoint to the witnesses([C2SP tlog-witness](https://c2sp.org/tlog-witness)), each checks itextends the last one it saw and cosigns, and the checkpoint ispublished only once enough have.```checkpoint signed note (C2SP tlog-checkpoint), plus witness cosignatures (C2SP tlog-cosignature)tile/<level>/<n> the Merkle tree's hashes (RFC 6962), 256 a tiletile/entries/<n> the entries, each one attestation as canonical JSON```The log operator, once:```quorum log keygen --origin example.org/hello-log --out log.key # prints the log's verifier key```(`log.key` is in Go's note format, which Tessera reads.) Each witness,once, adds the log to its database (`witnessctl add-log -originexample.org/hello-log` and `witnessctl add-key -key <log vkey>`) and tellsthe operator its own verifier key, which litewitness prints on start.For each attestation, the operator writes an entry, then has Tessera logthe batch, with the witnesses in a[policy file](https://git.glasklar.is/sigsum/core/sigsum-go/-/blob/main/doc/policy.md):```quorum log entry --rebuilder alice --release 1.0 feed/1.0/alice/attestation.sigstore.json --out new/alice# guix.sigs: … all.SHA256SUMS --signature all.SHA256SUMS.ascposix-oneshot --storage_dir log --private_key log.key --entries 'new/*' --witness_policy_file policy``````# policywitness w1 <w1 vkey> https://w1.example/witness w2 <w2 vkey> https://w2.example/group both all w1 w2quorum both```Serve the log directory, except `.state/` (Tessera's own).Users add the log to the project:```quorum project add hello … --log https://example.org/log --log-key <log vkey> \--witness <w1 vkey> --witness <w2 vkey> # --witness-threshold: default all````quorum check` then verifies the checkpoint (the log's signature and thewitness threshold), that the log extends the one it saw last time (aconsistency proof, else `FORK`), and reads every leaf hash, each checkedagainst the signed root. A rebuilder's `OK` countsonly if their exact attestation is in the log (else `NOT LOGGED`). A`MISMATCH` fails the check either way.`quorum log monitor` reads every entry, verifies the ones by your pinnedrebuilders, and reports `EQUIVOCATION` (a rebuilder signed two hashes for onefile), `DISAGREEMENT` (rebuilders differ about a file) and `MISLABELLED`(an attestation logged under another release).Notes, checkpoints, tiles and proofs are Cloudflare's[`signed_note` and `tlog_tiles`](https://github.com/cloudflare/azul) crates;quorum adds cosignature/v1 witness keys, which they don't publish yet. Thetests (`tests/tlog.rs`) run against the real Tessera and two reallitewitnesses. Clients still read every leaf hash, so a check costs 32bytes an entry (3 MB at 100,000); inclusion proofs would need the entry'sindex.## Reproducible: rebuild quorum.exe yourself`quorum.exe` builds byte for byte the same on any Linux machine with Nix:```nix build github:quine-global/quorum/<commit>#windowssha256sum result/bin/quorum.exe```It uses the official Rust toolchain with the Windows target's standardlibrary (fenix, pinned by `flake.lock`), linked by zig, with the cratesvendored from `Cargo.lock` and build paths remapped. At commit `21161095`,two machines (and one of them twice, `nix build --rebuild`) got`ed426feea1487d925651a120b28cbc1e7ad51cd74661f29bdc3813c88c3a3574`, and thatexact file passes a Bitcoin Core check on Windows. At `7056b79d` (the log onTessera's tiles), one machine twice got`43d0617e5664300154c29b5eeb63980ab03f1482ffbdd17a9d29d216edde8b14`.So the verifier can be verified the same way: rebuild it, compare, andtrust it once enough people you trust got the same hash.## RebuildersTo rebuild releases and attest them: [docs/REBUILDER.md](docs/REBUILDER.md),one command (`nix run github:quine-global/quorum#rebuild`).## Not yet (see the charter)- **Attested releases of quorum (M5).** Rebuilders don't publish signedattestations of quorum's own builds yet.- One person could pin two keys under two names; pin people you know aredistinct.- Tested against: Bitcoin Core 32.1 and 22.0 (guix.sigs), attestationssigned by cosign 3.1.6 (the tests, from the flake), ECDSA P-256 signatures made withLibreSSL, on macOS and Windows.