What a DID nostr method could like like, should anyone want such a thing. I'm writing this out so that a worse version isnt registered later.

Beware that DID canonicalization has centralized dependencies on w3.org and w3id.org though

https://void.cat/d/3LbJcZmjvzLTYg9TFJc3KU.webp

Reply to this note

Please Login to reply.

Discussion

```JSON

{

"@context": [

"https://www.w3.org/ns/did/v1"

],

"id": "did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",

"verificationMethod": [{

"id": "did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333#key",

"type": "SchnorrSecp256k1VerificationKey2019",

"controller": "did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",

"publicKey": "3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333"

}],

"authentication": [

"did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333#key"

],

"assertionMethod": [

"did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333#key"

],

"capabilityDelegation": [

"did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333#key"

],

"capabilityInvocation": [

"did:nostr:3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333#key"

]

}

```

👀

Cool. I have been hacking the did:web method

https://asats.io/docs#/public/get_did_doc__well_known_did_json_get

Do you have an example?

It’s little more than a hack, but it resolves.

https://dev.uniresolver.io/#did:web:asats.io

Someone pointed me to this: https://github.com/TBD54566975/did-nostr

It would have been nice to keep JSON-LD and W3C bloat out of Nostr, but it seems inevitable

Not really no. We can cherry pick the best parts.

JSON-LD isnt that special. It just adds hyperlinks to JSON

The main bloat is that it cant handle regular JSON, so loses backward compatibility. This can be fixed by prefixing urn:json to unregistered terms, tho