Hardening the wire: building type-safe security protocols (Workshop)

In this workshop, we will build a secure communication protocol from scratch. We are going to move away from messy logic and use the Rust compiler to enforce security rules. Using the Bastion Engine as our guide, we will create a system where a device cannot send data until it is fully authenticated.


LEVEL: Intermediate

Abstract

n this workshop, we will build a secure communication protocol from scratch. We are going to move away from messy logic and use the Rust compiler to enforce security rules. Using the Bastion Engine as our guide, we will create a system where a device cannot send data until it is fully authenticated.

Here is what we will do:

Build a Type-Safe State Machine: We will write code that uses Rust types to track a handshake. This ensures that skipping a security step results in a compiler error.

Write No-Std Code: We will work without the standard library. We will learn how to manage complex messages on tiny systems that do not have a memory allocator.

Implement Zero-Copy Logic: We will build a system that reads and writes data directly into buffers. This makes the protocol fast and efficient.

Run a Software Simulation: We will use a terminal-based tool to act as our hardware. We will connect two virtual devices and watch them authenticate in real time.

Prerequisites

A laptop with rustup cargo tools is enough.

How to reserve a seat

RustLab is a conference made by Develer.
Develer is a company based in Campi Bisenzio, near Florence. Our motto is : "Technology to give life to your products". We produce hardware and software to create exceptional products and to improve industrial processes and people's well being.
In Develer we have passion for the new technologies and we offer our clients effective solutions that are also efficient, simple and safe for the end users. We also believe in a friendly and welcoming environment where anybody can give their contribution. This passion and this vision are what we've been driven to organize our conference "made by developers for developers".

Subscribe to our newsletter

We hate spam just as much as you do, which is why we promise to only send you relevant communications. We respect your privacy and will never share your information with third parties.
©2026 RustLab | The international conference on Rust in Italy-Design & devCantiere Creativo-Made withDatoCMS