nmtzk is a terminal program made by NeedMoreTruth. It lets you run 21 zero-knowledge proof systems on your own computer, and it calls itself "a working museum of zero-knowledge proof systems".
It goes from the sigma protocol Schnorr published in 1989 to Trio, designed for this program in 2026. Each system is made to prove the same seven statements and is then attacked to show whether the attack is stopped, and the times and sizes on the screen are real measurements. Beside the systems there are five exhibits, Ali Baba's cave among them.
It is for learning, and the README itself says that "nothing in this repository is meant to protect anything of value".
It runs on Linux and macOS. 0.1.0, released on 27 September 2026, is the first version and the latest.
Contents13 sections
1.Background
In the FAQ of NMTS the developer wrote, "I love ZK proofs, the kind that prove a thing without showing it, and I wanted them in NMTS, but there was no place where they belonged, so they are not in it." The very next sentence is "My GitHub is full of things I built because they suddenly came to me."
The repository was created on 16 September 2026, and 47 commits went up in the first five hours, bringing in most of the systems, the exhibits, the full-screen program and Korean on every screen. After ten quiet days the README and the release files were added on 26 September, and 0.1.0 came out on the 27th.
2.Systems
A zero-knowledge proof convinces someone that a statement is true while showing nothing else. The program's examples are knowing a PIN without saying it, being at least 18 without showing a birthday, and being one of 16 members without saying which.
These are the 21 systems, in order of the year each was published or designed. The status is as of September 2026.
| Year | System | Trusted setup | Proof size | Post-quantum | Code | Status |
|---|---|---|---|---|---|---|
| 1989 | Schnorr and sigma protocols | None | Linear | No | Teaching | In use |
| 1989 | Ali Baba's cave | A trusted component | Linear | Not applicable | Homemade | Historical |
| 2008 | GKR | None | Logarithmic | Not with Hyrax | Upstream | In use |
| 2013 | BCTV14 (Pinocchio) | Per circuit | Constant | No | Teaching | Superseded by Groth16, 28 October 2018 |
| 2016 | Groth16 | Per circuit | Constant | No | Upstream | In use |
| 2016 | ZKBoo | None | Linear | Believed so | Teaching | Historical |
| 2017 | GM17 | Per circuit | Constant | No | Upstream | Historical |
| 2017 | Bulletproofs | None | Logarithmic | No | Upstream | Superseded by Bulletproofs+, 13 August 2022 |
| 2017 | Ligero | None | Square root | Believed so | Teaching | In use |
| 2018 | STARK | None | Polylogarithmic | Believed so | Upstream | Superseded by S-two, 3 November 2025 |
| 2019 | PLONK | Universal | Constant | No | Upstream | In use |
| 2019 | Spartan | None | Square root | Not as run here | Upstream | In use |
| 2019 | Marlin | Universal | Constant | No | Upstream | In use |
| 2020 | Halo 2 | None | Logarithmic | No | Upstream | In use |
| 2020 | UltraPlonk | Universal | Constant | No | Upstream | Superseded by UltraHonk, 20 May 2025 |
| 2021 | Winterfell | None | Polylogarithmic | Believed so | Upstream | Superseded by Plonky3, 14 February 2026 |
| 2021 | Miden VM | None | Polylogarithmic | Believed so | Upstream | Experimental |
| 2021 | Nova | None, with the commitments used | Logarithmic | No | Upstream | Experimental |
| 2024 | Plonky3 | None | Polylogarithmic | Believed so | Upstream | In use |
| 2024 | Circle STARK | None | Polylogarithmic | Believed so | Upstream | In use |
| 2026 | Trio | None | Linear | Believed so | Homemade | Experimental |
In the Code column, Upstream means the library put out by the real project is run as it is: Groth16 runs on bellman, which Zcash uses, and Halo 2 on Zcash's halo2_proofs. Teaching means there was no Rust implementation free to take, so one was written from the paper, and Homemade means it was designed for this program.
A trusted setup is needed by systems where, before the first proof, a secret number has to be drawn to make the keys and then destroyed. Per circuit means doing it again whenever the statement to be proved changes, and Universal means doing it once for many statements.
STARK, Winterfell, Miden VM and Circle STARK do not hide the secret in the way they are run here. They prove only that the computation was right, and part of the secret input can show.
2.1.Proving and attacking
Every system proves the same seven statements.[1]
| Statement | Meaning |
|---|---|
one-plus-one | The answer sealed in this envelope is 1 + 1. |
password | I know the PIN behind this digest. |
sudoku | I solved this 4×4 sudoku. |
age | I am at least 18. |
membership | I am one of 16 members, without saying which. |
factoring | I know two factors of N, neither of them 1. |
pool-spend | A spend in the Toy Shielded Pool. |
Put a system and a statement after nmtzk run and it sets up, proves and verifies, timing each step. Then it attacks the proof it has just made in three ways.[2]
- It changes one byte of the proof and hands it in.
- It adds 1 to a public input and passes the same proof off as the proof of a different statement.
- It has the prover make a proof of a statement that is false.
In the README's example, when Groth16 proved age, the setup took 43.7 ms, proving 21.5 ms and verifying 3.39 ms, and the proof was 192 bytes. All three attacks were stopped.
Most systems take under a second per statement. GKR alone is slow and takes about a minute on pool-spend.
3.Exhibits
3.1.Ali Baba's cave
This is the story that comes up most whenever zero knowledge is explained. The original is "How to Explain Zero-Knowledge Protocols to Your Children", a paper Jean-Jacques Quisquater and Louis Guillou published in 1989, and nmtzk follows it, leaving the popular retelling aside.
The cave in the original is no ring. Two passages split at the entrance and each ends in a dead end, and between the two ends is a wall that opens when the magic words are whispered. When the hero, Mick Ali, walks into one passage, a reporter flips a coin and calls out the side he must come back from. Without the words he can get it right only half the time, so the chance of lasting all 40 calls is about one in a trillion.
There is a second half to the story. A reporter from another channel films a look-alike actor who does not know the words and cuts every failed scene until 40 successes remain, and in court nobody can tell the two tapes apart. This edited tape is what the definition of zero knowledge calls a simulator. The same record can be made without the secret, which means the real record holds nothing about the secret either.
3.2.Trio
A zero-knowledge proof designed for this program in September 2026. It needs nothing beyond a hash function.
The prover splits each secret value into three random pieces that add up to it and hands one to each of three imaginary friends. Once the friends have worked out the statement together, the verifier draws one of five cards and opens only part of it. A cheater lasts a round with a chance of at most 3/5, so 109 rounds bring it below 2^-80.
The first draft was broken. A prover who had seen the card drawn could rewrite the hidden friend's values and get any false statement through, which is said to have been found in review before a line of code was written. The broken prover is still in the program, as a cheat you can watch being caught.
3.3.Toy Shielded Pool
A toy modelled on Zcash's designs for private payments. It is unofficial and not affiliated with Zcash, and it has no network and no real value.
You get coins, move them into notes whose amount and owner are hidden, send them privately to another wallet and take them out again, comparing the ledger everybody sees with what each wallet sees.
There are four attacks to try as well: a double spend, stealing somebody else's note, making money that does not exist with a negative amount, and spending one note twice. The honest circuit stops them all, and a circuit with one check left out gets broken.
3.4.Trusted-setup ceremony
In a system that needs a trusted setup, several people each add a secret and throw it away, so that nobody knows the final value. Six people made Zcash's first parameters this way on 22 and 23 October 2016.[3]
nmtzk ceremony shows what happens when the secret is not thrown away. Forge a proof with the secret numbers kept on purpose, saying the answer in the one-plus-one envelope is 3, and an ordinary verifier accepts it. Try the same forgery with guessed numbers and it is rejected.
3.5.CVE-2019-7167
A replay of a real flaw in BCTV14, the proof system Zcash launched with. Ariel Gabizon, of the company behind Zcash, found it on 1 March 2018: key generation was publishing extra values the prover never needed, and with them a false proof could be forged to make money that did not exist.
Zcash removed the flaw quietly when its upgrade of 28 October 2018 moved the proof system to Groth16, and disclosed it on 5 February 2019.
The replay uses a key made the flawed way to turn a proof that the envelope holds 2 into a proof that it holds 3, and the verifier accepts it.
4.Installing and using
The releases page has archives for Linux (x86-64, ARM64) and macOS (Intel, Apple silicon). There is none for Windows. Download one, unpack it and run the nmtzk inside.
The Linux builds need glibc 2.39 or newer, which means Ubuntu 24.04, Debian 13, Fedora 40 or later. The macOS builds are not signed, so Gatekeeper blocks a copy downloaded with a browser; clear the mark with xattr -d com.apple.quarantine or download with curl -LO.
Run nmtzk with no command and a full-screen program that looks like a chat program opens. Type something like /about halo2 in the box at the bottom and that system's page comes up. Add --lang ko to read it in Korean.
| Command | What it does |
|---|---|
nmtzk list | The list of systems |
nmtzk about | A system's page |
nmtzk examples | The seven statements |
nmtzk run | Prove, verify and attack, with one system or all of them |
nmtzk cave | Ali Baba's cave |
nmtzk trio | Trio |
nmtzk pool | The Toy Shielded Pool |
nmtzk ceremony | The trusted-setup ceremony |
nmtzk forge bctv14 | The replay of CVE-2019-7167 |
5.Trivia
- The README says the museum runs "from Schnorr's 1989 sigma protocol to 2024's Circle STARKs", but the table in the same README ends with Trio, of 2026.
- Mick lasts exactly 40 calls in the cave after the 40 thieves of the Ali Baba tale.
- In the popular retellings the cave is a ring, the characters are called Peggy and Victor, and the prover sometimes tosses the coin. None of the three is in the 1989 paper.
- The Korean edition of the cave page retells the story in Korean and then tells the reader to get the flavour of the original from the original.
- Schnorr is the oldest system in the program and still signs real transactions. Since the Taproot upgrade of November 2021 it is used for Bitcoin payments too.
- nmtzk's BCTV14 proofs are 288 bytes and Zcash's were 296, because the C++ library Zcash used puts a tag byte on each of the eight points in a proof.
- Five commits on 26 September 2026 carry the very same second, 18:45:26 UTC.
6.See also
7.References
- [1]The envelope and the digest are made with something called ToyHash, which the README describes as "a toy for teaching and not a real hash".
- [2]At the end it also looks for the secret value sitting byte for byte inside the proof. The screen labels this check "A smoke detector, not a proof of zero knowledge."
- [3]Those parameters are safe unless all six were dishonest or hacked.