`sign` fell back to "the first secret key in the keyring" whenever REGENT_GPG_KEY was unset. On the release laptop that was an unrelated key, so 0.9.0-0.9.2 were signed (tarball and tag) by it, and its fingerprint was baked into the AUR recipe's `validpgpkeys`. Pin the release key (RELEASE_KEY_FPR) and never scan the keyring. Fail unless the key has a secret half and, without an explicit override, unless it is the pin; log the uid before signing; assert the tag is signed by that same key. The pin is Râu Cao <raucao@kosmos.org>, which is on WKD and both keyservers, so makepkg can still fetch it. Add build-aux/resign-release.sh to re-sign an already-published release in place: the same tarball bytes (sha256 and every `sha256sums` stay valid), the same commit re-tagged, and the signature, exported key and PKGBUILD asset refreshed. It also regenerates the release's PKGBUILD asset, because the published ones are stale: 0.9.0's is the initial placeholder with `sha256sums=('SKIP' 'SKIP')` (no integrity check) and 0.9.1's is 0.9.0's recipe. Also fix usage(), which printed only one line: sub() mutates $0, so the second awk rule saw the stripped line and exited immediately.
3.6 KiB
Regent is a Nostr remote signer (NIP-46) for GNOME and other Linux desktops. Applications ask Regent to sign events or to encrypt and decrypt messages, while your private key stays on your machine — and nothing is signed, encrypted or decrypted without your approval, except what you've chosen to allow automatically.
Regent can hold several keys at once and use them in parallel. Each application you pair is bound to the identity it was approved under, so different apps can sign as different keys at the same time.
Status
Pre-1.0, but usable. The version is below 1.0 because Regent does not yet promise a stable interface, so some things may move between releases. It covers NIP-46 pairing and approvals, per-app permissions, the activity log, multiple identities, and a NIP-49 encrypted key vault with a passphrase (unlock once, then auto-lock).
Before this release Regent went through an internal security review, and every finding was addressed. That is a self-review, not an independent audit, and it does not mean the code is free of bugs — please review it and report anything that looks wrong.
Installation
Regent is not in the official repositories of any Linux distribution yet. It is currently published as (stable) pre-1.0 releases on Gitea and in the AUR:
yay -S regent # the release build
yay -S regent-git # tracks main
Otherwise build it from source — see Development.
Verifying a release
Every release carries a SHA-256 checksum and a GPG signature, and its git tag is
signed with the same key. Download regent-<version>.tar.xz together with its
.sha256sum, .asc and regent-signing-key.asc files, then:
sha256sum -c regent-<version>.tar.xz.sha256sum
gpg --import regent-signing-key.asc
gpg --verify regent-<version>.tar.xz.asc regent-<version>.tar.xz
Releases are signed by this key:
Râu Cao <raucao@kosmos.org>
5306 FC8F 1361 E469 C2E4 CF56 3703 6C35 6E56 CC51
It is discoverable via WKD (raucao@kosmos.org) and on the usual keyservers,
and the same fingerprint is pinned in the AUR package's validpgpkeys.
Repositories & Contributions
The upstream repository is available on both Gitea and ngit (git over Nostr), and issues and pull requests are accepted on either:
- Gitea: https://gitea.kosmos.org/raucao/regent
- ngit: https://gitworkshop.dev/raucao@kosmos.org/relay.ngit.dev/regent
Documentation
- Development — prerequisites, building, running, tests and deployment
- Releasing — cutting a release: build, sign, tag, and publish to Gitea, the AUR and Nostr
- Advanced usage — running the signer without a window and pairing from the CLI
Acknowledgements
Regent is built on the Nostr Dev Kit libraries (formerly rust-nostr) by
Yuki Kishimoto and Awiteb — the nostr and nostr-sdk crates implement the
NIP-46, NIP-44/NIP-04 and NIP-49 primitives Regent relies on. Thank you.
License
The code is in the public domain (Unlicense). The Regent name and logo are trademarks, separate from the code license — see TRADEMARK.md.
Contact
E-Mail, Chat, Social, Lightning: raucao@kosmos.org