Hybrasyl.Protocol 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hybrasyl.Protocol --version 0.0.3
                    
NuGet\Install-Package Hybrasyl.Protocol -Version 0.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hybrasyl.Protocol" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hybrasyl.Protocol" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Hybrasyl.Protocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hybrasyl.Protocol --version 0.0.3
                    
#r "nuget: Hybrasyl.Protocol, 0.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hybrasyl.Protocol@0.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hybrasyl.Protocol&version=0.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Hybrasyl.Protocol&version=0.0.3
                    
Install as a Cake Tool

Hybrasyl.Protocol

A DOOMVAS extension protocol using TLS 1.3, support for 16-bit opcodes, and more.

The authoritative wire contract is docs/EXTENSIONS.md — byte layouts, the connection sequence, the version policy, and the threat model — with opcode and namespace assignments in docs/ALLOCATIONS.md. This README is a summary; those documents are the specification, and both ship in the NuGet package.

This protocol is intended to be an extension to the native 0xAA framing (starting at 0xB0). Clients can declare what version they support, and interoperability between versions is a goal. By default, this version ships a single liveness exchange in the 0xB0 dialect: 0x0100 ClientEcho (probe C→S, reply S→C) and 0x0101 ServerEcho (probe S→C, reply C→S).

These protocol extensions overload the initial 0x7E "hello" packet (via 0xAA framing) to contain a capability marker: [0x00][0x48][0x59][0x42] [u8 version] [u8 flags] (eg \0HYB ...). Modern clients can use this as an indication that an upgrade to TLS is supported, then responding to a DialectOffer from the server (including minimum and maximum versions) with a DialectChoice naming the one dialect version that client speaks. A client implements exactly one; it reports that version whether or not it falls inside the offered range, and both sides derive the resulting connection mode from the (offer, choice) pair rather than signalling it separately.

The 16-bit opcode space is divided into 64-opcode categories, allowing 1024 categories. The first 4 categories (0x0000 - 0x00FF) are the retail-mirror space: a retail packet that keeps its 1:1 identity but gains an upgraded shape (longer lengths, wider fields) is carried at its zero-extended retail number, so retail 0x15 becomes 0x0015. Net new packets are allocated up from 0x0100 in category blocks.

A retail variant family — the dialog packets, where a body byte selects between shapes — does not get a single mirror opcode. It explodes into its own category block up in native space, one opcode per variant, so each stays individually visible to dispatch and to versioning: a dialect can replace one opcode, it cannot replace one variant. Opcodes are allocated as exchanges, with a request/response pair sharing one number across the two directions (send 0x0140, get 0x0140 back), since registration is split per direction and costs nothing.

Long term, the intent is for most if not all 0xAA opcodes to be extended and mirrored in the 0xB0 dialect, and ultimately replaced with 0xB1 and higher.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

  • net9.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.4 43 8/13/2026
0.0.3 48 8/13/2026
0.0.1 99 7/21/2026