Constraint Script
{ "title":"Constraint Script", "related":["/glossary/output__script","/glossary/redeem__script","/glossary/input__script"] }

Bitcoins are not sent to addresses, they are actually encumbered by a program (generally called a script, which is a term for a short, simple program that typically focuses on one thing). Spending transactions supply input parameters (in the form of an input script) to this constraint script. If the constraint script returns success, the coins are able to be spent. Otherwise the transaction is invalid.

The term “constraint script” refers generally to any script that adds spending constraints. In Bitcoin, there are actually two different scripts that can do this – the output script and the redeem script.