brito on Nostr: Building static paths to serve files (gifs on this case) is not a good path for ...
Building static paths to serve files (gifs on this case) is not a good path for decentralization. It would be better to store the sha256 of the file on the note and then query the relays if they have that hash on their disks.
This way you don't care which server the file is coming from, it might even be cached on the machine and notes will be future-proof like the rest of nostr.
Published at
2024-09-04 16:25:40Event JSON
{
"id": "0ea2b2d4d048a1b3a891ca915a3bd94598379b9899824a55d4320123d37beb72",
"pubkey": "ba5115c37b0f911e530ed6c487ccbd9b737da33fd4b88a9f590860378c06af62",
"created_at": 1725467140,
"kind": 1,
"tags": [
[
"p",
"8c430bdaadc1a202e4dd11c86c82546bb108d755e374b7918181f533b94e312e"
],
[
"p",
"9989500413fb756d8437912cc32be0730dbe1bfc6b5d2eef759e1456c239f905"
],
[
"p",
"8fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c"
],
[
"p",
"be7358c4fe50148cccafc02ea205d80145e253889aa3958daafa8637047c840e"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"e",
"17b335458cc4f2dd68ede7d2f3279f26046667f81a15805d1d9a64db148c2a1b",
"",
"root"
],
[
"e",
"000093916552010c355389af94444d06fca01db1eb0481b16d838b2184514265",
"wss://nostr.mom",
"reply"
]
],
"content": "Building static paths to serve files (gifs on this case) is not a good path for decentralization. It would be better to store the sha256 of the file on the note and then query the relays if they have that hash on their disks.\n\nThis way you don't care which server the file is coming from, it might even be cached on the machine and notes will be future-proof like the rest of nostr.",
"sig": "92f027ca892545ab9c5ada997d675a73cd383a000adbddf81758c3cda99acd0921f7e6cc46c6c1109b6a4539bbd260056d9c943f669063448d4b6d1e1fb360b9"
}