liro

liro

Confidential rooms that still hold after Q-Day. Seal once, and anyone can check who signed it and for whom.

Run the exploit-to-fix demo on your machine (offline)

pnpm run demo

Needs Node 22.13 or newer and pnpm. CLI quickstart

Overview

Liro seals a file to a set of members and lets anyone check, with no secret, who signed it, for which members and at which epoch. The member set, the uploader and the current epoch are anchored by a small smart contract on QoreChain.

What it is

Liro is a hardened layer on top of QoreSeal (ML-KEM-1024 + X25519 hybrid encryption) and the chain’s ML-DSA-87 key registry. It invents no primitive. A raw QoreSeal envelope encrypts one data key to every recipient and then encrypts the body under it, so anyone who can open the envelope holds that key. Liro adds what a room needs on top: an ML-DSA-87 signature over a canonical manifest, a transcript bound into every key wrap, a key commitment, and an on-chain anchor that readers trust instead of the file.

Status: a prototype on the QoreChain testnet qorechain-diana (EVM chain id 9800). Nothing here has been audited for production and nothing runs on mainnet. What it does not do.

Where to start

  • See the attacks and the fixes. One command, offline, a couple of seconds:
pnpm run demo
  • Check a published document without any key. Keyless verification runs the same public checks the explorer runs, against the live contract and the on-chain key registry.
  • Seal and open a document yourself. Seal and open walks the CLI flow from key registration to a member opening the file.
  • Understand the design. How it works and the security model.

The pieces

PieceWhat it does
@liro/envelopeThe hardened envelope library: seal and open, the signed manifest, canonical encoding, typed errors, and the public verifier.
liro-signerThe local command line. The only place a mnemonic, a signing key or a seal key ever lives. Anything that sends a transaction is a dry run unless you add --broadcast.
LiroDataRoomThe contract: per document, the uploader, manifest hash, body hash, member-set digest and epoch, plus epoch-bound grants and an audit log.
This siteA static page that reads the contract and the key registry directly from your browser. It never holds a key.