Commit e922f85
committed
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/981 parent 519d3f6 commit e922f85
5 files changed
Lines changed: 498 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments