update wording to allow authorization events to include multiple x tags

This commit is contained in:
hzrd149
2024-08-27 13:26:02 +03:00
parent 4f650d799f
commit 2de7c0dd25
4 changed files with 19 additions and 21 deletions

View File

@@ -1,8 +1,6 @@
BUD-02
======
# BUD-02
Blob upload and management
--------------------------
## Blob upload and management
`draft` `optional`
@@ -37,7 +35,7 @@ Servers MAY reject an upload for any reason and should respond with the appropri
Servers MUST accept an authorization event when uploading blobs and should perform additional checks
1. The `t` tag MUST be set to `upload`
2. The `x` tag MUST be present and set to the sha256 hash of the blob
2. MUST contain at least one `x` tag matching the sha256 hash of the blob being uploaded
Example Authorization event:
@@ -103,7 +101,7 @@ Servers MUST accept an authorization event when deleting blobs
Servers should perform additional checks on the authorization event
1. The `t` tag must be set to `delete`
2. A `x` tag must be present and set to the sha256 hash of the blob being deleted
2. MUST contain at least one `x` tag matching the sha256 hash of the blob being deleted
Example Authorization event: