Bitcoin Script
Smart Contracts● Common

A stack-based programming language used to define spending conditions for UTXOs. Intentionally not Turing-complete (no loops) for security. Common scripts: P2PKH (pay to public key hash), P2SH (pay to script hash), P2WPKH (SegWit), P2TR (Taproot).

Technical Notes

~100 opcodes. ScriptPubKey (output): locking script. ScriptSig (input): unlocking script. Execution: push scriptSig, then scriptPubKey onto stack. Valid if stack top is true. OP_CHECKSIG verifies signature. Tapscript enables new opcodes for Taproot.

Metadata

Visibility: Public
Created:1/3/2026by System

Actions