All notable changes to Podkey will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- sidestr records are read by their push length. The vendored spec lib moves
from
373d3ebto@sidestr/spec0.0.6 (fa86dac), whoserecordTextcompares a push's declared length with its data again (sidestr/spec#17): a script that pushedtalwithly:xafter the push read as the recordtally:x. The spend window's asset view and record display now read records exactly as validators do. Onlyrecords.mjschanged in Podkey's vendored set.
- Sidechain spends are opt-in. They are off until you turn them on, in the
popup's settings or in the spend window the first time a site asks; declining
answers the site with
code: 'unsupported'. The settings list the chains in use with the signer Podkey settled on for each, and Forget drops a chain's signer and its saved state; turning spends off forgets every chain. Signer pins from 0.0.9 carry over and count as turned on. window.nostr.sidestr.enabledsays whether spends are on, so a page can word its own buttons.signTransactionis present either way.
- Spends open quickly. Podkey keeps each chain's validated state (coins, the
last headers and what each coin carries) and the next spend checks only the
blocks since: on
sidestr:dreamlab, 545 blocks took 5.9 s to validate the first time and 0.3 s after. A saved state whose block hash no longer matches the mirror (a reset chain) is dropped and every block is checked again; the spend window says which it did.
- sidestr spends:
window.nostr.sidestr.signTransaction({ chain, tx }). Podkey is the reference signer for sidestr's browser-signer proposal (proposals/browser-signer.mdin sidestr/spec). A page on any sidestr chain asks for a spend and never holds the key. Podkey's own spend window reads the chain from its id (the signer's announcement, a mirror it names, every block validated), checks that every input is your own mature, unspent coin, computes each sighash itself, and shows what leaves your wallet: each recipient (their npub, and their profile name when found), what comes back, the fee, and any asset (SPEC 12) the spend moves, destroys or burns. Destroying or burning needs an explicit tick. Every spend asks, whatever the site is trusted for; the key stays in the background and signs only what the window computed, once. Refusals reach the page with acode:rejected,unsupported,not-yours,invalidorunavailable. - Chains beside a test network only for now. Each chain's signer is remembered on first spend and a different one is refused, since a chain id is a name, not a proof.
- The sidestr engine is vendored at pinned commits (
scripts/vendor-sidestr.js,vendor/sidestr/PINS.jsonwith a SHA-256 per file): Manifest V3 forbids code from the network. Chains that name the EVM rule areunsupporteduntil it is vendored too.
-
Requests from a page wait up to three minutes instead of 30 seconds, so a site no longer times out while you unlock Podkey with a security key's PIN and touch. Each request's timer is cleared when its answer arrives.
-
Security keys: passkey windows no longer fail straight away. A passkey window started its WebAuthn ceremony on
DOMContentLoaded, often before the new window had focus, and WebAuthn refuses an unfocused document with the sameNotAllowedErroras a cancel. Ceremonies now wait for focus. -
Security keys: the browser goes straight to the key. The transports a credential reports (
usb,nfc, …) are stored and passed inallowCredentials, so unlock asks to insert and touch the key instead of opening the generic chooser that leads with a phone/QR option. Passkeys set up before this keep working without the hint. -
"Unlock with passkey" showed with no passkey set up.
.btnoverrode thehiddenattribute; a global[hidden]rule restores it. -
Ceremony errors name the step and say what to do (PIN, touch, keep the window in front);
InvalidStateError,NotSupportedErrorandSecurityErrorget their own messages. Failures show inline with Try again instead of analert()over a dead window, and set-up says which of its two touches is next. -
Ceremony timeouts are three minutes (time to find a key and set a first PIN); EdDSA and RS256 are offered after ES256 for authenticators that lack ES256.
-
A window opened only to unlock closes itself once unlocked, handing focus back to the site that asked.
-
The Set up passkey button no longer stays on "Waiting…" after a failure.
- The first-approval prompt says that approving also trusts the site from then on (it always did; the prompt did not say so).
- Export shows the key as
nsec, the form other apps and Podkey's import take. - Plainer copy on the welcome, import and passkey screens; import says it takes
nsecor hex. Stronger text contrast in light and dark, a primary-button fill that passes contrast in dark mode, and keyboard focus rings on every control. Debug logging removed from the popup.
- FIDO2 / WebAuthn passkey master identity (advanced). Create a Nostr
identity whose secret key is derived from a hardware passkey via the WebAuthn
PRF extension (HKDF-SHA-256, domain
podkey/nostr-secret/v1), with no passphrase — the passkey reproduces the same key at every unlock. A separate passkey unlock mode instead wraps an existing passphrase key with an AES-256-GCM key derived from the passkey PRF (podkey/wrap/v1). Both require a PRF-capable authenticator (a phone passkey, a modern security key, or a platform authenticator with hmac-secret). The derived flow shows a one-timensecbackup that must be acknowledged before the identity is persisted. Framed as an advanced tier for managing agents or working under compliance rules; the ordinary Generate/Import flows are unchanged. Specs:site/passkey-identity.html,site/did-nostr.html. - "Start over" on the main screen. A footer action that wipes the vault, public key and passkey config and returns to the setup screen, so an existing user can reset to the initial state (and reach passkey-derived creation) without locking first.
- Survive an invalidated extension context. When the extension is reloaded
or updated while a page stays open, the orphaned content script no longer
floods the console with
Extension context invalidatedon every request from high-frequency callers; it latches the dead context once, restores nativefetch/XHR, and answers silently until the tab is reloaded. - Passkey ceremony compatibility and errors. Stop requesting a discoverable
(resident) credential Podkey never uses — it stores the credential id and
unlocks via
allowCredentials— fixingmakeCredentialfailures on some TPM-backed authenticators. Surface actionable messages for a missing PRF / hmac-secret extension and for a cancelled or timed-out ceremony, instead of the raw WebAuthnNotAllowedError.
- NIP-44 (v2) encryption.
window.nostr.nip44.encrypt(pubkey, plaintext)andnip44.decrypt(pubkey, ciphertext)for NIP-17 / NIP-59 gift-wrapped direct messages. The crypto runs in the background worker (@noble/cipherschacha20,@noble/hasheshkdf/hmac, ECDH via@noble/secp256k1) and is checked against the official NIP-44 test vectors. The private key stays in the worker. - Per-origin signing consent. The first request from a site opens an approval popup; closing it or a 60-second timeout denies. Approving grants per-origin trust that you can revoke from the popup.
- Encrypted-at-rest key vault. The private key is persisted only as an
AES-256-GCM ciphertext in
chrome.storage.local, wrapped by a scrypt-derived key from the user's passphrase (src/vault.js). On unlock the decrypted key is cached inchrome.storage.sessionfor fast signing and cleared when the browser closes; the raw key never touches disk. NewUNLOCK_VAULT/LOCK_VAULTmessages, a popup unlock screen, and a clear "Podkey is locked" prompt replace the previous "No keypair found" error after a restart. - NIP-98 Solid authentication. Opt-in HTTP auth to Solid pods. Each token carries a fresh 16-byte nonce and binds the request body hash and the final redirect-aware URL, so one token authorises one request. Trusted Solid hosts are matched exactly.
- Schnorr self-verify. Every signature is checked against the public key before it is returned.
- Extension icons at 16, 48 and 128px, and a
script-src 'self'content-security policy across the popup and test page. - Continuous integration.
.github/workflows/ci.ymlruns build, test and lint on every pull request and push tomain, and uploads a sideloadable extension zip. The 141-case suite covers signing, NIP-44 vectors, NIP-98 token shape, the content-script message whitelist, the consent flow, and the vault crypto (round-trip, wrong passphrase, tamper, salt/iv freshness).
- A trusted origin signs any event kind without a prompt, so Podkey works as a general NIP-07 signer. A normal client publishes kind 0, 10002 and 22242 on every load; those no longer raise a prompt once you trust the site. Untrusted origins still prompt, and approving one grants trust.
- The
window.nostrprovider exposesgetPublicKey,signEventandnip44.{encrypt,decrypt}. - The popup fits within the browser popup height, keeping the Export and GitHub links in view.
0.0.7 - 2024-12-XX
- Improved installation guide on test page with comprehensive step-by-step instructions
- Prioritized direct extension installation over git clone workflow
- Added developer section for building from source
0.0.6 - 2024-12-XX
- Code formatting improvements (prettier)
- Test page installation guide formatting
0.0.5 - 2024-12-XX
- Comprehensive installation instructions on test page
- Clear guidance for users on how to install and use the extension
- Links to did:nostr specification throughout documentation
- License changed from MIT to AGPL-3.0
- All descriptions updated to emphasize did:nostr and Solid authentication
- Test page now shows installation guide when extension is not detected
- Popup UI updated to mention did:nostr and Solid
- Added did:nostr specification link (https://nostrcg.github.io/did-nostr/)
- Updated README to clearly position Podkey as extension for did:nostr and Solid
- Enhanced test page with better user guidance
0.0.4 - 2024-12-XX
- Fixed key generation bug: Changed
randomPrivateKey()torandomSecretKey()for @noble/secp256k1 v3.0.0 compatibility - Added comprehensive error logging for debugging
- Fixed storage test suite (removed beforeEach, using clearStorage function)
- Comprehensive test suite with 20 passing tests
- Crypto function tests (key generation, signing, verification)
- Storage function tests (keypair management, trusted origins, auto-sign)
- Better error handling and logging in background service worker
0.0.3 - 2024-12-XX
- Interactive test page with real-time diagnostics
- GitHub Pages deployment for test page
- Comprehensive README with usage examples
- Proper hash function configuration for @noble/secp256k1 v3.0.0
- Type safety improvements for all API responses
- Better error handling and logging
- Auto-approval for permission requests (service worker compatible)
- Syntax error in
nostr-provider.js(async nip04 assignment) - Event hash calculation now includes pubkey correctly (NIP-01 compliant)
- Signature calculation now converts hex to bytes before signing
- Hash functions properly configured for @noble/secp256k1 v3.0.0
- Response type safety (ensures strings/arrays are correct types)
- Bundle script now properly bundles npm dependencies
- Upgraded @noble/secp256k1 from v2.3.0 to v3.0.0
- Updated to use proper Schnorr signature API
- Improved error messages and diagnostics
- Better handling of undefined/null responses
- Created bundle script using esbuild
- Proper ES module support in service worker
- All dependencies bundled for Chrome extension compatibility
- Basic NIP-07 provider implementation
- Key generation and import
- Event signing with Schnorr signatures
- Popup UI with beautiful gradients
- Trust management system
- Storage abstraction layer