dash-docs/img/dev/en-tx-overview-spending.dot
David A. Harding e26b0e3819
Revise TX Overview Image
* Replace previous TX Overview image with a simplified illustration.
  The previous overview image was commented out in pull #566 / commit
  6afc683.  New image incorporates suggestions by @saivann (thanks!)

* Add new illustration showing the specifics of outputs and inputs (and
  how they're related). This replaces most of the detail lost by using a
  simplified overview image

* Add two short paragraphs briefly describing the ouput and input
  features, leading into the existing detailed P2PKH description
2014-10-01 18:40:38 -04:00

52 lines
1.5 KiB
Text

digraph tx_overview {
size=6.25;
splines = "false";
rankdir=TB;
ranksep=0.5;
nodesep=0.05;
//splines=ortho;
node [ penwidth=1.75, fontname="Sans", shape = box ];
edge [ penwidth=1.75, fontname="Sans" ];
graph [ penwidth=1.75, fontname="Sans" ];
tx1_label [ shape = "none", label = "Transaction\n1" ]
tx0_label [ shape = "none", label = "Transaction\n0" ]
tx0_label -> tx1_label [ style = "invis" ];
tx1_notshown [ shape = "none", label = "Not Shown:\nVersion, Outputs,\nLocktime" ]
tx0_notshown [ shape = "none", label = "Not Shown:\nVersion, Inputs,\nLocktime" ]
tx0_notshown -> tx1_notshown [ style = "invis" ];
subgraph cluster_tx0 {
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\nIdentifier" ];
label = "Example Input Spending The Example Output";
labelloc = b;
}
graph [ penwidth = 0 ];
}
pubkey_script -> signature_script [ style = "dashed" ];
output0_label -> index [ style = "dashed" ];
tx0_label -> txid [ style = "dashed", constraint = false ];
label = "Overview Of Transaction Spending"
}