Binance Hack
Markets

Blockstream: all 533 Simplicity jets proven, one spec bug

Blockstream says every jet in its Simplicity contract language has a machine-checked proof against the spec. One proof exposed a mismatch it calls a bug.

Editor · 3 min read

Source: Blockstream on X, 01:13 UTC · Published: 05:19 UTC

Blockstream: all 533 Simplicity jets proven, one spec bug

In brief

  • 532 of 533 jets are proven to match their specification.
  • The last proof shows one case where the C code and the specification differ.
  • Blockstream says AI agents wrote much of the proof work over 41 days.

Why it matters

Jets are the fast C routines nodes run in place of Simplicity code, so a mismatch could make a contract act differently than its author expects. Blockstream says the fix will go in the specification, not the C code.

Blockstream says every one of the 533 "jets" in Simplicity, the smart contract language on its Liquid network, now has a machine-checked proof that its C code matches its written specification. The company reported the milestone in a blog post and on X on December 2. One of the 533 proofs shows a case where the two do not match, which Blockstream calls a bug in the specification.

Jets are the fast, hand-written C routines that nodes run in place of the equivalent Simplicity code for common jobs such as hashing and signature checks. Blockstream says a jet is safe only if it does exactly what the code it replaces would do for every input. If the two ever disagreed, a contract's real behavior could depart from what its author had proved.

One mismatch, and where the fix goes

For 532 jets, the proofs show the C code and the specification are equivalent. The 533rd proof records exactly where they differ. The case sits in gej_ge_add_ex, a routine for adding two curve points. Given the same point twice, the specification leaves one coordinate unreduced, while the C code hands it back normalized.

Blockstream says changing the C code would require a fork of the network, so the planned fix is to correct the specification instead. The post lists that change as work still to do. It also says the full set of proofs has yet to be reviewed.

The proofs do not all stand on equal footing. Blockstream says 375 need no extra assumptions. Another 156 assume a model of a standard C library function, such as one that copies bytes. Three rely on an assumed property of the SHA-256 hash function, which Blockstream says no feasible computation could break unless SHA-256 has a serious undiscovered weakness.

AI wrote much of the work

Blockstream says the proof work took 41 days, with AI coding agents writing much of it. It credits Breno Brito of the Simplicity team and estimates about 15.2 billion tokens were processed across Claude Code and Codex. The proofs run in Rocq, a proof assistant whose small core checks every step, so the company argues nobody has to trust the AI that drafted them: a proof either checks or it does not.

Blockstream is also clear about the limits. A proof is only as good as the specification it is written against, and these proofs do not show that the specification says what everyone intends. They do not yet cover the parts of the system that evaluate and decode contracts, or the compiler for SimplicityHL, the higher-level language developers write in. The same caveat applies to other proof claims in crypto: OnchainBeat reported that Sequent's proof for the Vyper compiler covers a model of the compiler, not the Python code itself.

By the numbers - 533 jets, all with a Rocq proof against the specification - 532 proven equivalent to their C code, 1 proof records a mismatch - 375 proofs need no extra assumptions, 156 assume a C library model, 3 assume a SHA-256 property - 41 days of proof work, about 15.2 billion tokens by Blockstream's estimate

What we know

  • Blockstream published the claim and the counts on December 2, and says the proofs are checked by Rocq's kernel.
  • The one mismatch is in gej_ge_add_ex, and Blockstream plans to change the specification, not the C code.

What we don't know

  • Whether anyone outside Blockstream has reviewed the full set of proofs, which the post lists as a next step.
  • Whether the specification fix is done or has a date.

What this means

For people building contracts on Simplicity, the jets their code calls now have proofs against the same specification they reason about. That is a stronger base than testing alone, but Blockstream itself says formally verified does not mean bug-free, and its own proofs found one mismatch in the specification.

@blockstream Official

New from @blksresearch: every jet in Simplicity now has a machine-checked proof of its C code against the spec. Formal verification matters when contracts on @Liquid_BTC hold real money: a proof covers every input, not only the ones tested.

View on X

Editor

Mike Kara (Mustafa Karaman) is an editor at OnchainBeat. He writes and edits markets coverage, a section he shares with Omer Dede.