Repository navigation
feat(p2p): implement Kademlia DHT routing table with XOR metric and alpha-concurrency lookup - #8058
Conversation
…lpha-concurrency lookup - 256-bit NodeId space with cryptographic SHA-256 key hashing - XOR distance metric calculation with highest differing bit bucket mapping - 256 k-buckets with k=20 and Least-Recently-Seen (LRS) replacement cache - Health tracking and eviction on failed ping threshold - Alpha-concurrent (alpha=3) iterative node lookup with shortlist convergence - Full unit test coverage in src/__tests__/p2p/KademliaRoutingTable.test.ts
|
@riteshbonthalakoti is attempting to deploy a commit to the pandeysatyam1802-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
🎉 Thank you for contributing to WorkSphere!
💡 Connect & Support:
|
There was a problem hiding this comment.
✅ Auto-approved! This PR properly references assigned issue(s): #8057.
b732a28
into
SatyamPandey-07:main
There was a problem hiding this comment.
✅ Auto-approved! This PR properly references assigned issue(s): #8057.
|
🚀 Auto-merge complete! This pull request is linked to issue(s) #8057 and has been automatically squash-merged into Thank you for contributing to WorkSphere! ✨ |
1 similar comment
|
🚀 Auto-merge complete! This pull request is linked to issue(s) #8057 and has been automatically squash-merged into Thank you for contributing to WorkSphere! ✨ |
Closes #8057
Summary of Changes
NodeDistancecalculating symmetric XOR metric distance d(x, y) = x ^ y and determining highest differing bit bucket indices (0 to 255).KBucketwith Least-Recently-Seen (LRS) policy, replacement cache for full buckets, and automatic eviction upon reaching failed ping thresholds.KademliaRoutingTableholding 256 k-buckets with contact addition, removal, health status tracking, andfindClosestreturning k closest contacts to any 256-bit target key.IterativeNodeLookupcoordinating parallel queries with shortlist convergence.src/__tests__/p2p/KademliaRoutingTable.test.tswith 100% test pass rate.src/core/p2p/index.tsand re-exported insrc/core/index.ts.