rust-blockchain/src/lib.rs

23 lines
358 B
Rust
Raw Normal View History

2024-05-23 04:13:05 +03:00
use std::net::IpAddr;
pub mod block;
pub mod blockchain;
pub mod client_network;
pub mod server_network;
2024-05-23 04:13:05 +03:00
mod test;
pub mod utils;
pub enum Runner {
Server,
Client,
}
pub struct ServerConfig {
pub server_address: IpAddr,
pub port: u16,
pub difficulty: u8,
}
pub struct ClientConfig {
pub server_address: IpAddr,
pub port: u16,
}