Recall: TX 的数据结构

Transaction 由三部分组成:

  1. 指向 unspent UTXO 的 Hash Pointer 以及每一个 unspent UTXO 对应的 unlocking script
    • 一个 bitcoin unlocking script 包含 signature 和 sender’s public key
  2. 新的 UTXOs
    • 每一个 UTXO 包含金额、receiver’s address
  3. TX’s Metadata

How Are Bitcoin Scripts Executed?

动画展示
动画展示