| Crates.io | hashtree-blossom |
| lib.rs | hashtree-blossom |
| version | 0.2.3 |
| created_at | 2025-12-17 15:37:23.970932+00 |
| updated_at | 2026-01-19 13:14:09.901032+00 |
| description | Blossom protocol client for hashtree - upload/download blobs with NIP-98 auth |
| homepage | |
| repository | https://files.iris.to/#/npub1xndmdgymsf4a34rzr7346vp8qcptxf75pjqweh8naa8rklgxpfqqmfjtce/hashtree |
| max_upload_size | |
| id | 1990544 |
| size | 83,752 |
Blossom protocol client for hashtree - upload/download blobs with NIP-98 auth.
Blossom is a simple blob storage protocol. This crate provides a client for uploading and downloading blobs to Blossom servers.
use hashtree_blossom::BlossomClient;
use nostr::Keys;
let keys = Keys::generate();
let client = BlossomClient::new(keys);
// Upload
let hash = client.upload("https://blossom.example.com", &data).await?;
// Download
let data = client.download("https://blossom.example.com", &hash).await?;
// Check existence
let exists = client.has("https://blossom.example.com", &hash).await?;
Part of hashtree-rs.