mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-08 08:26:17 +00:00
Update 8_1_Building_a_Bitcoin_Script_with_P2SH.md
This commit is contained in:
parent
9bfc66082a
commit
fe4063b0a2
@ -124,3 +124,5 @@ With that second validation _also_ true, the UTXO can now be spent!
|
||||
## Summary: Building a Bitcoin Script with P2SH
|
||||
|
||||
Arbitrary Bitcoin Scripts are non-standard in Bitcoin. However, you can incorporate them into standard transactions by using the P2SH address type. You just hash your script as part of the locking script, then you reveal and run it as part of the redemption script. As long as you can also satisfy the script, the UTXO can be spent.
|
||||
|
||||
_What is the power of P2SH?_ You already know the power of Bitcoin Script, which can allow you to create more complex Smart Contracts of all sorts. P2SH is what actually unleashes that power by letting you use arbitrary Bitcoin Script in standard Bitcoin transactions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user