Skip to main content

Redeem Script

bitcoin · scripting

The script that defines spending conditions for a P2SH output; revealed and executed when the coins are spent.

1.definition

In Pay-to-Script-Hash (P2SH), the output locks coins to the hash of a script instead of placing the full script on-chain immediately. When spending, the transaction reveals the redeem script plus the required data, and nodes verify both the hash match and the script result.

2.notes

Redeem scripts make complex spending policies possible, but the full script becomes public when used and increases the size of the spending input. Simple single-signature payments usually use simpler address types, while newer script systems may offer different privacy and efficiency trade-offs.

Related terms

All terms and definitions may update as the Cryptionary improves.