Register your first stamp#
This takes about ten minutes. Everything runs on your machine except the last step of each command, which sends hashes to the registry.
1. Install the client#
pip install grantstamp # or: pipx install grantstamp
Python 3.10 or newer. On Ubuntu and Debian, use pipx or a virtual environment.
2. Create your key and your owner account#
grantstamp keygen
grantstamp owner create --name "Starfall Studio" --url https://starfall.example \
--public-contact legal@starfall.example
owner create shows the registry's Terms and asks you to accept them. Pass --accept-terms to accept without being asked. You cannot stamp until you have accepted them. Read them later, or accept a new version, with grantstamp owner terms.
The name is yours to choose. Stamps show it as "name chosen by the account", because the registry does not check it.
keygen writes ~/.grantstamp/owner.key. That key is how the registry knows you: it signs every stamp and every change. Back it up somewhere off this machine. If you lose it, see "Lost your key?" below.
The public contact is an email address or an https link. It is shown on every stamp you register, so that anyone, including the registry, can reach you. Change it with grantstamp owner contact.
3. Put yourself on record#
A registry cannot prove who owns a file. It can make sure every claim has a reachable party behind it who answers for it. You cannot stamp until you are on record.
grantstamp owner sign-in
The command prints a LinkedIn link. Sign in once, accept the Terms and confirm on the page that the owner account is yours. After that your key is all you need. You never sign in again.
Your stamps then say "A LinkedIn sign-in stands behind this account. Identity not checked", because that is what a sign-in establishes. LinkedIn does not verify who you are. Your name from LinkedIn is kept for the registry operator and is not published.
Two stronger levels exist:
- Checked by the registry. If you have no LinkedIn account, or want a stronger label, write to contact@grantstamp.io and say who you are and how to reach you. A person checks and records it, and your stamps show the name they checked.
- Publisher proven. If your organisation has a code-signing certificate, run
grantstamp owner publisher, sign the challenge it writes with that certificate, and send it back withgrantstamp owner publisher --signed FILE. The command prints the exact signing commands. This is the strongest level and the only one that identifies an organisation: your stamps show the organisation named in the certificate.
One LinkedIn member can stand behind one owner account.
4. Verify a domain#
grantstamp owner domain starfall.example
The command prints a DNS TXT record for _grantstamp.starfall.example and, as an alternative, a small file to serve at https://starfall.example/.well-known/grantstamp-verify.txt. Add either one, then:
grantstamp owner verify starfall.example
The record contains your key's id, so anyone can later confirm from DNS alone that your domain vouches for your key. A verified domain is shown on your stamps and raises your fair-use limits.
The registry also records when the domain was registered and shows it. A domain registered less than 90 days ago is shown as a new domain and does not count as verified until it is older. Names handed out by hosting and free-subdomain services, such as github.io, are not accepted.
5. Register a build#
grantstamp register ./build --title "Starfall Courier" --version 0.9.4 \
--preset standard --contact legal@starfall.example --manifest
--preset standard picks one of four ready-made policies. Step 6 explains them, and you can change yours at any time.
What happens:
- Every file in
./buildis fingerprinted locally. Common third-party runtimes are skipped. - The registry is asked whether anyone has stamped this content already (see "First come, first served" below). Nothing is stored at this step.
- You sign a claim: the title, version, policy and the list of file hashes.
- The registry stores the fingerprints, your policy and your signed claim, adds an entry to the public log, and returns a receipt.
The command prints the stamp id and its public page, and saves the registry's receipt in ~/.grantstamp/receipts/.
Add --unlisted to keep the stamp out of search, for example before a release. An unlisted stamp still matches checks and still has a page for anyone with the link.
From version 0.4, the public log names an unlisted stamp by a hash of its id, so the log cannot be used to find it. Mirrors do not copy unlisted stamps. The check map, where the registry publishes one, lists each unlisted stamp under an alias that changes with the map's key, with its owner, policy and date.
Change it later with grantstamp list <stamp> and grantstamp unlist <stamp>.
First come, first served#
The registry never holds two stamps that disagree. If another owner stamped the same content first, your registration is refused before anything is stored. You are shown their stamps, how to reach them, and which of your files matched.
If those files are someone else's, such as a library or runtime you ship, leave them out with --exclude and register again. Otherwise talk to the other owner, or open a case with the registry and show your proof.
Several owners can stamp the same content when all of them say so and all use the same policy:
grantstamp register ./build --title "Joint Game" --shared
A stamp is exclusive unless you pass --shared. Co-owners change their policy together: grantstamp policy on a shared stamp proposes the change, and it takes effect when every co-owner has asked for the same policy. More in Who can stamp, and conflicts.
Signed executables#
If your build contains signed .exe or .dll files, the registry verifies each signature and shows who published the files. When that publisher is one you have proven to be (with grantstamp owner publisher, or the name the operator checked), it supports your claim. When it is someone else:
registertells you before anything is stored- the stamp page says "Includes files signed by another publisher"
- those files never block other owners, and agents that check them are told to ask the user rather than follow your policy.
Leave such files out with --exclude unless you have the right to set their policy.
Your own fingerprint procedure#
The built-in fingerprints treat every file alike. For text and structured data you can add a procedure of your own that says what identifies your content, for example the spoken lines of a script:
grantstamp recipe list # the standard procedures
grantstamp recipe show lines > mine.json # start from one and edit it
grantstamp recipe test mine.json FILE # see what it would fingerprint
grantstamp register ./script --title "Courier script" --recipe mine.json
A procedure is a short list of fixed steps, not code, so agents can run it safely. It is published with your stamp. See the attestation protocol.
6. Choose what you allow#
A policy sets allow, ask or deny for each use.
| Preset | analyze | decompile | modify | extract | port | redistribute | train | Accepted purposes |
|---|---|---|---|---|---|---|---|---|
all-rights-reserved |
ask | deny | deny | deny | deny | deny | deny | none |
standard |
allow | deny | deny | deny | deny | deny | deny | interoperability, security research |
modding-friendly |
allow | ask | allow | ask | deny | deny | deny | those two, plus preservation and accessibility |
open |
allow | allow | allow | allow | allow | allow | ask | all six |
An accepted purpose lets a caller through, for any use that would otherwise be denied, when the caller declares that purpose. The registry does not check the declaration. It records it in the receipt, so accept a purpose only if you are content to take the caller's word. The six purposes are interoperability, security research, preservation, accessibility, education and personal backup.
Change it at any time:
grantstamp policy stamp_... --preset modding-friendly --request-url https://starfall.example/mods
Use --policy policy.json for a custom policy. The fields are in the protocol.
7. Let your partners through#
grantstamp token issue --stamp stamp_... --to "PortCo" --uses port,modify --days 90
Send the token to your partner. Their agent presents it with the check and gets allow (licensed) instead of deny. Revoke it with grantstamp token revoke <jti>.
8. Hear about matches#
grantstamp owner webhook https://hooks.slack.com/services/... --format slack
grantstamp alerts
You are alerted when:
- a check matches your stamp at high or exact
- one caller keeps probing near-misses
- another owner registers as a co-owner of your shared content, or proposes a new shared policy
- a case about one of your stamps is opened, noticed, lapses or is decided
If you set a webhook, every alert also goes there: alerts about checks within seconds, the others within about a minute. Callers appear under an id that is different for each owner and changes every day.
If someone opens a case#
A case alone asks nothing of you. If the registry finds that it has merit, it emails you a notice with a date:
grantstamp case <case> # the claim and the proof offered
grantstamp respond <case> --statement "..." --evidence https://...
While the notice is open your stamp shows "Under review" and agents ask their users instead of refusing. If the date passes without an answer, the stamp is suspended. See the case policy.
9. Share and embed#
- Link and QR code. Every stamp has a page at
https://registry.grantstamp.io/s/<id>, with a QR code.grantstamp qr stamp_... --out stamp.pngsaves the code for a box, a store page or a slide. - Badge.
https://registry.grantstamp.io/s/<id>/badge.svgis a small image for a README. - Notice in the build.
grantstamp marker stamp_... --lang cppprints a snippet that compiles a short notice into your next build. Agents that read the file see it and check first. - Signed manifest.
--manifestwritesgrantstamp.jsoninto the build folder for you to ship with it.
Fair-use limits#
Registration is free. To keep one account from filling the registry, each owner has a fair-use ceiling on stored fingerprint features:
| Features | About as much as | |
|---|---|---|
| Before you verify a domain | 250,000 | 110 MB of executables, or 1.4 GB of art and data files |
| After you verify a domain | 2,000,000 | 880 MB of executables, or 11 GB of art and data files |
Executables carry many more features per megabyte than textures or audio, because their strings and symbols are fingerprinted too. grantstamp register --dry-run shows what a build would use. Owners who have not verified a domain also share one pool of 1,000,000 features between them, so verify early. If you need more room, write to contact@grantstamp.io.
Lost your key?#
A new key can take over your owner account once you prove it is you:
grantstamp owner recover own_... # writes a new key and prints the ways to prove it
grantstamp owner recover --domain starfall.example # after adding the DNS record it prints
grantstamp owner recover --status
You can prove it with a DNS record on a domain the account verified, by signing in with the LinkedIn account on record, or by writing to the registry operator.
Once proven, the new key takes over after 7 days and the old one stops working. In that time the account's current key is alerted and can stop it with grantstamp owner recover --cancel <recovery>, so a stranger who asks gains nothing while your key is in your hands.
Withdrawing#
grantstamp withdraw stamp_...
The stamp stops matching and its fingerprints are deleted from the registry. The stamp's record and its log entries remain, because the log is append-only.
Source of this page on GitHub. Documentation for Grantstamp 0.5, licensed CC BY 4.0.