Oddbean new post about | logout
 @The Fishcake🐶🐾 nostr.build is you, right? would be cool if you created a new path for files where the hash can also retrieve them not just the nice short names 
 Not possible since account images are not deduplicated and one hash can reference and does reference multiple media files. Beto you ask for a reason, given that the storage is private, users may choose to have a duplicate posted in the note and then deleted from the public eye while a copy remains in the storage. So in short, not a good use case for account specific storage. 🐶🐾🫡 
 no, the chances of a hash collision from different files is so small as to be practically zero

the hash does not reveal anything unless you know where to find it

and the short codes you already use are way more likely to have a collision than a full 32 byte, 64 character hexadecimal (or shorter bech32) - now, those hashes, yes, they can collide much more easily, but even still they are at least 48 bits by my estimation which is far far less than a full 32 byte, 256 bit hash 
 I am not sure if I said it clearly, but what I mean is that identical files do coexist in the same account. User uploads same image more than once.🐶🐾🫡 
 if you stored them by hash you could deduplicate them 
 also, if you mean "how do i have multiple filenames refer to one file" it's called a hard link 
 https://www.baeldung.com/linux/files-replace-duplicates 
 yes, in the case where you want the user to be able to change the different named files independently then you can't do this but if they are basically immutable then it doesn't matter