mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
This modifies commits provided by @petertodd to use the terms "pubkey script" and "signature script" instead of other terms. * Rename "scriptPubKey" and "output script" to "pubkey script" (suggested by @luke-jr). We leave a token "scriptPubKey" at the point where we define pubkey script so that searchers can find it. * Rename "scriptSig" to "signature script" (suggested by @luke-jr). We also leave a token "scriptSig" at this definition point. * Rename "redeemScript" to "redeem script" * Defined ECDSA on secp256k1 curve as the crypto used in the Transaction section and added references to secp256k1 private/public keys and signatures. * Removed "The Parts Of A Transaction" illustration by commenting it out in the HTML. Shoehorning the pubkey/signature script terms into this image was becoming difficult, and I'm not very fond of that illustration anyway. I'll see if I can think of a nicer replacement illustration for some point in the future. * Add a short paraphrased version @petertodd's description of scripts as generalized crypto. * Updated all the illustrations which referred to either pubkey scripts or signature scripts to use these terms.
80 lines
5 KiB
XML
80 lines
5 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<!-- Generated by graphviz version 2.26.3 (20100126.1600)
|
|
-->
|
|
<!-- Title: blockchain Pages: 1 -->
|
|
<svg width="450pt" height="207pt"
|
|
viewBox="0.00 0.00 450.00 206.83" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<g id="graph1" class="graph" transform="scale(0.698758 0.698758) rotate(0) translate(4 292)">
|
|
<title>blockchain</title>
|
|
<polygon fill="white" stroke="white" points="-4,5 -4,-292 641,-292 641,5 -4,5"/>
|
|
<text text-anchor="middle" x="318" y="-25.4" font-family="Times Roman,serif" font-size="14.00"> </text>
|
|
<text text-anchor="middle" x="318" y="-8.4" font-family="Times Roman,serif" font-size="14.00">Spending A P2SH Output</text>
|
|
<g id="graph2" class="cluster"><title>cluster_tx2</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="238,-50 238,-280 410,-280 410,-50 238,-50"/>
|
|
</g>
|
|
<g id="graph3" class="cluster"><title>cluster_tx1</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="8,-50 8,-127 180,-127 180,-50 8,-50"/>
|
|
<text text-anchor="middle" x="94" y="-110.4" font-family="Times Roman,serif" font-size="14.00">TX 1 Output</text>
|
|
</g>
|
|
<g id="graph4" class="cluster"><title>cluster_bob</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="468,-142 468,-262 628,-262 628,-142 468,-142"/>
|
|
<text text-anchor="middle" x="548" y="-245.4" font-family="Times Roman,serif" font-size="14.00">Bob's Computer</text>
|
|
</g>
|
|
<!-- scriptSig -->
|
|
<g id="node2" class="node"><title>scriptSig</title>
|
|
<text text-anchor="middle" x="324" y="-249.9" font-family="Times Roman,serif" font-size="14.00">Signature Script</text>
|
|
</g>
|
|
<!-- tx2_signature -->
|
|
<g id="node3" class="node"><title>tx2_signature</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="366,-229 282,-229 282,-193 366,-193 366,-229"/>
|
|
<text text-anchor="middle" x="324" y="-206.9" font-family="Times Roman,serif" font-size="14.00">Signature</text>
|
|
</g>
|
|
<!-- private_key -->
|
|
<g id="node10" class="node"><title>private_key</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="595,-229 501,-229 501,-193 595,-193 595,-229"/>
|
|
<text text-anchor="middle" x="548" y="-206.9" font-family="Times Roman,serif" font-size="14.00">Private Key</text>
|
|
</g>
|
|
<!-- tx2_signature->private_key -->
|
|
<g id="edge10" class="edge"><title>tx2_signature->private_key</title>
|
|
<path fill="none" stroke="black" stroke-width="1.75" stroke-dasharray="5,2" d="M376.344,-211C413.809,-211 463.85,-211 500.232,-211"/>
|
|
<polygon fill="black" stroke="black" points="376.133,-207.5 366.133,-211 376.133,-214.5 376.133,-207.5"/>
|
|
</g>
|
|
<!-- tx2_redeemScript -->
|
|
<g id="node4" class="node"><title>tx2_redeemScript</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="396,-186 252,-186 252,-150 396,-150 396,-186"/>
|
|
<text text-anchor="middle" x="324" y="-163.9" font-family="Times Roman,serif" font-size="14.00">Full Redeem Script</text>
|
|
</g>
|
|
<!-- redeemScript -->
|
|
<g id="node11" class="node"><title>redeemScript</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="620,-186 476,-186 476,-150 620,-150 620,-186"/>
|
|
<text text-anchor="middle" x="548" y="-163.9" font-family="Times Roman,serif" font-size="14.00">Full Redeem Script</text>
|
|
</g>
|
|
<!-- tx2_redeemScript->redeemScript -->
|
|
<g id="edge8" class="edge"><title>tx2_redeemScript->redeemScript</title>
|
|
<path fill="none" stroke="black" stroke-width="1.75" d="M406.401,-168C429.104,-168 453.555,-168 475.643,-168"/>
|
|
<polygon fill="black" stroke="black" points="406.108,-164.5 396.108,-168 406.108,-171.5 406.108,-164.5"/>
|
|
</g>
|
|
<!-- script -->
|
|
<g id="node5" class="node"><title>script</title>
|
|
<text text-anchor="middle" x="324" y="-126.4" font-family="Times Roman,serif" font-size="14.00"> </text>
|
|
<text text-anchor="middle" x="324" y="-109.4" font-family="Times Roman,serif" font-size="14.00">Pubkey Script</text>
|
|
</g>
|
|
<!-- tx2_redeemScript_hash -->
|
|
<g id="node6" class="node"><title>tx2_redeemScript_hash</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="401,-94 247,-94 247,-58 401,-58 401,-94"/>
|
|
<text text-anchor="middle" x="324" y="-71.9" font-family="Times Roman,serif" font-size="14.00">Redeem Script Hash</text>
|
|
</g>
|
|
<!-- tx1_redeemScript_hash -->
|
|
<g id="node8" class="node"><title>tx1_redeemScript_hash</title>
|
|
<polygon fill="none" stroke="black" stroke-width="1.75" points="171,-94 17,-94 17,-58 171,-58 171,-94"/>
|
|
<text text-anchor="middle" x="94" y="-71.9" font-family="Times Roman,serif" font-size="14.00">Redeem Script Hash</text>
|
|
</g>
|
|
<!-- tx1_redeemScript_hash->tx2_redeemScript_hash -->
|
|
<g id="edge5" class="edge"><title>tx1_redeemScript_hash->tx2_redeemScript_hash</title>
|
|
<path fill="none" stroke="black" stroke-width="1.75" d="M171.547,-76C192.375,-76 215.043,-76 236.376,-76"/>
|
|
<polygon fill="black" stroke="black" points="236.399,-79.5001 246.399,-76 236.399,-72.5001 236.399,-79.5001"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|