mirror of
https://github.com/hzrd149/blossom.git
synced 2025-12-12 15:58:49 +00:00
Work in progress Blossom BUD-05
This commit is contained in:
22
buds/02.md
22
buds/02.md
@@ -19,6 +19,28 @@ A blob descriptor is a JSON object containing `url`, `sha256`, `size`, `type`, a
|
||||
- `size` The size of the blob in bytes
|
||||
- `type` (optional) The MIME type of the blob
|
||||
- `uploaded` The unix timestamp of when the blob was uploaded to the server
|
||||
- `compressed` (optional) A JSON object containing the `sha256`, `size`, `library`, `version`, and `parameters` JSON object containing the compression parameters `quality` and `mode`. This field is optional and should only be included if the blob was compressed
|
||||
|
||||
Blob Descriptor example:
|
||||
```json
|
||||
{
|
||||
"sha256": "b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553",
|
||||
"uploaded": 1708773959,
|
||||
"size": 123456,
|
||||
"type": "application/pdf",
|
||||
"compressed": {
|
||||
"sha256": "e2e2e1d2b9c04e2a9914c245e3f789d230e3c2d5e3a0f5c6e4b4e3f9c7d4f3e2",
|
||||
"size": 56789,
|
||||
"library": "brotli",
|
||||
"version": "1.0.7",
|
||||
"parameters": {
|
||||
"quality": 11,
|
||||
"mode": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Servers may include additional fields in the descriptor like `magnet`, `infohash`, or `ipfs` depending on other protocols they support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user