mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-08 00:16:26 +00:00
Update 7_1_Understanding_the_Foundation_of_Transactions.md
This commit is contained in:
parent
19fe18707a
commit
edf64916d0
@ -136,3 +136,5 @@ These two transactions are _definitely_ locked in different ways. Bitcoin recogn
|
||||
## Summary: Understanding the Foundation of Transactions
|
||||
|
||||
Every Bitcoin transaction includes at least one unlocking script (`scriptSig`), which solves a previous cryptographic puzzle, and at least one locking script (`scriptPubKey`), which creates a new cryptographic puzzle. There's one `scriptSig` per input and one `scriptPubKey` per output. Each of these scripts is written in Bitcoin Script, a Forth-like language that further empowers Bitcoin.
|
||||
|
||||
_What is the power of scripts?_ Scripts unlock the full power of Smart Contracts. With the appropriate opcodes, you can make very precise decisions about who can redeem funds, when they can redeem funds, and how they can redeem funds. More intricate rules for corporate spending, partnership spending, proxy spending, and other methodologies can all be encoded within a Script, and that Script can be used as the redemption condition for specific funds.
|
||||
|
Loading…
x
Reference in New Issue
Block a user