Learn SIMPLICITY with Real Code Examples
Updated Nov 25, 2025
Architecture
Simplicity source -> abstract syntax tree (AST) -> core expressions -> serialized bytecode
Contracts executed in a deterministic virtual machine
Strong typing system ensures safety at compile-time
Composable combinators form contract logic
Designed for verification and auditability
Rendering Model
Simplicity source -> AST -> core combinators -> serialized bytecode
Static type checking at compile-time
Formal verification optionally applied
Sandboxed evaluation
Executed within UTXO blockchain context
Architectural Patterns
Functional combinators
Compositional contract design
Typed expressions
UTXO transaction integration
Formal verification-friendly structure
Real World Architectures
Multi-signature wallets
UTXO-based DeFi primitives
Escrow and payment channels
Atomic swaps
Bitcoin sidechain smart contracts
Design Principles
Functional and composable
Strong typing for safety
Formal verification first
Predictable and deterministic execution
UTXO-focused blockchain compatibility
Scalability Guide
Reuse combinator patterns
Batch multiple UTXO transactions
Keep contracts small and composable
Optimize AST for minimal bytecode
Leverage off-chain verification
Migration Guide
Convert Bitcoin Script contracts to Simplicity expressions
Define typed combinator structures
Prove contract correctness formally
Serialize AST to bytecode for UTXO deployment
Test in sandbox before mainnet deployment