Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow authorization events to include multiple x tags #24

Merged
merged 4 commits into from
Aug 31, 2024

Conversation

hzrd149
Copy link
Owner

@hzrd149 hzrd149 commented Aug 27, 2024

This PR updates the wording in BUD-01 and BUD-02 to allow upload, get, and delete authorization events to have multiple x tags

This would allow clients to use a single authorization event for multiple PUT /upload or DELETE /<sha256> requests

When multiple x tags are present on an authorization event sent to the DELETE /<sha256> or PUT /mirror endpoints, it MUST NOT be interpreted as a bulk delete or bulk mirror

@hzrd149 hzrd149 added the enhancement New feature or request label Aug 27, 2024
@hzrd149 hzrd149 self-assigned this Aug 27, 2024
@0xtrr
Copy link
Contributor

0xtrr commented Aug 27, 2024

ACK. This seems like a reasonable change to the protocol to improve efficiency in clients fetching from blossom servers.

I've tried to theorize on possible attacks introduced from this change but haven't been able to find any issues thus far. I've been mostly thinking about DOS related attacks.

@quentintaranpino
Copy link
Contributor

Under my point of view it is correct, we minimize unnecessary events, especially thinking in batch file uploads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants