syntax = "proto3"; package xray.transport.internet.finalmask.xmc; option csharp_namespace = "Xray.Transport.Internet.Finalmask.XMC"; option go_package = "github.com/xtls/xray-core/transport/internet/finalmask/xmc"; option java_package = "com.xray.transport.internet.finalmask.xmc"; option java_multiple_files = true; message Profile { // Resolve the UUID from https://api.mojang.com/users/profiles/minecraft/{username}. string username = 1; bytes uuid = 2; // Copy the signed textures property returned by // https://sessionserver.mojang.com/session/minecraft/profile/{uuid}?unsigned=false. string textures_value = 3; string textures_signature = 4; } message Yggdrasil { // API root of a third-party Yggdrasil API server, for example // https://skin.example.com/api/yggdrasil. The client logs in to this API // and joins the session with the server's actual public key, while the // server verifies players through // sessionserver/session/minecraft/hasJoined. The API's // signaturePublickey is used to verify the signed textures property. string api = 1; // Account used by the client to authenticate with the API. Usually an // email address, depending on the API implementation. string username = 2; string password = 3; // Optional player name. Required when the account owns several players. string player = 4; } message Config { // Legacy mode only: seeds the derived RSA key pair and is the pre-shared // password checked during login. Ignored in Yggdrasil mode, where the RSA // key pair is generated randomly and players are authenticated through the // Yggdrasil API. string password = 1; reserved 2; bytes rsa_private_key = 8; bytes rsa_public_key = 9; string hostname = 10; repeated Profile profiles = 11; // Padding turns. Empty uses the built-in preset, unless no_padding is set. // A configured list is the complete schedule and replaces the preset // entirely: the preset's Play-state join tail runs only with the preset. repeated Padding paddings = 12; // Optional third-party Yggdrasil login. Field 13 keeps configurations // that already set 12 for paddings working unchanged. Yggdrasil yggdrasil = 13; // Disables startup padding. The configuration sets this for an explicit // empty "paddings" array, which an unset repeated field cannot express. bool no_padding = 14; } message Padding { int64 length_min = 1; int64 length_max = 2; // 1 = client to server, 2 = server to client int32 direction = 3; // Millisecond pause that leads into this turn: it sits between the previous // padding turn (or Login Acknowledged, for the first turn) and this turn's // bytes, so a captured gap is written on the turn that follows it. The side // that sends the turn waits for a uniformly selected value in // [delay_min, delay_max]; the peer spends exactly delay_min at the same // place, so only the sending side jitters: use delay_min == delay_max to // reproduce a captured gap. Nothing pauses after the last turn. Zero means // no pause. int64 delay_min = 4; int64 delay_max = 5; }