Builds the rc.9 login and registration client payloads sent after Noise handshake.
Summary
Functions
Builds the fully encoded binary protobuf payload containing the initial client setup.
Constructs a connection node payload for an existing login session.
Constructs a registration pair-device node payload.
Functions
@spec generate_client_payload( BaileysEx.Auth.State.t() | map(), BaileysEx.Connection.Config.t() ) :: {:ok, binary()} | {:error, term()}
Builds the fully encoded binary protobuf payload containing the initial client setup.
@spec generate_login_node(binary(), BaileysEx.Connection.Config.t()) :: {:ok, struct()} | {:error, term()}
Constructs a connection node payload for an existing login session.
@spec generate_registration_node( BaileysEx.Auth.State.t() | map(), BaileysEx.Connection.Config.t() ) :: {:ok, struct()} | {:error, term()}
Constructs a registration pair-device node payload.