chunkedge_protocol/packets/login/
key_c2s.rs

1use chunkedge_binary::{Decode, Encode};
2
3use crate::{Packet, PacketState};
4
5#[derive(Clone, Debug, Encode, Decode, Packet)]
6#[packet(state = PacketState::Login)]
7/// Sent by the client to the server to respond to the
8/// [`HelloS2c`](crate::packets::login::HelloS2c) packet. All proceeding packets
9/// will be encrypted.
10pub struct KeyC2s<'a> {
11    pub shared_secret: &'a [u8],
12    pub verify_token: &'a [u8],
13}