mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 16:18:11 +00:00
Edited appdx-segwit.asciidoc with Atlas code editor
This commit is contained in:
parent
5eadd22d8d
commit
906b79d929
@ -61,7 +61,7 @@ Let’s look at some of our example transactions and see how they would change w
|
|||||||
[[p2wpkh]]
|
[[p2wpkh]]
|
||||||
===== Pay-to-Witness-Public-Key-Hash (P2WPKH)
|
===== Pay-to-Witness-Public-Key-Hash (P2WPKH)
|
||||||
|
|
||||||
In <<cup_of_coffee>>, Alice created a transaction to pay Bob for a cup of coffee. That transaction created a P2PKH output with a value of 0.015 BTC that was spendable by Bob. The output’s script looks like this:
|
In <<cup_of_coffee>>, ((("use cases", "buying coffee", id="aliced")))Alice created a transaction to pay Bob for a cup of coffee. That transaction created a P2PKH output with a value of 0.015 BTC that was spendable by Bob. The output’s script looks like this:
|
||||||
|
|
||||||
.Example P2PKH output script
|
.Example P2PKH output script
|
||||||
----
|
----
|
||||||
@ -236,7 +236,7 @@ Finally, the P2SH script is converted to a P2SH bitcoin address:
|
|||||||
37Lx99uaGn5avKBxiW26HjedQE3LrDCZru
|
37Lx99uaGn5avKBxiW26HjedQE3LrDCZru
|
||||||
----
|
----
|
||||||
|
|
||||||
Now, Bob can display this address for customers to pay for their coffee. Alice's wallet can make a payment to +3deadbeef+, just as it would to any other bitcoin address. Even though Alice's wallet has no support for segwit, the payment it creates can be spent by Bob with a segwit transaction.
|
Now, Bob can display this address for customers to pay for their coffee. Alice's wallet can make a payment to +3deadbeef+, just as it would to any other bitcoin address. Even though Alice's wallet has no support for segwit, the payment it creates can be spent by Bob with a segwit transaction.((("", startref="aliced")))
|
||||||
|
|
||||||
===== Pay-to-Witness-Script-Hash inside Pay-to-Script-Hash
|
===== Pay-to-Witness-Script-Hash inside Pay-to-Script-Hash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user