hashtree-network
Shared mesh networking primitives for hashtree: routing, signaling, negotiated peer links, and routed store logic.
The core is transport-generic:
SignalingTransportabstracts discovery and negotiation message deliveryPeerLink/PeerLinkFactoryabstract the direct byte path between peersMeshRoutercoordinates peer discovery plus negotiated link setupMeshStoreCoreruns routed retrieval over any localStore
The default production composition uses Nostr relays for signaling and WebRTC data channels for direct links, but the same router/store core also powers simulation and can support nearby transports such as Bluetooth.
Architecture
- Discovery and negotiation flow through a
SignalingTransport - Direct peer links are created by a
PeerLinkFactory MeshStoreCoreroutes hash-addressed requests over the connected peers
Usage
hashtree-cli and simulation both build on this crate. The production
MeshStore wrapper is intentionally thin and just wires the default Nostr +
WebRTC transport pair into the shared core.