Learn About Bitcoin℠
Bitcoin Scripting & Smart Contracts
Limited on-chain capabilities by design
Bitcoin includes a scripting language that determines the conditions under which coins can be spent. The language is intentionally limited. It is not Turing-complete and does not support general-purpose smart contracts of the kind found on other platforms. The design prioritizes predictability, verifiability, and a small attack surface over expressiveness.
What Bitcoin Script Can Express
Standard scripts support multisignature requirements (any number of keys, any threshold), absolute and relative time locks, and combinations of these conditions. With the Taproot upgrade, complex spending conditions can be committed to a Merkle tree and revealed only if needed. Schnorr signatures reduce size and enable signature aggregation. Miniscript provides a structured way to compose and analyze these policies so that wallets and services can reason about them safely.
Practical patterns include 2-of-3 or 3-of-5 multisig, time-delayed recovery paths, and policies that require both a key and the passage of time. These are widely used for institutional custody, collaborative custody, and inheritance arrangements.
What Bitcoin Script Cannot Express
Bitcoin Script cannot run arbitrary programs, maintain persistent state across transactions in the manner of an account-based virtual machine, or enforce complex conditional logic that depends on external data feeds. There is no native support for loops or general computation. Attempts to approximate more advanced logic increase transaction size, fees, and the risk of non-standard scripts that nodes may not relay.
Higher-level applications that require richer state or computation typically settle on Bitcoin while performing the additional logic off-chain or on other systems. The base layer remains focused on simple, verifiable spending conditions.
Design Constraints
The limits are deliberate. A more expressive language would expand the surface for bugs, increase the cost of validation for every node, and make fee estimation and block space usage harder to predict. The current design keeps the rules small enough that independent verification remains practical for ordinary hardware. Upgrades such as Taproot expanded capability while preserving these constraints.
Users and services that need more complex arrangements combine on-chain scripts with off-chain coordination, multisignature schemes, or layered protocols. The on-chain portion remains limited to the spending conditions that can be expressed in Script.
By accessing this website you agree to the User Agreement, Privacy Policy, and Legal Notice.