0Pricing
Cryptology Academy · Lesson

Bitcoin Script & UTXO Signature Verification

Trace pay-to-public-key-hash (P2PKH) scripts and ECDSA signing.

UTXO Model

Bitcoin uses Unspent Transaction Outputs (UTXOs). Each UTXO is a coin with a locking script (scriptPubKey). To spend it, the spender provides an unlocking script (scriptSig) that satisfies the locking script. UTXOs are atomic — spent or unspent, never partial.

Bitcoin Script

Bitcoin Script is a stack-based, non-Turing-complete language. Scripts execute by pushing data and running opcodes. No loops, no recursion — scripts always terminate. This intentional limitation prevents denial-of-service and makes script verification O(n) in script length.

All lessons in this course

  1. Hash Chains & Block Linking
  2. Merkle Trees: Transaction Integrity at Scale
  3. Proof of Work: Mining & Difficulty Adjustment
  4. Bitcoin Script & UTXO Signature Verification
← Back to Cryptology Academy