Skip to content
QORECHAIN
Register

Post-Quantum dApp

Klin

Two-person rule for ESP32 firmware updates.

Share on X

About

Kiln makes every ESP32 in a fleet refuse a firmware update unless a quorum of its maintainers (2 of 3 in the demo) signed that exact image with ML-DSA-87. One firmware signing key is a single point of failure: leaked, it lets anyone ship trusted firmware (MSI, 2023); abused through the release server, it ships signed malware (ASUS ShadowHammer); lost, it ends updates. Maintainers sign a canonical release statement. The KilnRegistry contract on diana verifies every approval, revocation, pause and maintainer-set change with pqcVerify, against keys that pqcKeyStatus reports as registered with proof of possession. No EVM key has any authority. A relayer submits through an EVM window scoped to the registry. The device checks the quorum, the image hash, the anti-rollback counter, revocations and a signed fleet status itself, in C. Lost or leaked keys are replaced by a set update signed by the old and the new quorum, without a reflash. Try it with no wallet: /try runs the device's real verification code (WebAssembly) against live diana data, and lets you push forged, tampered, old, revoked and replayed updates. Testnet build; emulator-tested (QEMU), not yet on physical hardware.

How it's made

Spec first. One canonical statement format with shared test vectors; TypeScript, C and Solidity render it byte for byte. Contracts: Solidity 0.8.28 + Foundry (44 unit/fuzz/invariant tests); KilnStatements library + owner-less KilnRegistry calling pqcVerify (0x…0a01) and pqcKeyStatus (0x…0a02), fail-closed wrappers. Device: portable C core with mldsa-native (ML-DSA-87), built as ESP-IDF v6 firmware (run in Espressif QEMU) and as WebAssembly for /try. Service: Fastify + SQLite; a relayer with a scoped EVM window manager, an indexer that rebuilds all state (including signatures, from calldata) from the chain, and a beacon signer for freshness. Console: React + TanStack, QoreX signArbitrary sign-in. Kits: @qorechain/sdk, @qorechain/qoresign. Hard parts: byte-exact statements across three languages, keeping the device independent of the server, and rebuilding state from the chain alone. QCAI audit: both reports in docs/audit/, findings mapped in docs/AUDIT.md. Built AI-natively; see docs/AI_USAGE.md.

Timeline

KlinPost-Quantum dApp

Pushed 51 commits to main

  • 72fccca Move AI_USAGE.md to the repo root · TheWeirdDee
  • 318f855 Evidence: production check of the /try fixes (56 of 56), device state wording · TheWeirdDee
  • 07c3a1b Landing: fix three dead links · TheWeirdDee
  • 6fb47e3 Landing and docs: say what was actually tested · TheWeirdDee
  • 6bb7092 /try: restore device state on failure, one check at a time, accepted attack = failed test · TheWeirdDee

and 46 more commits

KlinPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.