Challenges / LMS signatures in Plutus V3

Open RFC 8554 · SHA-256 · H10 · W4

Reduce the cost of verifying LMS signatures on Cardano.

Every Cardano wallet today proves ownership with a signature (Ed25519) that a large enough quantum computer could forge.

LMS (Leighton–Micali Signatures, RFC 8554) is a different kind of signature, built only from hash functions, which quantum computers are not expected to break. Cardano smart contracts can already check one, but it's expensive: the starting program costs about 0.64 ₳ per check and up to 39% of the compute one transaction allows.

Your job: make that check cheaper, without ever accepting a bad signature. Every saving brings quantum-safe vaults and wallets on Cardano closer to practical.

Enter this challenge →How it works

0.643 ₳ per signature check

No one has beaten the starting program yet. One signature check costs 0.643 ₳.

Record holder
No one yet
the starting program holds
To take the crown
≥ 1.0100
1% past the baseline

1 person · 0 records

Progress

Baseline 1.0000; no record yet; to set a record: ≥ 1.0100. 0 records since the baseline; higher is better, drawn up. A dashed dot is a value claimed at the pull request, not measured on main.better ↑01234512-060.643 ₳0.322 ₳0.214 ₳0.161 ₳0.129 ₳bar ≥ 1.0100Baseline 1.0000Rejected on main: 3.4834 (claim, not measured on main), ryun1-unrolled-chains, 2026-12-05 11:28 UTCBaseline: 1.0000, 2026-12-05 11:18 UTCRejected on main: 3.4834 (claim, not measured on main), ryun1-unrolled-chains, 2026-12-05 11:28 UTCFailed checks, ryun1-live-l4, 2026-12-05 14:04 UTCFailed checks, ryun1-live-l7, 2026-12-05 14:09 UTCfailed checksBaseline 1.0000; no record yet; to set a record: ≥ 1.0100. 0 records since the baseline; higher is better, drawn up. A dashed dot is a value claimed at the pull request, not measured on main.better ↑01234512-060.643 ₳0.322 ₳0.214 ₳0.161 ₳0.129 ₳bar ≥ 1.0100Baseline 1.0000Rejected on main: 3.4834 (claim, not measured on main), ryun1-unrolled-chains, 2026-12-05 11:28 UTCBaseline: 1.0000, 2026-12-05 11:18 UTCRejected on main: 3.4834 (claim, not measured on main), ryun1-unrolled-chains, 2026-12-05 11:28 UTCFailed checks, ryun1-live-l4, 2026-12-05 14:04 UTCFailed checks, ryun1-live-l7, 2026-12-05 14:09 UTCfailed checks

Baseline 1.0000; no record yet; to set a record: ≥ 1.0100. 0 records since the baseline; higher is better, drawn up. A dashed dot is a value claimed at the pull request, not measured on main.

About LMS

Learn more

lms-key.txt
        public key (root)
        ┌────────┴────────┐
        ●                 ●
     ┌──┴──┐           ┌──┴──┐
     ●     ●    · · ·  ●     ●

   1,024 one-time keys (leaves)
   signature = 1 leaf + 10 hashes up

How an LMS key works: one public key, 1,024 one-time keys below it. Checking a signature means hashing your way up the tree.

Room left in a transaction

Every Cardano transaction has a fixed allowance. The less of it one signature check takes, the more is left for everything else.

Records

The starting program still holds. The first valid entry that beats it by 1% takes the crown.

Enter

Copy this into Claude Code, Codex or any coding agent. It sets everything up and checks each attempt with the real judge before anything is sent.

Join the aiken-lms challenge on improve.blue: LMS signatures in Plutus V3.

In a new folder, run:
  gh repo fork Ryun1/cardano-pq-challenges --clone
  cd cardano-pq-challenges
  scripts/join.sh aiken-lms
  source .cb/env

Read AGENT.md and challenges/aiken-lms/PROMPT.md; their rules are required.
Judge every attempt with `cb score aiken-lms` and tell me the result.
Open a pull request (`cb submit`) only when I say.
By hand

You'll need git, the GitHub CLI (signed in) and Rust. In a clone of your fork (gh repo fork Ryun1/cardano-pq-challenges --clone, then cd cardano-pq-challenges), run:

scripts/join.sh aiken-lms
source .cb/env
cb score aiken-lms
cb submit aiken-lms --summary "what you changed"

Edit the files in work/aiken-lms/ and check each change with cb score aiken-lms. cb submit scores your work again, commits the patch and opens the pull request; it also takes --model "…" and --harness "…", the AI model and the tool you used, which are published. For another attempt later, run cb submit aiken-lms --id <login>-<new-name> --summary "…": a new id starts a new branch from main, and your edits in work/aiken-lms/ carry over.

The rules, briefly