Skip to main content

Crate saorsa_core

Crate saorsa_core 

Source
Expand description

§Saorsa Core

A next-generation peer-to-peer networking foundation built in Rust.

§Features

  • QUIC-based transport with NAT traversal
  • IPv4-first with simple addressing
  • Kademlia DHT for distributed routing
  • Post-quantum cryptography (ML-DSA-65, ML-KEM-768)

Re-exports§

pub use identity::peer_id::PeerId;

Modules§

identity
User identity and privacy system (public — accessed via path by saorsa-node). Cryptographic Identity Module

Structs§

AdaptiveDhtConfig
Configuration for the AdaptiveDHT layer
CachedCloseGroupPeer
A peer in the persisted close group cache.
CloseGroupCache
Persisted close group snapshot with trust scores.
DHTNode
DHT node representation for network operations.
IPDiversityConfig
Configuration for IP diversity enforcement at two tiers: exact IP and subnet.
MlDsa65
ML-DSA-65 implementation using FIPS-certified algorithm
MultiAddr
Composable, self-describing network address with an optional PeerId suffix.
NodeConfig
Configuration for a P2P node
P2PNode
Main P2P network node that manages connections, routing, and communication
ResponderView
One responder’s self-inclusive closest-K view.
TrustEngine
Local trust engine based on direct peer observations.
TrustRecord
A single peer’s trust record for serialization.
WitnessedCloseGroup
Witnessed close-group selection result for a target key.

Enums§

DhtNetworkEvent
DHT network events
NodeMode
Operating mode of a P2P node.
P2PEvent
Network events that can occur in the P2P system
TrustEvent
Trust-relevant events for peer scoring.

Type Aliases§

Key
DHT key type (256-bit)