Microtoll Engine pre-1.0 · the locks, pre-built

The locks, pre-built

Microtoll Engine is the security layer of an end-to-end-encrypted app, packaged so the next app does not have to invent it: sign-in without passwords, keys that never reach the server, sharing by capability, and revocation that actually takes access away. Browser packages with zero dependencies, a server that holds only what it cannot read, a threat model that says what is not protected, and test vectors from the RFCs for every primitive.

The problem it exists for

Most new code is now written with an AI coding agent, and the four things those agents get wrong are the four things that cannot be got wrong: how a person signs in, where the keys live, who may read what, and what happens when someone is removed. The code they produce looks right — a bcrypt here, an AES call there, a token in local storage — and passes review, because security code that is wrong reads exactly like security code that is right. The failures surface a year later, in someone else's inbox.

The engine's answer is not another library of primitives. It is the finished constructions: an account with no password and no email; a root key wrapped by a passkey and by a recovery code; a session that survives a reload and dies on "sign out everywhere"; an object whose key is sealed to each member and rotated when one is removed; a share link whose secret never reaches the server; a mailbox two people can compute and the server cannot. Each was built for a real app, fixed where an audit found it wanting, and comes with the reasoning written down.

What you get

What it is not

Start

Start here: docker compose up the notes example, read one file, and then the four packages in the order they build on each other.