High-Assurance
Bitcoin Smart Contracts

Simplicity is a UTXO-based smart contracting language for Bitcoin, designed for verifiable security, financial correctness, and high-value applications.

Why Simplicity?

Know what your contracts do
before they run.

A Simplicity contract is a spending condition on coins: it doesn't call other contracts, touch shared state, or loop without bound. That narrower model makes contracts easier to analyze. Their resource use is known ahead of time, and the language has a formal, machine-checked specification.

Execution costs bounded before you broadcast.
No external calls, so a smaller attack surface.
A formally specified and verified core language, Rocq.
Only the executed branch is revealed on-chain.

How Simplicity Works

Verifiable, Predictable Execution.

Simplicity complements Bitcoin Script with a low-level language that's expressive enough for advanced covenants and financial instruments while being formally verifiable for absolute predictability. Financial applications inherit a small, precisely defined base: bounded costs, no shared state, and no ambiguity in what the consensus layer will do. Developers write SimplicityHL, full nodes execute Simplicity. Learn more.

SimplicityHL in the editor

Familiar to Read

SimplicityHL looks like Rust: let, match, typed functions. Underneath, a program is a predicate over a transaction. It either authorizes a spend or it doesn't. There's no heap, no global state and no unbounded loops.

Explicit to Reason About

Everything a contract depends on is in front of you: the transaction it inspects, the witness data it receives, and the conditions it asserts. Nothing else can change that state while it runs.

Compiled to Simplicity

The SimplicityHL compiler turns your code into Simplicity, the low-level language that full nodes execute. Common operations like hashing and signature checks run as optimized jets.

Coming from the EVM?

The EVM offers more flexibility and composability. Simplicity is deliberately more restrictive, trading some of that flexibility for stronger security guarantees.

State
EVM

Each contract keeps persistent storage that its functions read and write.

Simplicity

State lives in the coins (UTXOs) a contract locks and is carried forward in transaction outputs.

Checks
EVM

require(cond) reverts the call.

Simplicity

assert!(cond) fails the program, making the transaction invalid.

Costs
EVM

Gas is metered at runtime, and a reverted transaction still pays for the gas it used.

Simplicity

CPU and memory use have a static upper bound, known before broadcast. Invalid transactions are never mined.

Authorization
EVM

msg.sender identifies the caller.

Simplicity

Signatures are checked explicitly, e.g. jet::bip_0340_verify.

Composition
EVM

Contracts call each other, and one call can trigger many others.

Simplicity

No contract calls. Several contracts compose by being spent in the same transaction.

Re-entrancy
EVM

Guarded against with checks-effects-interactions or ReentrancyGuard.

Simplicity

Not a class of bug. With no external calls, execution can’t be re-entered.

Tokens
EVM

ERC-20 and ERC-721 contracts.

Simplicity

Native Liquid assets, issued at the protocol level. Contracts constrain how they move.

Built with Simplicity

Open-source protocols, demos, and research projects on Liquid.

Demo

P2P Lending

A peer-to-peer lending protocol in pure SimplicityHL. Borrowers post collateral, lenders fund offers, and the covenant enforces repayment or liquidation at expiry.

Demo

Decentralized Asset Management Protocol

Regulated assets on Liquid. A Simplicity covenant enforces whitelists, blacklists, and transfer limits with no issuer signature on each transfer, and issuers can produce signed confidential audit reports.

Demo

Native Multisig

Multisig custody contracts with Rocq proofs that reach from the security model all the way down to the deployed compiled bytes.

Reference

Options & Offers

Option and option-offer contracts, plus on-chain state management patterns, built with Smplx and tested on a local Liquid regtest.

In Development

Price Oracle

A Simplicity-powered, decentralized price oracle for Liquid. The draft specification is public and development happens in the open.

Research

Post-Quantum Signatures

A SHRINCS hash-based signature verifier written in Simplicity, used by the PQ Liquid Wallet to sign transactions on Liquid testnet.

High-Assurance Financial Programming

Since Simplicity contracts are auditable and proveable before deployment, Simplicity offers unprecedented transparency and compliance assurance for financial institutions. Build programmable capital markets, issue assets, and settle trades—all on Bitcoin’s most secure sidechain, Liquid.

Verified core illustration

Try Simplicity Now

Start from the example contracts and the standard library, or write your own. Live on Liquid with native multi-asset support, and available on a Bitcoin signet for experimentation.

Simplicity on Liquid and Bitcoin