You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Served did:nostr docs use Multikey but @context does not define it (use cid/v1) #568
src/idp/well-known-did-nostr.js serves DID documents with "type": "Multikey" + publicKeyMultibase, but the @context is ["https://w3id.org/did", "https://w3id.org/nostr/context"] — neither entry defines Multikey, and https://w3id.org/did returns text/html (not a JSON-LD context). So the served documents do not fully JSON-LD-expand.
Multikey / publicKeyMultibase are defined in Controlled Identifiers v1.0 (https://www.w3.org/ns/cid/v1). Notably jss already uses that context in src/keys/provision.js:141, so this is also an internal inconsistency.
Fix: change the served DID-doc @context to ["https://www.w3.org/ns/cid/v1", "https://w3id.org/nostr/context"].
Mirrors the spec change in nostrcg/did-nostr#91 (issue nostrcg/did-nostr#90). Safe: a grep finds no code asserting the literal @context value; auth/resolution match on the verification method / pubkey, not the context.
Activity
Use CID v1.0 `@context` in served did:nostr docs so `Multikey` is def…