{"id":"964c7294bfe00c090f8be6927c99beb7e87773ce3ed34d7cced290126adfcc0f","pubkey":"1336a17e161d0e8af2b68ee95ad2a479fc38bef96a17d6127ea02a40d28dd97e","created_at":1740604825,"kind":30817,"tags":[["d","bud-08"],["title","BUD-08: Nostr File Metadata Tags"],["summary","How a server returns NIP-94 file metadata alongside a blob descriptor, so a client can publish the file without recomputing it."],["s","draft"],["t","blossom"],["t","bud"],["alt","A specification: BUD-08: Nostr File Metadata Tags"],["client","openspecs-import"],["published_at","1725909924"],["proxy","https://github.com/hzrd149/blossom/blob/b5bd2801d1763aa635fc8fea7a76597e0eb18990/buds/08.md","web"],["x","2e5b020aae939d11dfb873e0a12d52d65c9ed23a9b715dc6658d94dc91e9894d"]],"content":"# BUD-08\n\n## Nostr File Metadata Tags\n\n`draft` `optional`\n\nDescribes how a server could return nostr [NIP-94 File Metadata](nostr:naddr1qvzqqqrcvypzq2eeknl7v2fnm7tsuxfkds3vrcyjl9fls070a465urcy6k3mgk0eqqrxu6ts95unghjuv2m) tags from the `/upload` and `/mirror` endpoints\n\n### Returning tags\n\nAs described in [BUD-02](nostr:naddr1qvzqqqrcvypzqyek59lpv8gw3tetdrhfttf2g70u8zl0j6sh6cf8agp2grfgmkt7qqrxyaty95cryxk74nh#blob-descriptor) servers MAY add any additional fields to a blob descriptor\n\nServers MAY return an additional `nip94` field in the [blob descriptor](nostr:naddr1qvzqqqrcvypzqyek59lpv8gw3tetdrhfttf2g70u8zl0j6sh6cf8agp2grfgmkt7qqrxyaty95cryxk74nh#blob-descriptor) from the `/upload` or `/mirror` endpoints\n\nThe `nip94` field should contain a JSON array with KV pairs as defined in [NIP-94](nostr:naddr1qvzqqqrcvypzq2eeknl7v2fnm7tsuxfkds3vrcyjl9fls070a465urcy6k3mgk0eqqrxu6ts95unghjuv2m)\n\nAn example response would look like:\n\n```json\n{\n\t\"url\": \"https://cdn.example.com/b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553.pdf\",\n\t\"sha256\": \"b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553\",\n\t\"size\": 184292,\n\t\"type\": \"application/pdf\",\n\t\"uploaded\": 1725909682,\n\t\"nip94\": [\n\t\t[\"url\", \"https://cdn.example.com/b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553.pdf\"],\n\t\t[\"m\", \"application/pdf\"],\n\t\t[\"x\", \"b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553\"],\n\t\t[\"size\", \"184292\"],\n\t\t[\"magnet\", \"magnet:?xt=urn:btih:9804c5286a3fb07b2244c968b39bc3cc814313bc&dn=bitcoin.pdf\"],\n\t\t[\"i\", \"9804c5286a3fb07b2244c968b39bc3cc814313bc\"]\n\t]\n}\n```\n","sig":"2542e8fc757fa05c4aec97d0c5287bd5e0c273dd904d0ee3cc010d6c58e468f5a4ed208fd11c436c96e69ed29f041c73e6e84f80aa8b8b6be440a6dddafd08a3"}