diff options
| author | mat <github@matdoes.dev> | 2022-05-26 13:45:48 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-26 13:45:48 -0500 |
| commit | 1e145a82b80fb0402e8a64624454d9bfee77bc72 (patch) | |
| tree | ffb016cd6369bf0fbbf3545408f6278d47509a86 /azalea-protocol/src/packets/login | |
| parent | 3fbbb61c30f0833dd1e07802419ee91ef6cad8e3 (diff) | |
| download | azalea-drasl-1e145a82b80fb0402e8a64624454d9bfee77bc72.tar.xz | |
1.19
Diffstat (limited to 'azalea-protocol/src/packets/login')
| -rwxr-xr-x | azalea-protocol/src/packets/login/serverbound_hello_packet.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs index 5cb660ed..46fb665e 100755 --- a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs +++ b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs @@ -1,7 +1,18 @@ use packet_macros::{LoginPacket, McBuf}; -use std::hash::Hash; -#[derive(Hash, Clone, Debug, McBuf, LoginPacket)] +#[derive(Clone, Debug, McBuf, LoginPacket)] pub struct ServerboundHelloPacket { pub username: String, + pub public_key: Option<ProfilePublicKeyData>, +} + +pub struct ProfilePublicKey { + pub data: ProfilePublicKeyData, +} + +#[derive(Clone, Debug, McBuf)] +pub struct ProfilePublicKeyData { + pub expires_at: u64, + pub key: Vec<u8>, + pub key_signature: Vec<u8>, } |
