Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Revise TX Overview Image #581
Conversation
|
@harding Do you think a modified illustration like the one below would make it more obvious; by showing an output actually spent, and the last output being still unspent (no arrow that suggests otherwise). |
|
@saivann I do like that modification. I'll give it a try, revise the commit, and post an update here. Thanks! |
|
@saivann image updated. Thanks! Here's the new version: |
saivann
commented on an outdated diff
Oct 1, 2014
| @@ -37,7 +37,22 @@ Bitcoin peers and miners which set of rules to use to validate it. This | ||
| lets developers create new rules for future transactions without | ||
| invalidating previous transactions. | ||
| -The figures below help illustrate the other transaction features by | ||
| + | ||
| + | ||
| +An output has an implied index number based on its location in the | ||
| +transaction---the first output is output zero. The output also has an | ||
| +amount in satoshis which it pays to a conditional pubkey script. Anyone | ||
| +who can satisfy the conditions of that pubkey script can spend up to the | ||
| +amount of satoshis paid to it. | ||
| + | ||
| +An input uses a transaction identifier (txid) and an output index number | ||
| +(often called "vout" for output vector) to identify a particular output to | ||
| +be spent. It also has a signature script which allows it to provide data | ||
| +parameters that satisify the conditionals in the pubkey script. (The sequence |
|
|
saivann
commented on an outdated diff
Oct 1, 2014
| + | ||
| + subgraph cluster_outputs { | ||
| + pubkey_script [ label = "Pubkey\nScript" ]; | ||
| + amount [ label = "Amount\n(satoshis)" ]; | ||
| + output0_label [ shape = "none", label = "Output 0\n(Implied)" ] | ||
| + label = "Example Output Paying A Pubkey Script" | ||
| + } | ||
| + graph [ penwidth = 0 ]; | ||
| +} | ||
| + | ||
| +subgraph cluster_tx1 { | ||
| + subgraph cluster_inputs { | ||
| + index [ label = "Output\nIndex" ]; | ||
| + sequence [ label = "Sequence\nNumber" ]; | ||
| + signature_script [ label = "Signature\nScript" ]; | ||
| + txid [ label = "Transaction\nIndentifier" ]; |
|
|
|
Two small typos found, otherwise LGTM, thanks! |
|
@saivann Typos fixed. Thanks! In the absence of critical feedback, I'll merge this pull around 23:00 UTC Thursday. |

harding commentedSep 27, 2014
Preview: http://dg0.dtrt.org/en/developer-guide#transactions
The previous overview image was commented out in pull #566 / commit
6afc683
how they're related). This replaces most of the detail lost by using a
simplified overview image
features, leading into the existing detailed P2PKH description