Why Nostr? What is Njump?
2023-12-19 21:56:30
in reply to

silverpill on Nostr: npub1xaklu…wudwf If reference to media file is did:apkey URL, it can be translated ...

If reference to media file is did:apkey URL, it can be translated similarly to object IDs.

Instead of encoding content hash directly in the URL, one can specify it in the object that represents media attachment:

{
"type": "Image",
"mediaType": "image/jpeg",
"href": "did:apkey:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK/media/1.jpg?hosts=server1.example,server2.example",
"digestHex": "deadbeef"
}
Author Public Key
npub1df0nthpgzfmvxrzj0cfypmmt45l0y770j260auqhm3l45hp3uhkqx27gmw