Expand description
Blossom protocol implementation (BUD-01, BUD-02)
Implements blob storage endpoints with Nostr-based authentication. See: https://github.com/hzrd149/blossom
Structs§
- Blob
Descriptor - Blob descriptor returned by upload and list endpoints
- Blossom
Auth - Parsed Nostr authorization event
- List
Query - Query parameters for list endpoint
Constants§
- DEFAULT_
MAX_ UPLOAD_ SIZE - Default maximum upload size in bytes (5 MB)
Functions§
- cors_
preflight - CORS preflight handler for all Blossom endpoints Echoes back Access-Control-Request-Headers to allow any headers
- delete_
blob - DELETE /
- Delete a blob (BUD-02) Note: Blob is only fully deleted when ALL owners have removed it - head_
blob - HEAD /
- Check if blob exists - list_
blobs - GET /list/
- List blobs for a pubkey (BUD-02) - upload_
blob - PUT /upload - Upload a new blob (BUD-02)
- verify_
blossom_ auth - Parse and verify Nostr authorization from header Returns the verified auth or an error response