blob: 7644beae39207d7ff982ee20ff81f677610e4a9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use azalea_buf::McBuf;
use packet_macros::ServerboundLoginPacket;
use uuid::Uuid;
#[derive(Clone, Debug, McBuf, ServerboundLoginPacket)]
pub struct ServerboundHelloPacket {
pub username: String,
pub public_key: Option<ProfilePublicKeyData>,
pub profile_id: Option<Uuid>,
}
#[derive(Clone, Debug, McBuf)]
pub struct ProfilePublicKeyData {
pub expires_at: u64,
pub key: Vec<u8>,
pub key_signature: Vec<u8>,
}
|