mirror of
https://github.com/hzrd149/blossom.git
synced 2025-12-08 14:58:49 +00:00
some changes
This commit is contained in:
13
buds/05.md
13
buds/05.md
@@ -26,6 +26,10 @@ File storage servers `MUST` store the following metadata for each compressed blo
|
||||
|
||||
Servers `MUST` normalize the blob metadata to ensure that the same compressed blob with the same parameters will always produce the same result, thereby ensuring deterministic compression and anonymizing any potential user data.
|
||||
|
||||
## Client adaptation
|
||||
|
||||
Clients `MUST` verify the metadata of the compressed blob to ensure that the compressed blob matches the original blob. Clients `MUST` sign and publish a new authorization event with the new blob hash. Clients `MUST` upload the compressed blob to the server using the new authorization event and the 'compress' field set to false or not set.
|
||||
|
||||
## GET /metadata - Retrieve blob metadata
|
||||
|
||||
The GET /metadata/<sha256> endpoint `MUST` return a [Blob Descriptor](https://github.com/hzrd149/blossom/blob/master/buds/02.md#blob-descriptor) containing the metadata fields for the requested blob or an error object if the blob does not exist.
|
||||
@@ -61,13 +65,12 @@ Example response:
|
||||
1. Server A compresses the blob using it's preferred library and parameters
|
||||
1. Server A stores the blob metadata
|
||||
1. Server A returns [Blob Descriptor](./02.md#blob-descriptor)
|
||||
1. (Optional) Client verify the metadata matches the original blob compressing and comparing the blob locally with the same returned parameters
|
||||
1. Client uploads the compressed blob to Server B using the original authorization event and the 'compress' field set to false.
|
||||
|
||||
1. Server B verifies blob hash metadata matches `x` tag in authorization event
|
||||
1. Client verify the metadata matches the original blob compressing and comparing the blob locally with the same returned parameters
|
||||
1. Client signs and publishes a new authorization event with the new blob hash and the 'compress' field set to false
|
||||
1. Client uploads the compressed blob to Server B using the new authorization event and the 'compress' field set to false or not set
|
||||
1. Server B verifies blob hash metadata matches `x` tag in the new authorization event
|
||||
1. Server B stores the blob metadata
|
||||
1. Server B returns [Blob Descriptor](./02.md#blob-descriptor)
|
||||
1. (Optional) Client verify the metadata matches the original blob compressing the blob locally with the same parameters
|
||||
|
||||
(optional using the /mirror endpoint)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user