Skip to content

Commit e922f85

Browse files
Add Nostr NIP-98 authentication (Schnorr signatures)
Implements JIP-0001: did:nostr Authentication - Add nostr-tools dependency for signature verification - Create src/auth/nostr.js with NIP-98 validation - Integrate Nostr auth in token.js (Authorization: Nostr) - Returns did:nostr:<pubkey> as agent identifier - Works with existing WAC - did:nostr URIs in acl:agent Usage: Authorization: Nostr <base64-nip98-event> References: - JIP-0001: https://github.com/JavaScriptSolidServer/jips/blob/main/jip-0001.md - NIP-98: https://nips.nostr.com/98
1 parent 519d3f6 commit e922f85

5 files changed

Lines changed: 498 additions & 5 deletions

File tree

package-lock.json

Lines changed: 207 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "javascript-solid-server",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"description": "A minimal, fast Solid server",
55
"main": "src/index.js",
66
"type": "module",
@@ -31,6 +31,7 @@
3131
"fs-extra": "^11.2.0",
3232
"jose": "^6.1.3",
3333
"n3": "^1.26.0",
34+
"nostr-tools": "^2.19.4",
3435
"oidc-provider": "^9.6.0"
3536
},
3637
"engines": {

0 commit comments

Comments
 (0)