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

keygen writes ~/.grantstamp/owner.key. That key is your identity: it signs every stamp and every change. Back it up somewhere off this machine. If you lose it you cannot change or withdraw your stamps.

3. 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. Verified owners are shown as verified, rank first when two stamps match, and get much higher fair-use limits.

If your organisation cannot change DNS quickly, use the .well-known file, or ask the registry operator for a manual review.

4. Register a build#

grantstamp register ./build --title "Starfall Courier" --version 0.9.4 \
    --preset standard --contact legal@starfall.example --manifest

What happens:

  1. Every file in ./build is fingerprinted locally. Common third-party runtimes are skipped.
  2. You sign a claim: the title, version, policy and the list of file hashes.
  3. 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. Change it later with grantstamp list <stamp> and grantstamp unlist <stamp>.

5. 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 where the use would otherwise be denied, when the caller declares that purpose. 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.

6. 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>.

7. 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, when one caller keeps probing near-misses, when another owner registers overlapping content, and when someone files a dispute.

8. Share and embed#

Limits during the free rollout#

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.

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.2, licensed CC BY 4.0.