1# llimphi-wasm-net23P2P transport for the distribution of Tier 3 WASM apps.
45A minimal stream protocol over `BrahmanNet` (card-net, the shared
6libp2p TCP+Noise+Yamux+Kad mesh):
78- `serve_blobs` brings up a responder that, for each incoming stream on
9 `/llimphi-wasm/blob/1.0.0`, answers a `Get{hash}` by serving the bytecode from
10 a `DiskStore` (or `NotFound`).
11- `fetch_blob` opens a stream to a provider and asks for a blob by hash.
12- `fetch_blob_dht` discovers providers through the DHT and tries each one.
13- `RemoteSource` wraps the above as a synchronous `BlobSource`, so
14 `llimphi-wasm-dist`'s `resolve→verify` chain runs over the network without
15 knowing about the transport.
1617The framing copies minga's (`[u32 LE len][postcard]`). Integrity is NOT trusted to
18the network: `llimphi-wasm-dist::resolve` rehashes the received blob against the
19requested hash, so a malicious provider cannot slip in a different wasm.
2021---
2223Part of **llimphi** — see [llimphi](../README.md).
README.md
llimphi-wasm-net
P2P transport for the distribution of Tier 3 WASM apps.
A minimal stream protocol over BrahmanNet (card-net, the shared
libp2p TCP+Noise+Yamux+Kad mesh):
serve_blobs brings up a responder that, for each incoming stream on
/llimphi-wasm/blob/1.0.0, answers a Get{hash} by serving the bytecode from
a DiskStore (or NotFound).
fetch_blob opens a stream to a provider and asks for a blob by hash.
fetch_blob_dht discovers providers through the DHT and tries each one.
RemoteSource wraps the above as a synchronous BlobSource, so
llimphi-wasm-dist's resolve→verify chain runs over the network without
knowing about the transport.
The framing copies minga's ([u32 LE len][postcard]). Integrity is NOT trusted to
the network: llimphi-wasm-dist::resolve rehashes the received blob against the
requested hash, so a malicious provider cannot slip in a different wasm.