Why Nostr? What is Njump?
2024-05-18 15:00:06

hzrd149 on Nostr: For those devs interested in #blossom or the ones who have written other server ...

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

Author Public Key
npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr