mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-03-24 19:35:43 +00:00
Made changes to ch05.asciidoc
This commit is contained in:
parent
4254fd9875
commit
5e27f5a21d
@ -349,9 +349,9 @@ Check the source code of the Bitcoin Core client (the reference implementation)
|
||||
The five standard types of transaction scripts are pay-to-public-key hash (P2PKH), public-key, multi-signature (limited to 15 keys), pay-to-script hash (P2SH), and data output (OP_RETURN), which are described in more detail in the following sections.
|
||||
|
||||
[[p2pkh]]
|
||||
==== Pay-to-Public-Key-Hash (P2PKH)
|
||||
==== Pay-to-Public-Key Hash (P2PKH)
|
||||
|
||||
((("Pay-to-Public-Key-Hash (P2PKH)", id="ix_ch05-asciidoc15", range="startofrange")))((("transactions","Pay-to-Public-Key-Hash", id="ix_ch05-asciidoc16", range="startofrange")))The vast majority of transactions processed on the bitcoin network are Pay-to-Public-Key-Hash, also known as P2PKH transactions. These contain a locking script that encumbers the output with a public key hash, more commonly known as a bitcoin address. Transactions that pay a bitcoin address contain P2PKH scripts. An output locked by a P2PKH script can be unlocked (spent) by presenting a public key and a digital signature created by the corresponding private key.
|
||||
((("pay-to-public-key hash (P2PKH)", id="ix_ch05-asciidoc15", range="startofrange")))((("transactions","pay-to-public-key hash", id="ix_ch05-asciidoc16", range="startofrange")))The vast majority of transactions processed on the bitcoin network are pay-to-public-key hash, also known as P2PKH transactions. These contain a locking script that encumbers the output with a public key hash, more commonly known as a bitcoin address. Transactions that pay a bitcoin address contain P2PKH scripts. An output locked by a P2PKH script can be unlocked (spent) by presenting a public key and a digital signature created by the corresponding private key.
|
||||
|
||||
For example, let's look at Alice's payment to Bob's Cafe again. Alice made a payment of 0.015 bitcoin to the cafe's bitcoin address. That transaction output would have a locking script of the form:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user