feat: PIN discovery — WSS bootstrap, diagnostics, listen config, bootstrap service#5
Merged
feat: PIN discovery — WSS bootstrap, diagnostics, listen config, bootstrap service#5
Conversation
Add /tcp/443/wss/ addresses for all 4 IPFS bootstrap nodes in the Rust DEFAULT_BOOTSTRAP_NODES so the host publishes provider records to peers reachable by browsers via WebSocket. Add bootstrap connection diagnostic logging in the browser transport: peer:connect/disconnect events for bootstrap peers, 15s health check summary. This makes it visible when the browser's DHT routing table stays empty.
Optional Vec<String> of explicit multiaddr listen addresses. When set, cairn binds only to those addresses instead of 0.0.0.0 on all interfaces. Allows callers to skip unwanted interfaces (e.g., Docker bridges) that slow down startup with mDNS on 25+ interfaces.
Lightweight cairn-p2p node that listens on TCP, QUIC, and WebSocket, participates in the Kademlia DHT, and bridges the TCP↔WSS overlay gap. Provider records published by native hosts (TCP/QUIC) become discoverable by browser clients (WSS) through this bootstrap node. Uses Ed25519 keys for universal client compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/tcp/443/wss/) for all 4 IPFS bootstrap nodes — bridges the TCP↔WSS DHT overlay gap so browser clients can find provider records published by native hostspeer:connect/peer:disconnectevents with 15s health summarylisten_addressesoption toCairnConfig— allows callers to specify explicit interfaces instead of binding0.0.0.0(useful for skipping Docker bridges)cairn-bootstrapservice — lightweight Kademlia-only node on TCP+QUIC+WSS with Ed25519 keys, Dockerfile, READMETest plan
cargo build -p cairn-p2ppassescargo test -p cairn-p2p— 32/32 tests passnpx tsc --noEmiton TS package passescargo build -p cairn-bootstrappasses