GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add HTTP Schnorr signature authentication (Phase 1) by melvincarvalho · Pull Request #1849 · nodeSolidServer/node-solid-server

Conversation

@melvincarvalho

@melvincarvalho melvincarvalho commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds request-level authentication via BIP-340 Schnorr signatures using the NIP-98 HTTP Auth scheme (Authorization: Nostr <base64>)
  • Verified identities resolve to did:nostr:<pubkey> URIs that work with existing Solid ACL rules as acl:agent values — zero changes needed to the ACL layer
  • Existing auth behavior is unchanged — Nostr auth is only checked when no session is present

Changes

File Change
lib/api/authn/webid-nostr.mjs New — NIP-98 event verification with BIP-340 Schnorr signatures
lib/api/authn/index.mjs Export nostr auth module
lib/api/authn/webid-oidc.mjs Skip OIDC RS middleware for Nostr auth headers
lib/handlers/allow.mjs Fall back to Nostr auth when no session userId
package.json Add @noble/curves, @noble/hashes (audited, zero-dependency crypto by Paul Miller)
test/unit/nostr-auth-test.mjs All 10 official http-schnorr-auth spec test vectors + 3 edge cases

How it works

A user with a did:nostr:<pubkey> in an ACL file authenticates by sending:

GET /resource
Authorization: Nostr <base64-encoded-signed-NIP-98-event>

ACL:

<#auth> a acl:Authorization;
  acl:agent <did:nostr:39a360...c85c2>;
  acl:accessTo </resource>;
  acl:mode acl:Read.

Specs

  • HTTP Schnorr Auth v0.0.1
  • did:nostr v0.0.10
  • NIP-98

This is Phase 1 (middleware only). No login UI, sessions, or browser flows.

Refs #1845

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@melvincarvalho
feat: Add HTTP Schnorr signature authentication (Phase 1)
3d64b63
Add request-level authentication via BIP-340 Schnorr signatures
using the NIP-98 HTTP Auth scheme (Authorization: Nostr <base64>).

Verified identities resolve to did:nostr:<pubkey> URIs that work
with existing Solid ACL rules as acl:agent values — no changes
needed to the ACL layer.

Tested against all 10 official http-schnorr-auth spec test vectors
and verified live with read + write operations against a running
NSS instance.

Refs: nodeSolidServer#1845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@melvincarvalho
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.