Crates.io | iroh-blobs |
lib.rs | iroh-blobs |
version | |
source | src |
created_at | 2024-05-13 15:07:36.796419 |
updated_at | 2024-12-04 11:10:23.567266 |
description | blob and collection transfer support for iroh |
homepage | |
repository | https://github.com/n0-computer/iroh-blobs |
max_upload_size | |
id | 1238532 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.
HashSeq: a blob that contains a sequence of links. Its size is a multiple of 32.
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.