13 — Sharded distribution
Weft
Deterministic 4 MiB chunking, a signed binary Merkle manifest, and parallel fetch with per-chunk verification. Weft is what lets MARS-anchored artifacts and Sigil-committed datasets cross the P2P fabric without trusting any single peer. Records the DHT serves: /weft/v1/manifest, /weft/v1/chunk, /weft/v1/availability.
A signed Merkle manifest describes the chunks. Parallel fetch assembles the payload while each piece is verified against its address.
- 01Read the signed manifest
- 02Fetch the chunks in parallel
- 03Verify the assembled payload
Deterministic 4 MiB chunking — tunable from 1 byte to 64 MiB.
BLAKE3 chunk IDs + a deterministic binary Merkle tree.
Signed manifests on the weave.weft.manifest.v1 schema.
Parallel fetch with per-chunk verification — bad bytes never reach the app.
DHT records: /weft/v1/manifest/<root>, /weft/v1/chunk/<id>, /weft/v1/availability/<root>.
Pairs with Sigil + MARS — anchored artifacts ship over the P2P fabric.
A handful of lines.
use weave_weft::local::LocalWeftStore;
// Given an authorized path, producer and artifact metadata.
let store = LocalWeftStore::open(path)?;
let published = store.publish_bytes(&payload, config, producer, artifact, peer)?;
let verified = store.fetch_payload(published.manifest.root, 4).await?;
// Local round trip. Remote sharing needs an admitted network adapter.