6 releases (breaking)

0.20.0 Jul 9, 2024
0.19.0 Jun 27, 2024
0.18.0 Jun 7, 2024
0.17.0 May 24, 2024
0.16.2 May 13, 2024

#218 in Algorithms

Download history 387/week @ 2024-05-09 120/week @ 2024-05-16 392/week @ 2024-05-23 199/week @ 2024-05-30 433/week @ 2024-06-06 325/week @ 2024-06-13 98/week @ 2024-06-20 388/week @ 2024-06-27 552/week @ 2024-07-04 354/week @ 2024-07-11

1,416 downloads per month
Used in 5 crates (3 directly)


40K SLoC


This crate provides blob and collection transfer support for iroh. It implements a simple request-response protocol based on blake3 verified streaming.

A request describes data in terms of blake3 hashes and byte ranges. It is possible to request blobs or ranges of blobs, as well as collections.

The requester opens a quic stream to the provider and sends the request. The provider answers with the requested data, encoded as blake3 verified streams, on the same quic stream.

This crate is usually used together with iroh-net, but can also be used with normal quinn connections. Connection establishment is left up to the user or a higher level APIs such as the iroh CLI.


  • Blob: a sequence of bytes of arbitrary size, without any metadata.

  • Link: a 32 byte blake3 hash of a blob.

  • Collection: any blob that contains links. The simplest collection is just an array of 32 byte blake3 hashes.

  • Provider: The side that provides data and answers requests. Providers wait for incoming requests from Requests.

  • Requester: The side that asks for data. It is initiating requests to one or many providers.


Examples that use iroh-blobs can be found in the iroh crate. the iroh crate publishes iroh_blobs as iroh::bytes.


This project is licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~1.5M SLoC