Methanium Transport Protocol
  • Rust 77.2%
  • TypeScript 15.6%
  • JavaScript 6.6%
  • Nix 0.4%
  • HTML 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-21 22:57:50 +02:00
client Types Creation 2026-06-21 22:57:50 +02:00
codec Types Creation 2026-06-21 22:57:50 +02:00
common Basic Crypto 2026-06-21 16:11:00 +02:00
crypto Types Creation 2026-06-21 22:57:50 +02:00
host Types Creation 2026-06-21 22:57:50 +02:00
registry Types Creation 2026-06-21 22:57:50 +02:00
transport General & Crypto 2026-06-20 15:25:36 +02:00
type-map Types Creation 2026-06-21 22:57:50 +02:00
.gitignore Initial commit 2026-06-20 01:55:31 +02:00
Cargo.toml Initial commit 2026-06-20 01:55:31 +02:00
CONNECTOR.md Types Creation 2026-06-21 22:57:50 +02:00
example-type-maps.yaml Types Creation 2026-06-21 22:57:50 +02:00
README.md Types Creation 2026-06-21 22:57:50 +02:00
TRANSPORT.md Types Creation 2026-06-21 22:57:50 +02:00
TYPE-MAP.md Types Creation 2026-06-21 22:57:50 +02:00

Methanium Transport Protocol

MTP is a modular transport protocol by Methanium.

Crates

  • Codec
  • Transport
  • Common
  • Crypto
  • TypeMap
  • Registry
  • Host
  • Client

Codec

The Codec crate handles encoding and decoding of MTP packets using Communication Types and Data Types from the Registry.

Data Values:

  • Container
  • Encrypted Container (requires crypto feature)
  • Signed Integer
  • Unsigned Integer
  • Boolean
  • Signed Float
  • String
  • Array
  • Binary (List of Bytes)

Encoding/decoding uses a TypeMap to resolve type names to wire IDs.

The Codec uses the Crypto crate to encrypt and decrypt Encrypted Containers.


Transport

The Transport crate wraps QUIC using wtransport. It provides Sender/Receiver for bidirectional message passing over QUIC streams.

Common

Common handles logging and error handling. Personal information reported to Common will be anonymized.

Crypto Stack

Crate Audited? Notes
ml-dsa No NIST vectors pass; regression bug fixed Jan 2026
ed25519-dalek Yes Used by Signal, Diem
chacha20poly1305 Yes NCC Group audit, Dec 2019
aes-gcm Yes NCC Group audit, Dec 2019
hkdf No Simple construction; well-reviewed
sha2 No Standard construction; widely reviewed
zeroize No Simple; widely used
mlkem-tls No mlkem-rs backend unaudited