Files
specification/protocol/blockchain/transaction/unlocking-script.md
T
Josh Green 48f022edfa Enforced 1-sentence per line for existing pages.
All pages except BIPs are conform to 1-sentence per line.
2019-12-22 17:37:40 -05:00

8 lines
690 B
Markdown

# Unlocking Script
An unlocking script is a [Script](/protocol/blockchain/script) that is used to prove that a transaction is permitted to spend a given UTXO.
This is accomplished by first executing the unlocking script and then executing the locking script for the UTXO referenced by the transaction input.
If this execution triggers no failures and leaves a single non-zero (TRUE) value on the stack, the UTXO has been successfully unlocked.
One way to look at this is that the unlocking script provides an initial state that acts as an inverse to the previously published locking script.
For more information about how script execution works, see [Script](/protocol/blockchain/script).