1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Transport layer for Blossom blob operations.
//!
//! The wire protocol module (`wire`) defines the framing format shared
//! between all transports. The `iroh_transport` module (behind the
//! `iroh-transport` feature) provides a P2P QUIC transport using iroh.
//!
//! ## Wire Protocol
//!
//! Each QUIC stream carries one request + response using JSON-line headers
//! followed by optional binary payload:
//!
//! ```text
//! REQUEST: {"op":"get","sha256":"...","auth":"Nostr ..."}\n
//! RESPONSE: {"status":"ok","body_len":12345}\n
//! [binary blob bytes]
//! ```
//!
//! ## iroh Transport
//!
//! Enable the `iroh-transport` feature to use P2P QUIC connections:
//!
//! ```toml
//! blossom-rs = { version = "0.1", features = ["iroh-transport"] }
//! ```
pub use IrohBlossomClient;
pub use ;
pub use ;