aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
blob: 57a3e4d8ea3e505e0fb2da067821f81e5831526a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use azalea_buf::McBuf;
use packet_macros::LoginPacket;

#[derive(Clone, Debug, McBuf, LoginPacket)]
pub struct ServerboundHelloPacket {
    pub username: String,
    pub public_key: Option<ProfilePublicKeyData>,
}

#[derive(Clone, Debug, McBuf)]
pub struct ProfilePublicKeyData {
    pub expires_at: u64,
    pub key: Vec<u8>,
    pub key_signature: Vec<u8>,
}