Commit Graph

45 Commits

Author SHA1 Message Date
7b120731a6 refactor p2p: keepalive pings, WASM-safe messaging, non-blocking
connections
2026-02-19 11:36:11 -03:00
75087fb635 feat: add non-blocking Noise handshake, SecureConnection transport
refactor
2026-02-19 11:34:43 -03:00
4c1927588d feat: refactor files module: platform abstractions, filesystem error
handling
2026-02-19 11:34:07 -03:00
b466979bc7 feat: refactor core+network+protocol: use platform abstractions,
transport vtable
2026-02-19 11:32:30 -03:00
63e5ac59ce feat: add platform abstraction layer for WASM compatibility 2026-02-19 11:29:47 -03:00
c18d4b3946 update build.zig 2026-02-13 19:50:39 -03:00
367be10e16 Merge branch 'main' into mwp-fixes 2026-02-13 18:52:39 -03:00
46c1fa13af fix tests: disable Noise encryption in multi-peer, swarm, chaos perf
tests
2026-02-13 17:29:45 -03:00
6ec1346cfd fix protocol+tests: replay protection rework, wire envelope nonce auth,
flaky e2e test deadlines, build imports
2026-02-13 16:37:30 -03:00
c94d189d42 [DO-NOT-MERGE] Proposed explanation on request_id vs nonce topic 2026-02-12 14:13:24 +01:00
e745f849dc [DO-NOT-MERGE] proposed fix (thx to claude) 2026-02-12 14:12:28 +01:00
mdt
1180227fba Merge pull request 'update docs' (#3) from docs-update-0.0.1 into main
Reviewed-on: #3
2026-02-11 18:28:35 +00:00
b8857d9548 update docs 2026-02-11 15:27:57 -03:00
mdt
b5f4be0ade Merge pull request 'create Mutual Witness Protocol specs and implementation.' (#1) from mwp into main
Reviewed-on: #1
2026-02-11 17:38:08 +00:00
789897b51a fix infra: saturating memory tracker, check build imports, buffer growth
test
2026-02-11 14:22:05 -03:00
47f949e4cc fix files: resume state hash validation, download cancel batching, piece
response bounds
2026-02-11 14:21:44 -03:00
30bad26e67 fix MWP: incremental Blake2b hashing, address count limit in
deserialization
2026-02-11 14:21:23 -03:00
137469c3e1 fix correctness: IPv6 :: parsing, AF_INET6 on macOS, health check units,
DHT heap fallback
2026-02-11 14:20:55 -03:00
e45bffbd8b fix crypto: secure zeroization of handshake state, ephemeral keys,
derived keys
2026-02-11 14:20:16 -03:00
4770fad51c fix memory safety: use-after-free in DHT, buffer overflows in TURN,
integer truncation
2026-02-11 14:19:28 -03:00
88a2abe521 fix concurrency: resolve deadlock and lock ordering in P2P shutdown and
peer mapping
2026-02-11 14:19:09 -03:00
4c64c4cc0a Merge branch 'main' into mwp 2026-02-10 20:25:27 -03:00
4a79a9cedc fix benchmark buffer operations exceeding rate limit by reducing
iterations to stay under BufferManager cap
2026-02-10 20:16:40 -03:00
134ddde241 enable "test-connected-coverage" and "test-manager-src" in coverage
script
2026-02-10 20:16:24 -03:00
ae1061f4a5 reduce processSessions log spam and fix kcov bottleneck. raise TIMING
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
2026-02-10 20:16:01 -03:00
ab150b3489 use core.log.err for oversized message security logs to avoid Zig
"logged errors" test failures
2026-02-10 20:15:23 -03:00
37a74e1ca9 fix: "test-connected-coverage" Noise handshake deadlock. spawn
background server update thread during connectToPeer when Noise is
enabled so the 3 message handshake can complete in single threaded tests
2026-02-10 20:15:01 -03:00
b7d013a272 clean up tests. remove placeholder assert-true tests, fix replay
protection and NAT test logic, fix MWP connection test peer ID
registration, use atomic port counter for test parallelism
2026-02-10 20:13:54 -03:00
a44af22739 improve docker healthchecks to verify port binding and iptables chains
not just process existence
2026-02-10 20:12:21 -03:00
49ef3f6640 harden MWP error handling. return errors from signing instead of
unreachable, fix memory leak on deserialization failure, validate peer
publication timestamps against max skew
2026-02-10 20:11:30 -03:00
bc4c49f724 network reliability and security hardening. auto-cleanup expired backoff
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
2026-02-10 20:10:50 -03:00
b744ba5c09 add DHT security mode and event queue overflow policy. bidirectional
node-to-peer ID mapping with Sybil/impersonation checks, configurable
event queue overflow strategy (drop_oldest/drop_newest/fail)
2026-02-10 20:09:31 -03:00
600fdd4245 harden core layer. panic on refcount underflow instead of silent error,
replace socket magic numbers with posix constants, fix race where socket
state was set after closing FD
2026-02-10 20:08:11 -03:00
mdt
4d56e11139 Merge pull request 'compiling on linux - bunch of fixes' (#2) from compiling-on-linux into main
Reviewed-on: #2
Reviewed-by: mdt <mdt@anon.pff.sh>
2026-02-10 14:44:43 +00:00
2fe03cb855 fix MWP hole punch for production use. bind to 0.0.0.0 instead of
published IP, resend packets every 500ms instead of single-shot, fix
Docker iptables-legacy chains so miniupnpd port mapping fully works
without warnings
2026-02-10 11:26:57 -03:00
777af83c7f fix libc linking issue on Linux 2026-02-10 13:13:36 +01:00
3ef7e322fa fix strange compiler error 2026-02-10 13:12:03 +01:00
33730fed8a add UPnP IGD for automatic port mapping and external address discovery 2026-02-09 17:49:44 -03:00
cf5eb0d5fd add NAT-PMP for automatic port mapping and external address discovery 2026-02-09 17:05:24 -03:00
7b47ef155c bidirectional ip reflection for listener address discovery 2026-02-09 16:02:23 -03:00
16c17054e8 fix call to fallocate on linux 2026-02-09 15:04:47 +01:00
59e9e420be update mwp docs 2026-02-08 13:16:50 -03:00
f86119f571 add IP Reflection to DHT for zero-infrastructure NAT traversal
bundled STUN. every DHT response now includes observed_addr field so
nodes discover their public IP without external STUN servers
2026-02-07 21:09:59 -03:00
abb398d363 create Mutual Witness Protocol specs and implementation. mwp aims to be
a zero-infrastructure NAT traversal
2026-02-07 18:01:12 -03:00
2b7ab5f570 ab ovo 2026-02-06 21:03:59 -03:00