mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 16:18:11 +00:00
ch07: add roles of sender and recipient
This commit is contained in:
parent
70177894ec
commit
32afaef9a7
@ -112,7 +112,7 @@ P2SH was developed to resolve these practical difficulties and to make the use o
|
||||
| Unlocking Script | Sig1 Sig2 <redeem script>
|
||||
|=======
|
||||
|
||||
As you can see from the tables, with P2SH the complex script that details the conditions for spending the output (redeem script) is not presented in the locking script. Instead, only a hash of it is in the locking script and the redeem script itself is presented later, as part of the unlocking script when the output is spent. This shifts the burden in fees and complexity from the sender to the recipient (spender) of the transaction.
|
||||
As you can see from the tables, with P2SH the complex script that details the conditions for spending the output (redeem script) is not presented in the locking script. Instead, only a hash of it is in the locking script and the redeem script itself is presented later, as part of the unlocking script when the output is spent. This shifts the burden in fees and complexity from the sender (who creates the transaction) to the recipient (who unlocks and spends the transaction).
|
||||
|
||||
Let's look at Mohammed's company, the complex multisignature script, and the resulting P2SH scripts.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user