cuprate_wire/
lib.rs

1// Rust Levin Library
2// Written in 2023 by
3//   Cuprate Contributors
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in all
13// copies or substantial portions of the Software.
14//
15
16//! # Cuprate Wire
17//!
18//! A crate defining Monero network messages and network addresses,
19//! built on top of the [`cuprate_levin`] crate.
20//!
21//! ## License
22//!
23//! This project is licensed under the MIT License.
24
25pub mod network_address;
26pub mod p2p;
27
28pub use cuprate_levin::BucketError;
29pub use network_address::{NetZone, NetworkAddress};
30pub use p2p::*;
31
32// re-export.
33pub use cuprate_levin as levin;
34
35pub type MoneroWireCodec = cuprate_levin::codec::LevinMessageCodec<Message>;