Verify a stamp yourself#

A registry that records who owns what must not be able to change its own records quietly. Grantstamp is built so that you can check a stamp, and the registry's whole history, without taking the registry's word for anything.

The one command#

pip install grantstamp
grantstamp audit stamp_m6q21daksxa188bx
log: OK, 12 entries chain to the signed head 0645dbb439050e21…
witness: 3 of 3 saved heads are still in the log (saved 2026-11-26 to 2026-11-28)
stamp_m6q21daksxa188bx "Grantstamp 0.1.0" by The Grantstamp Authors: OK, signed by the owner (1 claims)
  grantstamp.io: DNS record names the owner's key

The command exits with status 1 if anything fails, so it can run in CI. --json prints the full report.

What it checks, and what each check rules out#

1. The log chains. Every registration, policy change, withdrawal and dispute decision is an entry in an append-only log. Each entry includes the hash of the one before it, and the registry signs the newest hash (the head). The audit downloads the log and recomputes every hash.

Rules out: an entry edited or removed in the middle, unless everything after it is recomputed too.

2. The witness still agrees. Recomputing the chain is not hard for whoever runs the registry. So every day a job outside the registry saves the signed head to the public repository, and OpenTimestamps anchors that file to Bitcoin. The audit checks that every saved head is still in today's log at the same position.

Rules out: rewriting or truncating history after it has been witnessed. Anyone can keep their own witness file too: curl https://registry.grantstamp.io/v1/log/head >> my-heads.jsonl, then grantstamp audit --witness my-heads.jsonl.

3. The owner signed the stamp. When an owner registers, changes a policy, lists, unlists or withdraws, the client signs a small statement called a claim with the owner's key. The registry stores the claims and publishes them at /v1/stamps/{id}/proof. The audit verifies each signature and compares the signed title, version, policy and listing with what the registry shows now.

Rules out: the registry inventing a stamp, renaming one, loosening or tightening a policy, or withdrawing a stamp on its own. It would need the owner's private key.

4. The key is the owner's. The owner's public key was written to the log when the owner was created, and the DNS record that verified the owner's domain contains that key's id: _grantstamp.example.com TXT "grantstamp-verify=own_…:<key id>". The audit looks the record up through two public DNS resolvers.

Rules out: the registry swapping in a key of its own for a verified owner. The record lives in the owner's DNS, which the registry does not control.

What the audit cannot tell you#

Doing it by hand#

Everything the command uses is public.

What Where
Log entries GET /v1/log?after=0&limit=5000
Signed head GET /v1/log/head
Registry keys GET /.well-known/grantstamp (jwks)
Witness witness/heads.jsonl and witness/ots/
A stamp's claims, owner keys and DNS records GET /v1/stamps/{id}/proof

An entry's hash is SHA-256 of the canonical JSON of {seq, ts, kind, subject, digest, prev} (keys sorted, no spaces). The first entry's prev is 64 zeros.

A claim is a compact JWS signed with EdDSA, with the header {"alg": "EdDSA", "typ": "grantstamp-claim+jws", "kid": "<key id>"}. The key id is the RFC 7638 thumbprint of the owner's public key. The payloads are:

act Fields
register title, version, policy, files, n, listed
files stamp, files, n
policy stamp, policy
listing stamp, listed
withdraw stamp
attest stamp, title, version, policy, n

policy is sha256: plus the SHA-256 of the canonical JSON of the policy as published. files is sha256: plus the SHA-256 of the upload's file hashes, lower-case, sorted and joined with newlines. Every payload also has iat.

For owners#

Source of this page on GitHub. Documentation for Grantstamp 0.2, licensed CC BY 4.0.