mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-01-09 15:20:55 +00:00
CH01-02: edits for Murchandamus feedback
- Fix bitcoin-overview image (P2PKH address was used as "private key") - Use receiving and sending images from Bitcoin Design Guide (https://bitcoin.design) under CC-BY license (https://github.com/BitcoinDesign/Guide/blob/master/LICENSE) - Mention changeless outputs, especially as used in transaction-chain image - Include brief mention of best blockchain in paragraph about the cost to miners for confirming conflicting transactions
This commit is contained in:
parent
71cf4bc97a
commit
f770347bd7
@ -401,7 +401,7 @@ Alice uses the _Receive_ button, which displays a QR code along with a Bitcoin a
|
|||||||
|
|
||||||
[[wallet_receive]]
|
[[wallet_receive]]
|
||||||
.Alice uses the Receive screen on her mobile Bitcoin wallet, and displays her address in a QR code format
|
.Alice uses the Receive screen on her mobile Bitcoin wallet, and displays her address in a QR code format
|
||||||
image::images/receive.png["Wallet receive screen with QR code displayed"]
|
image::images/receive.png["Wallet receive screen with QR code displayed. Image derived from Bitcoin Design Guide CC-BY"]
|
||||||
|
|
||||||
The QR code is the square with a pattern of black and white dots, serving as a form of barcode that contains the same information in a format that can be scanned by Joe's smartphone camera. Near the wallet's QR code is the Bitcoin address it encodes, and Alice may choose to manually send her address to Joe by copying it onto her clipboard with a tap.
|
The QR code is the square with a pattern of black and white dots, serving as a form of barcode that contains the same information in a format that can be scanned by Joe's smartphone camera. Near the wallet's QR code is the Bitcoin address it encodes, and Alice may choose to manually send her address to Joe by copying it onto her clipboard with a tap.
|
||||||
|
|
||||||
@ -499,7 +499,7 @@ faster the transaction will be confirmed (see <<confirmations>>).
|
|||||||
[[wallet-send]]
|
[[wallet-send]]
|
||||||
[role="smallereighty"]
|
[role="smallereighty"]
|
||||||
.Bitcoin wallet send screen
|
.Bitcoin wallet send screen
|
||||||
image::images/send.png["Wallet send screen"]
|
image::images/send.png["Wallet send screen. Image derived from Bitcoin Design Guide CC-BY"]
|
||||||
|
|
||||||
Joe then carefully checks to make sure he has entered the correct
|
Joe then carefully checks to make sure he has entered the correct
|
||||||
amount, because he is about to transmit money and mistakes will soon become
|
amount, because he is about to transmit money and mistakes will soon become
|
||||||
|
@ -32,7 +32,6 @@ application that operates as a bitcoin search engine, in that it allows
|
|||||||
you to search for addresses, transactions, and blocks and see the
|
you to search for addresses, transactions, and blocks and see the
|
||||||
relationships and flows between them.
|
relationships and flows between them.
|
||||||
|
|
||||||
//FIXME: priv key to P2PKH address
|
|
||||||
[[bitcoin-overview]]
|
[[bitcoin-overview]]
|
||||||
.Bitcoin overview
|
.Bitcoin overview
|
||||||
image::images/mbc2_0201.png["Bitcoin Overview"]
|
image::images/mbc2_0201.png["Bitcoin Overview"]
|
||||||
@ -235,8 +234,6 @@ change.
|
|||||||
@enddittaa
|
@enddittaa
|
||||||
////
|
////
|
||||||
|
|
||||||
//FIXME: clarify that these aren't the same transactions as described in
|
|
||||||
//the text
|
|
||||||
[[transaction-chain]]
|
[[transaction-chain]]
|
||||||
.A chain of transactions, where the output of one transaction is the input of the next transaction
|
.A chain of transactions, where the output of one transaction is the input of the next transaction
|
||||||
image::images/transaction-chain.png["Transaction chain"]
|
image::images/transaction-chain.png["Transaction chain"]
|
||||||
@ -281,6 +278,14 @@ which outputs are change and which are payments. However, for
|
|||||||
illustration purposes, we've added shading to the change outputs in
|
illustration purposes, we've added shading to the change outputs in
|
||||||
<<transaction-chain>>.
|
<<transaction-chain>>.
|
||||||
|
|
||||||
|
Not every transaction has a change output. Those that don't are called
|
||||||
|
_changeless transactions_ and they can have only a single output.
|
||||||
|
Changeless transaction are only a practical option if the amount being
|
||||||
|
spent is roughly the same as the amount available in the transaction
|
||||||
|
inputs minus the anticipated transaction fee. In <<transaction-chain>>
|
||||||
|
we see Bob creating Tx3 as a changeless transaction that spends the
|
||||||
|
output he received in Tx2.
|
||||||
|
|
||||||
==== Coin selection
|
==== Coin selection
|
||||||
|
|
||||||
Different wallets use different strategies when choosing which
|
Different wallets use different strategies when choosing which
|
||||||
@ -590,7 +595,6 @@ block and announced it to the network. After each other miner
|
|||||||
validates the winning block, they start a new lottery to generate the next
|
validates the winning block, they start a new lottery to generate the next
|
||||||
block.
|
block.
|
||||||
|
|
||||||
//FIXME:Murch CH2 feedback about most-PoW chain
|
|
||||||
Jing's winning block containing Alice's transaction became part of the
|
Jing's winning block containing Alice's transaction became part of the
|
||||||
blockchain. The block containing Alice's transaction is counted as one
|
blockchain. The block containing Alice's transaction is counted as one
|
||||||
"confirmation" of that transaction. After the block containing Alice's
|
"confirmation" of that transaction. After the block containing Alice's
|
||||||
@ -598,8 +602,11 @@ transaction has propagated through the network, creating an alternative
|
|||||||
block with a different version of Alice's transaction (such as a
|
block with a different version of Alice's transaction (such as a
|
||||||
transaction that doesn't pay Bob) would require performing the same
|
transaction that doesn't pay Bob) would require performing the same
|
||||||
amount of work as it will take all Bitcoin miners to create an entirely
|
amount of work as it will take all Bitcoin miners to create an entirely
|
||||||
new block. For the entire network to accept an alternative block, an
|
new block. When there are multiple alternative blocks to choose from,
|
||||||
additional new block would need to be mined on top of the alternative.
|
Bitcoin full nodes choose the chain of valid blocks with the most total
|
||||||
|
Proof-of-Work, called the _best blockchain_. For the entire network to
|
||||||
|
accept an alternative block, an additional new block would need to be
|
||||||
|
mined on top of the alternative.
|
||||||
|
|
||||||
That means miners have a choice. They can work with Alice on an
|
That means miners have a choice. They can work with Alice on an
|
||||||
alternative version of the transaction where she pays Bob, perhaps with
|
alternative version of the transaction where she pays Bob, perhaps with
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 158 KiB |
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 36 KiB |
BIN
images/send.png
BIN
images/send.png
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
Loading…
Reference in New Issue
Block a user