Skip to content

The project's keys

The Unseenet project owns a handful of groups on the network: the place to talk, the announcements, the lists that clients read, and the registrar for names. This page describes the keys behind them and how they are looked after, so that anyone can check how the project works and do the same for a project of their own.

Who holds what

Key Kept Can
Project key ed25519:det5dxev... (fingerprint ph5fc5hop5232qsz) Only in the maintainer's encrypted owner vault, offline backups Change the project's groups: who may post, the registrar's keys, the claim inbox
GitHub poster Repository secret UNSEENET_ANNOUNCE_SEED of unseenet, unseenet-entrance and unseenet-portable, and the owner vault Post in unseenet.announce, unseenet.nodes, unseenet.entrances, unseenet.releases, unseenet.hierarchies, unseenet.checkgroups
Release keys ed25519:clbv6765... (unseenet) and one shared by unseenet-portable and unseenet-bootable Repository secret UNSEENET_RELEASE_KEY only - never in a file, not even the owner vault; a lost one is simply replaced Sign the checksums of development builds, which sticks accept only on the development channel
Registrar keys, one per replica On each replica's machine, in its vault Sign name certificates in unseenet.names
Registrar inbox key The owner vault and every replica's vault Open claims; nothing else
Bot keys, one per bot (unseenet-bots) On unseenet-node3, user bots, in /home/bots/.config/unseenet-bots/ Post new threads in their own channel

The project key never touches GitHub, a node or a replica. Everything that runs unattended uses a key that the project key has listed as a poster in a group's manifest. If such a key leaks, the owner removes it from the manifest and makes a new one: the groups, and the project key, are not at risk.

The owner vault

The project key lives in an Unseenet vault, encrypted with Argon2id and XChaCha20-Poly1305 like every user's vault (UN-RFC 0007), on the maintainer's own computer (~/.unseenet/owner.vault, folder 700, file 600). Its passphrase is kept in a password manager and is only ever typed into a terminal.

Two copies of the vault file are kept on USB sticks in two different places. They are useless without the passphrase. Losing every copy would mean the project's groups could never be changed again.

The scripts

The scripts in tools/project/ are what the maintainer runs with the owner vault. Each asks for the passphrase in the terminal; none reads it from a file, the environment or the command line.

Script Does
change_passphrase.py Encrypts the owner vault again under a new passphrase, checks that it opens, and keeps the old file until you delete it.
create_groups.py Lists every group the project owns, with its type, posters, view and charter. Creates those that do not exist yet, and gives existing ones a new manifest when their view, title, description, charter or min_pow differ from the list. Groups the project moved (MOVED: unseenet.test, unseenet.help.guide) are removed from the network once.
sign_release.py vX.Y.Z Signs a release's SHA256SUMS.txt with the project key and uploads SHA256SUMS.txt.sig, so sticks will update to it. Run it when the release's workflows are done.
share_poster.py REPO Puts the GitHub poster key into another of the project's repositories as a secret (unseenet-entrance, which posts new versions of the web client; unseenet-portable, which announces development builds).
poster_profile.py Publishes the GitHub poster's public profile with the bot mark, so readers who click its name see what it is: the About text from poster_profile.md, the project's links and the project icon as its picture. Takes --dry-run.
new_release_key.py [REPO ...] Makes a new release key for development builds and puts it straight into the repository secrets (never in a file) - by default unseenet-portable and unseenet-bootable, which share one; prints the public key to add to DEV_RELEASE_KEYS in src/unseenet/update.py.
setup_registrar.py Creates the registrar's inbox key and claim inbox, and sets which replicas' keys may issue names (--add, --remove).

create_groups.py and setup_registrar.py take --dry-run, which signs everything and posts nothing. They post over Tor to every node in the project's list.

The groups

Group Type Who posts
unseenet open anyone
test.unseenet open anyone: try things out (until 0.6.9 unseenet.test)
unseenet.help open anyone: questions; the help bot answers from the docs (unseenet-helpbot)
unseenet.announce channel the GitHub poster: releases and news
unseenet.nodes channel the GitHub poster: the node list (UN-RFC 0010)
unseenet.entrances channel the GitHub poster: the list of web entrances (UN-RFC 0043 section 8.1)
unseenet.releases channel the GitHub poster: signed versions of the web client, which apps and entrances update to (UN-RFC 0043 section 7.3)
unseenet.hierarchies channel the GitHub poster: the root list (UN-RFC 0018)
unseenet.checkgroups channel the GitHub poster: the groups of unseenet.* (UN-RFC 0018 section 5)
unseenet.canary channel the GitHub poster: daily connection checks (UN-RFC 0021)
unseenet.nodes.announce open every node: its own announcement, signed with its node key (UN-RFC 0055 section 5)
docs.unseenet.clients channel, site the GitHub poster: the user guide, published from this site
unseenet.names channel the registrar's replicas (UN-RFC 0019)
unseenet.admin open anyone: hierarchy requests and name disputes
alt.news.wikipedia channel, feed, comments open (14 days), pictures the news bot: one post per story in Wikipedia's In the news; anyone comments
alt.history.onthisday channel, feed, comments open (7 days), pictures the on-this-day bot: the day's anniversaries; anyone comments
alt.news.globalvoices channel, feed, comments open (14 days), pictures the Global Voices bot: whole stories (CC BY 3.0); anyone comments
alt.news.theconversation channel, feed, comments open (14 days) The Conversation bot: opening paragraphs and a link (CC BY-ND 4.0), at most 8 a day
alt.privacy.eff channel, feed, comments open (14 days), pictures the EFF bot: Deeplinks posts (CC BY 4.0)
alt.space.nasa channel, feed, comments open (7 days), pictures the NASA bot: Image of the Day

The bot channels are shown as feeds by default (UN-RFC 0034; readers can switch to threads). Those marked pictures take pictures up to 512 KiB each (image/*, UN-RFC 0027): a node keeps at most 8 MiB of files per group, so a bot keeps its pictures small. The Conversation's are agency pictures, so its channel takes none.

All have the fingerprint ph5fc5hop5232qsz, for example unseenet.announce@ph5fc5hop5232qsz. The node list and the root list are kept in the repository and posted automatically when they change and every month.