Crate mineshare

Source

Modules§

dhauth
An encapsulation of a simple, secure authenticated Diffie Hellman with previous knowledge of a public key.
varint
Utilities for encoding and decoding varints
wordlist

Structs§

Addr
An IP Address + Port
DomainAndPubKey
Initial message from proxy to server telling server the domain it is assigned, the proxy’s public key, and the proxy server’s protocol number. This protocol number will be incremented every time the protocol changes.
ServerHello
A simple “HELLO” string from server to proxy server to validate that the server is a valid mineshare server and not a random port 443 connection. It’s probably not very smart to use 443 for something other than HTTPS, but it works so…

Enums§

Message
Messages transferred through the initial TLS stream between proxy and server

Constants§

PROTOCOL_VERSION

Traits§

BincodeAsync
Helper trait for serializing & deserializing data into async streams

Functions§

try_parse_init_packet
Try and parse the hostname from the initial client packet from a Minecraft client to a Minecraft server Returns Ok(Some(&[u8])) if hostname was parsed successfully Returns Ok(None) if it needs more data Returns Err(e) if an error happened or data is malformed