Commits


Update Cargo.lock for 0.1.3


Bump version to 0.1.3 - Fix find_value_reply serialization offsets (ID_LEN=20 vs 32) - Chunked find_value replies to avoid IP fragmentation - Increase UDP recv buffer to 65535 - Debug logging for signature failures and send results


Fix find_value_reply offset bug and increase recv buffer The find_value_reply handler used hardcoded offsets (off+24, off+26, off+28) that assumed ID_LEN=20, but ID_LEN is 32. This corrupted the NodeId field and left the flag byte as zero, causing receivers to reject the reply with "invalid message". Also increase the UDP recv buffer from 4096 to 65535 to prevent truncation of large value replies (which invalidates the Ed25519 signature). Promote signature verification failure log to DEBUG.


Bump version to 0.1.2


Add unban() to BanList and expose it on Node Allows callers to clear bans for specific addresses, needed for re-join logic where bootstrap peers may have been banned after transient failures.


Update Cargo.lock for 0.1.1


Bump version to 0.1.1


Remove stale peers without replacement from routing table When a peer exceeds STALE_THRESHOLD failures and the replacement cache is empty, remove it outright instead of leaving it in the bucket indefinitely. Prevents phantom peer accumulation in small clusters where the cache rarely fills.


Update repository URL and reset version to 0.1.0


Add brief project description to README


Initial commit NAT-aware Kademlia DHT library for peer-to-peer networks. Features: - Distributed key-value storage (iterative FIND_NODE, FIND_VALUE, STORE) - NAT traversal via DTUN hole-punching and proxy relay - Reliable Datagram Protocol (RDP) with 7-state connection machine - Datagram transport with automatic fragmentation/reassembly - Ed25519 packet authentication - 256-bit node IDs (Ed25519 public keys) - Rate limiting, ban list, and eclipse attack mitigation - Persistence and metrics - OpenBSD and Linux support