Provides the connections needed for the server.
📄Cargo.toml
[dependencies]
minecraft-auth = { git = "https://github.com/ismaileke/minecraft-auth.git", branch = "master" }
📄main.rs
use minecraft_auth::bedrock;
#[tokio::main]
async fn main() {
let mut bedrock = bedrock::new("1.21.40".to_string(), false); // (client version, debug mode)
if bedrock.auth().await {
let chain = bedrock.get_chain_data();
let ec_key = bedrock.get_ec_key().unwrap(); // When sending the Login Packet we will need this
println!("Chain 1: {}\nChain 2: {}", chain[0], chain[1]);
}
}
It is still in development.