hotshot/traits/
networking.rs

1// Copyright (c) 2021-2024 Espresso Systems (espressosys.com)
2// This file is part of the HotShot repository.
3
4// You should have received a copy of the MIT License
5// along with the HotShot repository. If not, see <https://mit-license.org/>.
6
7//! Network access compatibility
8//!
9//! This module contains a trait abstracting over network access, as well as implementations of that
10//! trait. Currently this includes
11//! - [`MemoryNetwork`](memory_network::MemoryNetwork), an in memory testing-only implementation
12//! - [`Libp2pNetwork`](libp2p_network::Libp2pNetwork), a production-ready networking implementation built on top of libp2p-rs.
13
14pub mod combined_network;
15pub mod libp2p_network;
16pub mod memory_network;
17/// The Push CDN network
18pub mod push_cdn_network;
19
20pub use hotshot_types::traits::network::{NetworkError, NetworkReliability};