Title: E2EE for pod content via did:nostr + NIP-44 / NIP-04 (no server-side changes required) · Issue #365 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: E2EE for pod content via did:nostr + NIP-44 / NIP-04 (no server-side changes required) · Issue #365 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: E2EE for pod content via did:nostr + NIP-44 / NIP-04 (no server-side changes required) · Issue #365 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary JSS's did:nostr authentication makes end-to-end encryption available to pod clients today, with zero server-side changes. Clients sharing a pod can encrypt content using either NIP-44 (modern, authenticated, recommended) or NIP-0...
Open Graph Description: Summary JSS's did:nostr authentication makes end-to-end encryption available to pod clients today, with zero server-side changes. Clients sharing a pod can encrypt content using either NIP-44 (mode...
X Description: Summary JSS's did:nostr authentication makes end-to-end encryption available to pod clients today, with zero server-side changes. Clients sharing a pod can encrypt content using either NIP-44 (...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/365
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"E2EE for pod content via did:nostr + NIP-44 / NIP-04 (no server-side changes required)","articleBody":"## Summary\n\nJSS's `did:nostr` authentication makes end-to-end encryption available to pod clients today, with **zero server-side changes**. Clients sharing a pod can encrypt content using either **NIP-44** (modern, authenticated, recommended) or **NIP-04** (simple, legacy, widely deployed) — the same Nostr `secp256k1` keypair that authenticates to JSS performs the ECDH key exchange. The pod stores ciphertext as ordinary RDF or blob content; JSS never sees plaintext.\n\nThis issue tracks the documentation work to make this pattern explicit for JSS users, and addresses the concern raised in solid/specification#788 (E2EE specification work item). The architectural insight: **don't design new E2EE for Solid — leverage the existing Nostr primitives already deployed across the decentralized-web ecosystem.**\n\n## Architecture: content-opaque storage, client-side encryption\n\n```\nClient A (did:nostr_A) Client B (did:nostr_B)\n │ │\n │ shared_secret = ECDH( │\n │ privkey_A, pubkey_B) │\n │ │\n │ ciphertext = encrypt( │\n │ content, shared_secret) │\n │ │\n ├── PUT ciphertext ─────────┐ │\n │ ▼ │\n │ ┌────────────┐ │\n │ │ JSS pod │ │\n │ │ (stores │ │\n │ │ ciphertext │ │\n │ │ as RDF) │ │\n │ └────────────┘ │\n │ │ │\n │ └─ GET ──┤\n │ │\n │ decrypt(ciphertext,│\n │ ECDH(privkey_B, │\n │ pubkey_A)) │\n```\n\nThe pod's role is content-opaque storage — exactly as today. The encryption boundary is between clients. JSS does not implement encryption, decryption, or key management. This is the architecturally correct shape for E2EE: the server is not in the trust boundary.\n\n## Protocols\n\n### NIP-44 (recommended for new applications)\n\nThe current Nostr E2EE standard. Production-grade, authenticated, side-channel-resistant.\n\n- Cipher: **ChaCha20**\n- Authentication: **HMAC-SHA256**\n- Key derivation: **HKDF-SHA256** from ECDH shared secret\n- Padding: length-hiding, power-of-two padding scheme\n- Versioned wire format (current: v2)\n- Spec: https://github.com/nostr-protocol/nips/blob/master/44.md\n- External cryptographic review: design analyzed and reviewed pre-deployment\n\n### NIP-04 (simple, legacy, backwards-compatible)\n\nThe original Nostr DM encryption format. Simpler, widely deployed across older Nostr clients. Acceptable for backwards compatibility; new applications should use NIP-44.\n\n- Cipher: **AES-256-CBC**\n- Key derivation: raw ECDH output\n- Spec: https://github.com/nostr-protocol/nips/blob/master/04.md\n\nJSS pods store ciphertext for both protocols identically — the wire format is just bytes from the server's perspective.\n\n## Ecosystem maturity\n\nThe Nostr E2EE ecosystem has substantial deployed infrastructure across multiple funded teams and cross-implementation interoperability:\n\n- **White Noise** (https://www.whitenoise.chat/) — Nostr-native E2EE messenger; NIP-44 in production\n- **Damus**, **Amethyst**, **Nostur**, **Iris**, **Coracle** — major Nostr clients with NIP-04 + NIP-44 implementations\n- Client libraries across languages: `nostr-tools` (JS), `NDK` (TS), `nostr-rs` / `rust-nostr`, `nostr-php`, `python-nostr`, `nostr-sdk`\n- Tens of thousands of users sending NIP-04/NIP-44 traffic daily across the Nostr relay network\n\nAdopting these primitives for Solid pod content reuses that maturity rather than reinventing it. New cryptographic protocol design carries years of standardization, review, and ecosystem-bootstrap risk; pointing at NIP-44 carries none of that.\n\n## Implementation scope\n\n**Server-side: none.** JSS already supports `did:nostr` authentication. Pod content storage is already content-opaque; ciphertext stores exactly like plaintext.\n\n**Documentation:**\n\n1. JSS docs page *\"E2EE for pod content\"* — pattern explanation + example code for encrypting before PUT and decrypting after GET\n2. JSS docs page *\"Authentication via did:nostr\"* — link to E2EE as a downstream capability\n3. README: brief mention of E2EE as a first-class capability under `did:nostr` authentication\n\n**Optional (separate scope):**\n\n- Reference client demo (NIP-44 + JSS pod) as `examples/e2ee` or in a separate repo\n- Helper utilities for the encrypt-then-PUT / GET-then-decrypt pattern\n- Compatibility tests against existing Nostr client libraries\n\n## Cross-reference: spec#788\n\nsolid/specification#788 proposes E2EE as a new spec work item. This pattern compresses that scope significantly: from *\"design new Solid-native E2EE protocol\"* to *\"document the bridge from `did:nostr` identity to existing NIP-44/NIP-04 primitives.\"* The bridge already exists architecturally; only the documentation step is missing.\n\n## Acceptance\n\n- [ ] Docs page covering the `did:nostr` → NIP-44 pattern with example code\n- [ ] Docs page covering NIP-04 backwards-compatibility for clients that need it\n- [ ] README mention under `did:nostr` capabilities\n- [ ] (Optional) Reference client demo\n- [ ] Cross-link from JSS docs to NIP-44/NIP-04 specs and to spec#788\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-07T04:58:59Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/365"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c181153f-76b3-32b4-8a26-8b17b79fe096 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C914:34BD38:A93557:D80F11:6B03A9A0 |
| html-safe-nonce | 98ebf1dc3733ec416cb3e51c794b57d1504947441e0e5be43ba8c9eb3203e8e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTE0OjM0QkQzODpBOTM1NTc6RDgwRjExOjZCMDNBOUEwIiwidmlzaXRvcl9pZCI6IjMyMzgxODczNzMzODkxMzAxNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0fd4bd80ac908a56556c9f4d64290a9a6d8a1ab62b65a4f2aa6697c1bffc1098 |
| hovercard-subject-tag | issue:4396273664 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/365/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edee83f57bace3b1341c12a8ecbc175bb3074265122bcf65667618617be3b5f0/JavaScriptSolidServer/JavaScriptSolidServer/issues/365 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edee83f57bace3b1341c12a8ecbc175bb3074265122bcf65667618617be3b5f0/JavaScriptSolidServer/JavaScriptSolidServer/issues/365 |
| og:image:alt | Summary JSS's did:nostr authentication makes end-to-end encryption available to pod clients today, with zero server-side changes. Clients sharing a pod can encrypt content using either NIP-44 (mode... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width