Skip to content

Repository files navigation

OpenPGP Keys

Security · OpenPGP — a complete OpenPGP key manager that lives where your keys belong: on secure hardware, offline.

OpenPGP Keys turns your Passport Prime into a personal certificate authority. Create keys, import the ones you already have, sign and encrypt files, and answer signing requests over nothing but QR codes — all on a device with no network stack and storage encrypted by your PIN. Best of all: keys can be derived from your device's master seed, so restoring your seed phrase restores your OpenPGP identity too.

Key list   Key detail   Derive from seed

Features

  • Create keys — random Ed25519 (modern & fast — the pre-selected default), RSA (2048/3072/4096), NIST P-256/P-384/P-521, or an experimental post-quantum hybrid (Ed25519 signing + ML-KEM-768+X25519 encryption, RFC 9980), or "From seed" (Ed25519 or P-521): a key derived from your wallet master seed. The same account number always re-creates the same key and fingerprint — on this device, or on a new one after a seed-phrase restore. New keys expire in 2 years by default (3 months to 10 years or never, your choice); expiration is a self-signature you can extend anytime, so it never threatens the key itself.
  • Import anything standard — armored .asc files (public or secret) from Internal, Airlock, or USB. RSA, DSA/ElGamal, ECDSA/ECDH, Ed25519 all parse, multi-key files work, and importing a public copy never downgrades a stored secret key.
  • Inspect and edit — fingerprints, subkeys, user IDs, expiration at a glance; extend or clear expiration, add/remove user IDs, change or remove the passphrase — all as proper self-signature rebuilds that GnuPG verifies.
  • Sign files — pick any file on the device and get a detached .sig next to it, identical to gpg --detach-sign output and verifiable anywhere.
  • Sign over QR — a fully air-gapped signing loop: scan data with the device camera (single QR or animated multi-part UR), approve, and the signature comes back as a QR on the screen. Data in by camera, signature out by display — no cable, ever.
  • Encrypt & decrypt files — output is exactly what gpg -e produces and gpg -d reads, with an optional embedded signature. Encrypt to any stored key, including public-only recipient keys.
  • Export safely — public-only by default; full secret export sits behind a danger confirmation.
  • GnuPG-interoperable by proof — the test suite round-trips keys, signatures, and encrypted files through a real gpg to hold the compatibility line.

Keys live as armored files on Internal storage — on hardware, a volume encrypted with PIN-derived keys — and secret keys keep their own OpenPGP passphrase layer on top. There is no keyserver access and no background sync: key material only moves when you explicitly import or export it.

Install on your Passport Prime

Grab the .app archive from the latest release, copy it to a USB drive or the Airlock, and install it from Settings > Apps > Install App (KeyOS 1.4 or later).

The first ByteApps app you install also needs our publisher certificate trusted once: download byteapps.crt (also attached to every release), copy it over the same way, and add it under Settings > Apps > Allowed Publishers. Before trusting it, check that its fingerprint matches the one published at byteapps.com:

1bca27c8e765a77fd44922bc058b815b46e627d68f2996e8c38ca6997b6be6f9

Get it running

With the Foundation SDK installed, build and launch in the simulator with:

foundation sim

Learn more

Support

If this app is useful to you, a small bitcoin donation is always appreciated — entirely optional.

Donate bitcoin

bc1qkmg7qek6vuuw6hqp9sm06krzcr7pwd5jhcr43f

Donations help cover development costs and keep more open-source bitcoin tools coming. No VC funding, no ads, no tracking.

License & disclaimer

Licensed under the GNU General Public License v3.0 or later — see COPYING. Sections 15–17 of that license disclaim all warranty and limit liability; the notes below restate that in plain language.

The pgp-core/ library inside this repository carries its own, more permissive terms: MIT OR Apache-2.0, see pgp-core/LICENSE-MIT and pgp-core/LICENSE-APACHE. It holds the OpenPGP key operations, and the split is deliberate — other projects, including non-GPL peers of this app, are meant to build on that crate. The GPL above covers the application around it.

This is experimental software and it has not been independently audited. It is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement.

Use it at your own risk. To the maximum extent permitted by law, in no event shall the authors, copyright holders, or contributors be liable for any claim, damages, or other liability — including, without limitation, loss of keys, loss of encrypted data, or any other loss of data — whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with this software or its use.

Nothing in this project is financial, investment, legal, or tax advice. You are solely responsible for verifying addresses, amounts, fees, and backups before moving funds, and for complying with the laws of your jurisdiction. Test on test networks, or with amounts you can afford to lose, first.

If a private key is lost, or its passphrase forgotten, data encrypted to it is unrecoverable — there is no reset or recovery service. Verify key fingerprints out-of-band before trusting an imported key or encrypting to it.

About

OpenPGP Keys for Passport Prime — create, import, sign, encrypt, and answer signing requests over QR; keys recoverable from your seed phrase

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages