feat(p2p): adopt real QUIC/libp2p transport for gossip mesh and envelope forwarding
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- distributed-systems, networking
Research direction
Start with the documented transport mapping in the verification comment on issue #2 and the existing paths src/udp_gossip.rs, src/gossip_daemon.rs, src/http_federation.rs, src/federation_client.rs, and src/p2p.rs. Then evaluate QUIC multiaddrs in PeerRecord.multiaddr and plan the daemon transport changes. Done means two daemons exchange signed STHs and envelopes over QUIC without HTTP, the two-daemon E2E test measures local hop latency, and the docs describe the implemented transport.
Written by the indexing model from the issue text.
Description
Follow-up re-scoping node#2 (honest architecture check 2026-11-20).
Context
node#2 ("feat(p2p): implement libp2p QUIC transport mesh and Gossipsub Merkle head sync") is fully implemented in spirit but NOT with libp2p: the real transport is UDP datagram gossip (src/udp_gossip.rs + src/gossip_daemon.rs, signed STHs per #21) and HTTP replication (src/http_federation.rs + src/federation_client.rs, per-peer Bearer + TLS per #18). No libp2p/quinn dependency exists in Cargo.toml. Verification comment on #2 documents the mapping criterion-by-criterion.
Docs were corrected in the #22 merge (a187fb1): README badge now reads "UDP Gossip + HTTP Federation", CONFIGURATION/ARCHITECTURE state explicitly that real QUIC/libp2p is NOT implemented.
Remaining work (real QUIC/libp2p)
- Evaluate
/ip4/.../udp/.../quic-v1multiaddrs inPeerRecord.multiaddrwith an actual QUIC stack (quinn) instead of treating them as opaque strings. - Replace or complement UDP+HTTP gossip with libp2p Gossipsub for STH propagation, keeping Ed25519 STH signatures (#21) and equivocation detection (
src/p2p.rs). - Envelope forwarding over the QUIC mesh with < 50ms local hop latency (original #2 acceptance criterion), measured in a two-daemon E2E test.
- All files stay < 300 lines;
cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo testgreen.
Acceptance criteria
- Two daemon instances exchange signed STHs and envelopes over QUIC with no HTTP involvement.
- Docs updated to reflect the real transport again.
Effort: L (new transport dependency + daemon rework). Priority medium: current UDP+HTTP mesh satisfies federation functionally.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alfonsodg/sonaraim-node
-
bug(node): SigV4 presign date applies the epoch offset twice — media uploads can never validateOpenarea::node effort::s impact::medium priority::medium source::auto status::review type::bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
alfonsodg/sonaraim-node#29 · 1 comment ·
-
area::node effort::xs impact::low priority::low source::auto status::review type::docs
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
alfonsodg/sonaraim-node#28 · 1 comment ·
-
area::node effort::s impact::medium priority::low source::auto status::review type::docs
Difficulty 3/5 1-2 days Newbie friendliness 72/100
alfonsodg/sonaraim-node#27 · 1 comment ·
-
area::node effort::m impact::medium priority::medium source::user status::review type::refactor
Difficulty 1/5 Under an hour Newbie friendliness 20/100
alfonsodg/sonaraim-node#26 · 1 comment ·
-
area::node effort::m impact::high priority::medium source::auto status::review type::bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
alfonsodg/sonaraim-node#25 · 2 comments ·
All issues in alfonsodg/sonaraim-node
Similar issues
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day