Replying to Avatar hzrd149

For those devs interested in #blossom or the ones who have written other server implementations. I have a PR out that id like to get some thoughts on

https://github.com/hzrd149/blossom/pull/12

It changes the requirements for the upload authorization

Previously the upload auth required a "size" tag matching the exact size of the blob

This would change it to require an "x" tag with a matching sha256 hash

I initially wrote to spec to require a "size" tag because I thought it would be difficult for web apps to hash the file before uploading it

Turns out its not difficult at all https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#basic_example

And id like to correct this issue before any more clients implement blossom

nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft nostr:npub1wf4pufsucer5va8g9p0rj5dnhvfeh6d8w0g6eayaep5dhps6rsgs43dgh9 nostr:npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49 nostr:npub1lunaq893u4hmtpvqxpk8hfmtkqmm7ggutdtnc4hyuux2skr4ttcqr827lj

nostr:npub13v47pg9dxjq96an8jfev9znhm0k7ntwtlh9y335paj9kyjsjpznqzzl3l8 nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s

Reply to this note

Please Login to reply.

Discussion

No replies yet.