Challenges / SLH-DSA signatures in Plutus V3
Open FIPS 205 · SHA2-128s · SHA-256
Reduce the cost of verifying SLH-DSA signatures on Cardano.
Every Cardano wallet today proves ownership with a signature (Ed25519) that a large enough quantum computer could forge.
SLH-DSA is NIST's standard hash-based signature, built only from hash functions, which quantum computers are not expected to break. Unlike LMS, the signer keeps no state, so a key can sign safely any number of times. Cardano smart contracts can already check one, but it's very expensive: the starting program costs about 7.65 ₳ per check and nearly five times the compute one transaction allows.
Your job: make that check cheaper, without ever accepting a bad signature. A program cheap enough to fit in one transaction would make stateless quantum-safe wallets on Cardano possible today.
7.646 ₳ per signature check
No one has beaten the starting program yet. One signature check costs 7.646 ₳.
- Record holder
- No one yet
- the starting program holds
- To take the crown
- ≥ 1.0250
- 2.5% past the baseline
1 person · 0 records
Progress
Baseline 1.0000; no record yet; to set a record: ≥ 1.0250; Lowest score of a program that fits one transaction: 4.4900. 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 SLH-DSA
public key (root)
▲
hypertree: 7 layers of trees,
9 levels each
▲
14 FORS trees sign the message
signature = 7,856 bytes, ~2,100 hashesHow an SLH-DSA signature is checked: hash from the message up through the FORS trees, then up seven layers of trees to the public key.
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.
Compute 483% of a transaction
Memory 493% of a transaction
Program size 13% of a transaction
Records
The starting program still holds. The first valid entry that beats it by 2.5% 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 plutus-slh-dsa challenge on improve.blue: SLH-DSA signatures in Plutus V3. In a new folder, run: gh repo fork Ryun1/cardano-pq-challenges --clone cd cardano-pq-challenges scripts/join.sh plutus-slh-dsa source .cb/env Read AGENT.md and challenges/plutus-slh-dsa/PROMPT.md; their rules are required. Judge every attempt with `cb score plutus-slh-dsa` 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 plutus-slh-dsa source .cb/env cb score plutus-slh-dsa cb submit plutus-slh-dsa --summary "what you changed"
Edit the files in work/plutus-slh-dsa/ and check each change with cb score plutus-slh-dsa. 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 plutus-slh-dsa --id <login>-<new-name> --summary "…": a new id starts a new branch from main, and your edits in work/plutus-slh-dsa/ carry over.
The rules, briefly
- Change only the program (program.flat.hex) and its source.
- Never accept a bad signature. It's tested on 135 fresh cases, valid and broken.
- Beat the record by 2.5%, measured on 64 fresh signatures.
- One entry per pull request, up to 10 a day.
- Be honest about which AI model helped, or leave it out.