---
title: "Bitcoin Script — Nuri Glossary"
description: "The stack-based language that locks outputs and defines what a spender must provide to unlock them."
lang: "en"
type: "glossary-term"
canonical: "https://preview.nuri.com/glossary/bitcoin-script"
---

# Bitcoin Script

The stack-based language that locks outputs and defines what a spender must provide to unlock them.

## Basically

The small rule language that says who may spend a coin and under what conditions. It is limited on purpose so it stays safe and cheap.

## Key Takeaways

- Bitcoin Script is the stack-based language that locks outputs and defines how they may be spent.
- It is deliberately limited: no loops, no randomness, bounded computation.
- Complex conditions are possible; arbitrary programs are not.

## What a script does

Every output carries a locking script describing what a spender must provide. Every input carries the unlocking data. A node runs the two together on a stack and accepts the spend only if the program finishes with true. That is the whole mechanism of Bitcoin smart contracts, and it is intentionally dumb.
There are no loops, a small instruction set and hard limits on sizes and counts. The consequence: any script's cost is bounded and predictable, so every node can validate a block without fear of runaway computation.

## What people build with it

Multisig, time-locked recovery paths, hash-locked swaps, vault-like constructions and the channels Lightning uses. On top sit description layers — miniscript for analyzable composition, descriptors for precise wallet restoration — because raw script is hard to write and audit.

## Expansion debates

Proposed opcodes like OP_CAT or OP_CTV would widen what scripts can express, reopening the perennial argument about whether a deliberately restricted language is Bitcoin's strength or its ceiling.
Part of the [Nuri glossary](https://preview.nuri.com/glossary), which defines 1774 Bitcoin, Lightning, wallet, stablecoin and payment terms.
