create Mutual Witness Protocol specs and implementation. #1

Merged
mdt merged 26 commits from mwp into main 2026-02-11 17:38:08 +00:00
Owner

mwp aims to be a zero-infrastructure NAT traversal

bidirectional ip reflection for listener address discovery

  • DHT requests now include target's observed address
  • listeners learn their address from incoming requests
  • added multi-source consensus with confidence levels

implemented UPnP IGD client (SSDP multicast discovery + SOAP control) as
a fallback when NAT-PMP is unavailable. the address discovery chain is
now: explicit IP > NAT-PMP > UPnP IGD > IP Reflection.

added Docker e2e test (docker-tests/upnp/) that disables NAT-PMP on the
router to verify the full UPnP flow in isolation.

mwp aims to be a zero-infrastructure NAT traversal bidirectional ip reflection for listener address discovery - DHT requests now include target's observed address - listeners learn their address from incoming requests - added multi-source consensus with confidence levels implemented UPnP IGD client (SSDP multicast discovery + SOAP control) as a fallback when NAT-PMP is unavailable. the address discovery chain is now: explicit IP > NAT-PMP > UPnP IGD > IP Reflection. added Docker e2e test (docker-tests/upnp/) that disables NAT-PMP on the router to verify the full UPnP flow in isolation.
mdt added 1 commit 2026-02-07 21:43:20 +00:00
mdt added 1 commit 2026-02-08 00:10:10 +00:00
bundled STUN. every DHT response now includes observed_addr field so
nodes discover their public IP without external STUN servers
mdt added 1 commit 2026-02-08 16:17:00 +00:00
mdt added 1 commit 2026-02-09 19:02:36 +00:00
mdt added 1 commit 2026-02-09 20:05:35 +00:00
mdt added 1 commit 2026-02-09 20:49:55 +00:00
mdt added 1 commit 2026-02-10 14:27:09 +00:00
published IP, resend packets every 500ms instead of single-shot, fix
Docker iptables-legacy chains so miniupnpd port mapping fully works
without warnings
mdt added 11 commits 2026-02-10 23:16:54 +00:00
replace socket magic numbers with posix constants, fix race where socket
state was set after closing FD
node-to-peer ID mapping with Sybil/impersonation checks, configurable
event queue overflow strategy (drop_oldest/drop_newest/fail)
entries, atomic file writes for key pinning, forward secrecy via
rekeying, peer eviction when at max connections, NAT-PMP source address
verification, UPnP response timeout
unreachable, fix memory leak on deserialization failure, validate peer
publication timestamps against max skew
not just process existence
protection and NAT test logic, fix MWP connection test peer ID
registration, use atomic port counter for test parallelism
background server update thread during connectToPeer when Noise is
enabled so the 3 message handshake can complete in single threaded tests
"logged errors" test failures
threshold from 1ms to 10ms, demote ADAPTIVE in_flight log to debug,
switch 3 tests from full init to initForTesting eliminating thread pool
overhead under kcov
script
iterations to stay under BufferManager cap
mdt added 1 commit 2026-02-10 23:25:37 +00:00
mdt added 7 commits 2026-02-11 17:22:17 +00:00
mdt merged commit b5f4be0ade into main 2026-02-11 17:38:08 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mdt/zigp2p#1
No description provided.