torrentdht 0.1.1

DHT discovery with mTLS handshake handoff; optional BitTorrent when the host opts in
Documentation
//! Secure DHT discovery → mTLS 1.3 → host handshake → credential handoff.
//!
//! # DHT key roles (same UDP node, two namespaces)
//!
//! - **Network identity key** (`SecurePolicy::network_dht_key`): used by `SecureNode` for
//!   last-known / DHT reconnect discovery of authorized peers on this private network.
//! - **Torrent info-hash**: used by `Client`/`Session` for BitTorrent swarm peer discovery
//!   (`get_peers` / `announce_peer`). Each discovered address is then dialed with mTLS.
//!
//! BitTorrent wire runs only after a successful secure handoff.

mod credentials;
mod default_policy;
mod env;
mod peers;
mod policy;
mod session;
mod tls;

pub use credentials::{CredentialBundle, CredentialChannel, CredentialMode};
pub use default_policy::EnvSecurePolicy;
pub use env::SecureEnv;
pub use peers::PeerEndpointStore;
pub use policy::{
    Approval, HandshakeOffer, Handoff, HandoffNotice, Identity, PolicyHandle, RatchetContext,
    SecurePolicy, SecureTransport, SessionBroken,
};
pub use session::{SecureNode, SecureNodeConfig};
pub use tls::TlsMaterial;