Module dht

Source
Expand description

Distributed Hash Table implementation Distributed Hash Table (DHT) Implementation

This module provides a Kademlia-based DHT for distributed peer routing and data storage. It implements the core Kademlia algorithm with proper distance metrics, k-buckets, and network operations for a fully decentralized P2P system.

The implementation includes S/Kademlia security extensions for enhanced protection against various attacks on the DHT infrastructure.

Modules§

ipv6_identity
IPv6-based DHT Node Identity System
skademlia
S/Kademlia Security Extensions

Structs§

ConsistencyReport
Consistency check report
DHT
Main DHT implementation with S/Kademlia security extensions
DHTConfig
DHT configuration parameters
DHTNode
DHT node information
DHTStats
DHT statistics
DHTStorage
DHT storage for local records
InboxInfo
Inbox information returned to users
InboxMessage
Inbox message stored in DHT
InboxMessageIndex
Message index for efficient inbox querying
InboxMetadata
Inbox metadata stored in DHT
Key
DHT key type with proper Kademlia distance calculation
LookupState
DHT lookup state for iterative queries
MessageAttachment
Message attachment metadata
MessageRef
Reference to a message in the index
Record
DHT record containing key-value data with metadata
RepairResult
Result of a repair operation
RoutingTable
Kademlia routing table
SerializableDHTNode
Serializable DHT node for network transmission

Enums§

DHTQuery
DHT query types
DHTResponse
DHT response types