How it works

How entries are scored, and why you can trust the result.

One number decides each challenge, measured by the main repository's own judge. And two promises: a program that fails the challenge's checks can't take the record, and nothing in your pull request decides how it is judged.

How it's scored

The idea

Each challenge comes down to one number, its score. The judge comes from the main repository, never from your pull request: it checks that your program is correct, then measures it and compares it with the record. The best score confirmed on main holds the record.

From entry to crown

 your PR ──▶ checked ──▶ scored ──▶ added to main ──▶ 2 more runs ──▶ ♛ record
               │            │                              │
               ▼            ▼                              ▼
          ✗ refused    a claim                  ✗ not past the bar
        (push again)  (posted on PR)               (recorded)

Shown, but not scored

A challenge's page can show more than its score: a cost worked out from the score, or how much of a transaction's limits the program takes. These are there for context. Only the score decides a record.

LMS

The formula

fee = memory × 0.0577 + compute × 0.0000721 + bytes × 15 (lovelace)

Size is paid every time the program runs, so a smaller program and a faster program both help. Trading one for the other is most of the game.

Your score is the starting program's fee divided by yours, so higher wins. The starting program costs about 0.643 ₳ per check; a score of 3.48× means about 0.185 ₳.

Each run makes a new key and 64 new signatures from a fresh seed, so there is no fixed test to memorise. Before it is scored, your program must answer all 217 correctness cases.

The cost inside an example validator is shown for context and does not change your score. A program whose costliest signature does not fit in one transaction, when the starting program's does, is refused.

The score

The score is the Fee ratio vs the reference, and higher is better.

The starting program costs about 0.643 ₳ per signature check.

The bar for a new record: 1% past the baseline.

Statistic
the challenge's score command
Pairing
A record needs two independent runs on main with fresh seeds, and both must clear the bar. If one clears it and the other does not, the decision is recorded as a failed run and sets no record.
Runner
ubuntu-24.04
Inputs
Salted per run
Large jumps
Promoted automatically; the verifier's checks are the only guard.

Fresh inputs every time

Each run draws new inputs from a fresh random seed, so there's no fixed test to memorise.

Before it is measured, your program must answer all 217 correctness cases (see can a wrong answer win? below).

From entry to crown

  1. The gate checks the pull request adds one patch file and nothing else.
  2. CI applies it to the frozen baseline and scores it once: a claim.
  3. A patch that verifies is landed on main; one that fails stays open for another push.
  4. On main, two independent runs with fresh seeds score it against the current record.
  5. It becomes the record only if both runs clear the bar.
  6. A patch rejected on main is removed.

A claim that only just clears the bar can miss on the confirming runs. Aim comfortably past it.

SLH-DSA

The formula

fee = memory × 0.0577 + compute × 0.0000721 + bytes × 15 (lovelace)

Size is paid every time the program runs, so a smaller program and a faster program both help. Trading one for the other is most of the game.

Your score is the starting program's fee divided by yours, so higher wins. The starting program costs about 7.65 ₳ per check; a score of 4× means about 1.91 ₳.

The starting program does not fit in one transaction, so programs that don't fit can still score and hold the record. A score of about 4.49× is roughly where a program could fit; whether its costliest signature really fits is shown separately and never changes the ranking.

Each run makes a new key and 64 new signatures from a fresh seed, so there is no fixed test to memorise. Before it is scored, your program must answer all 135 correctness cases.

The score

The score is the Fee ratio vs the reference, and higher is better.

The starting program costs about 7.646 ₳ per signature check.

The bar for a new record: 2.5% past the baseline.

Statistic
the challenge's score command
Pairing
A record needs two independent runs on main with fresh seeds, and both must clear the bar. If one clears it and the other does not, the decision is recorded as a failed run and sets no record.
Runner
ubuntu-24.04
Inputs
Salted per run
Large jumps
Promoted automatically; the verifier's checks are the only guard.

Fresh inputs every time

Each run draws new inputs from a fresh random seed, so there's no fixed test to memorise.

Before it is measured, your program must answer all 135 correctness cases (see can a wrong answer win? below).

From entry to crown

  1. The gate checks the pull request adds one patch file and nothing else.
  2. CI applies it to the frozen baseline and scores it once: a claim.
  3. A patch that verifies is landed on main; one that fails stays open for another push.
  4. On main, two independent runs with fresh seeds score it against the current record.
  5. It becomes the record only if both runs clear the bar.
  6. A patch rejected on main is removed.

A claim that only just clears the bar can miss on the confirming runs. Aim comfortably past it.

Why it's safe

Can a wrong answer win?

No. The challenge's verifier checks every entry before it is scored, and an entry that fails is rejected with no score.

Can an entry attack the scoring system?

The gate reads your pull request only as stored files and runs nothing from it; it writes your patched files out as data for the judge, which comes from the main repository. Your program is verified and scored as an unprivileged user with no network, in a copy it cannot write, with the workflow's tokens removed. A patch is checked again against main as it stands before it lands.

Can I use a record in production?

Not as it is. Records aren't audited. Treat a record as a fast starting point for a proper review.

Found a problem?

If you find a wrong program that passes, or a judge bug that could change a result, please report it privately through the security policy. For anything else, open an issue.

LMS

Can a wrong answer win?

Every run draws fresh inputs, so a program that's right only on examples it has seen will fail.

Each group of tests is there to catch one kind of shortcut:

The test groups
Test groupCasesWhat it tries
Valid signatures16random positions in the key
Edge positions7first and last keys; empty and long messages
Tampered headers21fields with extra bytes set
Wrong types30out-of-range values, mismatched settings
Wrong sizes8too short, too long, empty
Flipped bits87one bit changed anywhere
Tampered keys48one byte of the public key changed

Can an entry attack the scoring system?

Before anything is scored, the gate checks that:

  • The pull request adds exactly one file, challenges/aiken-lms/submissions/<id>.patch, and changes nothing else.
  • The challenge is open.
  • The id is well-formed and starts with the pull request author's login and a hyphen.
  • The id has not landed on main before and has no decision on main.
  • The file is a regular file of at most 262,144 bytes (256 KiB).
  • The header names this challenge, every path is editable, the diff applies to the baseline, and the patched tree is at most 1,048,576 bytes (1 MiB) and differs from the baseline.
  • Builds-on is baseline or a landed patch.
  • The patched tree differs from every landed patch's tree, so a copy cannot land as a new entry.

Is the judge the real thing?

It's a faithful re-implementation with extra safety checks. Every new record is also run on the real node's evaluator (Haskell uplc), and the two must agree before it counts. THREAT_MODEL.md lists the known differences.

Can I use a record in production?

What the score leaves out:

  • Statefulness is the user's risk: signing two transactions at one index leaks a one-time key.
  • The score is the fee of running the verifier alone (execution plus its reference-script bytes), not of a whole transaction or of a validator that calls it.
  • The judge does not check the node's run-time limits on oversized integers and bytestrings passed to builtins (THREAT_MODEL.md, Known judge limits).
  • Records are not audited: the judge checks a program's answers on its test cases, not its design. Treat a record as a fast starting point for a proper review, not a contract to deploy as it is.

SLH-DSA

Can a wrong answer win?

Every run draws fresh inputs, so a program that's right only on examples it has seen will fail.

Each group of tests is there to catch one kind of shortcut:

The test groups
Test groupCasesWhat it tries
Valid signatures16fresh keys, messages of 0 to 1,024 bytes
Message lengths3empty, 1-byte and 4,096-byte messages
Edge positions7first and last leaves and trees; unused index bits set
Wrong sizes6key or signature too short, too long, empty
Wrong mode or key4a context, pre-hash, raw message, another key
Flipped bits67one bit changed in every part of the signature, or in the message
Tampered keys32one byte of the public key changed

Can an entry attack the scoring system?

Before anything is scored, the gate checks that:

  • The pull request adds exactly one file, challenges/plutus-slh-dsa/submissions/<id>.patch, and changes nothing else.
  • The challenge is open.
  • The id is well-formed and starts with the pull request author's login and a hyphen.
  • The id has not landed on main before and has no decision on main.
  • The file is a regular file of at most 262,144 bytes (256 KiB).
  • The header names this challenge, every path is editable, the diff applies to the baseline, and the patched tree is at most 1,048,576 bytes (1 MiB) and differs from the baseline.
  • Builds-on is baseline or a landed patch.
  • The patched tree differs from every landed patch's tree, so a copy cannot land as a new entry.

Is the judge the real thing?

It's a faithful re-implementation with extra safety checks. Every new record is also run on the real node's evaluator (Haskell uplc), and the two must agree before it counts. THREAT_MODEL.md lists the known differences.

Can I use a record in production?

What the score leaves out:

  • The record may not fit one transaction: `fits_tx` is on every row, and nothing requires a record to fit.
  • A program over about 16,000 bytes could not be published as a reference script (the transaction that publishes it is itself capped at 16,384 bytes), though the judge accepts programs up to 16,384 bytes.
  • The score is the fee of running the verifier alone (execution plus its reference-script bytes). The signature's 8,104 bytes on the wire (7,856 inside Data, in 64-byte chunks) cost about 0.36 ADA of size fee at 44 lovelace a byte, which no metric includes.
  • The judge does not check the node's run-time limits on oversized integers and bytestrings passed to builtins (THREAT_MODEL.md, Known judge limits).
  • The case generator is RustCrypto `slh-dsa` 0.2.0, first released 2026-12-03; it is checked against NIST's known-answer vectors, an independent Python verifier and OpenSSL.