hzrd149 on Nostr: Released blossom-server v4.1.0 and blossom-client-sdk v0.9.0 with support for ...
Released blossom-server v4.1.0 and blossom-client-sdk v0.9.0 with support for mirroring blobs
I added an optional "/mirror" endpoint to the blossom spec that similar to the /upload endpoint but with the difference that the client can provide a URL to the blob instead of uploading it
https://github.com/hzrd149/blossom/blob/master/buds/04.mdThis allows clients to upload a blob to a single server and then ( using the same authorization event ) mirror it to as many servers as they like
https://github.com/hzrd149/blossom-client-sdk?tab=readme-ov-file#upload-and-mirrorThis would also in theory allow a user to easily "backup" any existing file that is not hosted on a blossom server, as long as they knew the sha256 hash beforehand
🌸 #blossom
Published at
2024-06-06 02:47:43Event JSON
{
"id": "ee3ce32bfaa6de3d36545003b623a296c62f803e591e708c5db64f91fc6311a2",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1717642063,
"kind": 1,
"tags": [
[
"t",
"blossom"
]
],
"content": "Released blossom-server v4.1.0 and blossom-client-sdk v0.9.0 with support for mirroring blobs\n\nI added an optional \"/mirror\" endpoint to the blossom spec that similar to the /upload endpoint but with the difference that the client can provide a URL to the blob instead of uploading it\nhttps://github.com/hzrd149/blossom/blob/master/buds/04.md\n\nThis allows clients to upload a blob to a single server and then ( using the same authorization event ) mirror it to as many servers as they like\nhttps://github.com/hzrd149/blossom-client-sdk?tab=readme-ov-file#upload-and-mirror\n\nThis would also in theory allow a user to easily \"backup\" any existing file that is not hosted on a blossom server, as long as they knew the sha256 hash beforehand\n\n🌸 #blossom",
"sig": "0f5d96c64ef9412955a84feec36b0aa7a507cf2ab89aca213ce88db2d34f7f33eb65b12c180eadd58d244efd0646bddf3bc868bef37ff9551f36a4598802e4fb"
}