Expand description
torrentdht — DHT discovery with mTLS handshake handoff; optional BitTorrent.
Re-exports§
pub use inbound::InboundHandler;pub use client::Client;pub use config::BootstrapNode;pub use config::Config;pub use config::PeerDiscoveryMode;pub use config::ResilienceConfig;pub use config::SwarmSecurity;pub use config::SwarmTransport;pub use swarm::validate_swarm_stack;pub use swarm::SwarmBackend;pub use swarm::SwarmStack;pub use layout::TorrentLayout;pub use rpc::validate_rpc_config;pub use integrity::build_integrity_image_async;pub use integrity::default_sidecar_root;pub use integrity::derive_signing_seed;pub use integrity::load_signing_key;pub use integrity::sidecar_root_for_config;pub use integrity::sign_info_dict;pub use integrity::signing_key_from_seed;pub use integrity::validate_integrity_image;pub use integrity::verify_info_dict;pub use integrity::IntegrityConfig;pub use integrity::IntegrityImageReport;pub use integrity::IntegrityManifest;pub use integrity::TorrentSignature;pub use integrity::PUBLIC_KEY_LEN;pub use integrity::SEED_LEN;pub use integrity::SIGNATURE_LEN;pub use ops::format_status_table;pub use ops::scan_download_dir;pub use ops::DownloadStatus;pub use error::Error;pub use error::Result;pub use dht::DhtNode;pub use metadata::fetch_metadata;pub use session::DownloadProgress;pub use session::ResumeCheckpoint;pub use session::Session;pub use store::FlushStats;pub use store::StagedStore;pub use store::StagedStoreConfig;pub use torrent::ContentLayout;pub use torrent::InfoHash;pub use torrent::InfoHashV2;pub use torrent::MagnetLink;pub use torrent::TorrentBuilder;pub use torrent::TorrentFile;pub use torrent::TorrentInfo;pub use torrent::ensure_magnet_allowed;pub use torrent::ensure_torrent_trusted;pub use torrent::parse_magnet;pub use torrent::pieces_for_selected_files;pub use torrent::torrent_to_magnet;pub use torrent::validate_signed_torrent_config;pub use types::BlockKey;pub use tracker::announce;pub use tracker::announce_http;pub use tracker::AnnounceEvent;pub use secure::Approval;pub use secure::CredentialBundle;pub use secure::CredentialChannel;pub use secure::CredentialMode;pub use secure::EnvSecurePolicy;pub use secure::HandshakeOffer;pub use secure::Handoff;pub use secure::HandoffNotice;pub use secure::Identity;pub use secure::PeerEndpointStore;pub use secure::PolicyHandle;pub use secure::RatchetContext;pub use secure::SecureEnv;pub use secure::SecureNode;pub use secure::SecureNodeConfig;pub use secure::SecurePolicy;pub use secure::SecureTransport;pub use secure::SessionBroken;pub use secure::TlsMaterial;
Modules§
- bencode
- client
- config
- dht
- error
- inbound
- integrity
- layout
- Host-owned filesystem layout: content vs ledger/state roots.
- metadata
- mse
- Message Stream Encryption / Protocol Encryption (BEP-adjacent MSE/PE).
- nat
- net
- Dual-stack listen helpers, rate limiting, dial policy, and correlation.
- ops
- peer
- piece
- rpc
- Host-opt-in line RPC control plane for a running
Client. - secure
- Secure DHT discovery → mTLS 1.3 → host handshake → credential handoff.
- security
- Trust boundaries, decode limits, and validators for untrusted inputs.
- session
- store
- swarm
- Swarm stack selection: security layer × transport.
- torrent
- tracker
- types
- utp
- µTP / uTP (BEP 29) — reliable UDP transport for swarm peers.
- webseed
- BEP 19 — HTTP/HTTPS web seed fetch; FTP only when the host opts in.
- wire
- Shared wire-format helpers with strict bounds.
Macros§
- ingress
- Mark an untrusted ingress point in source (visible in review and
rg ingress).