mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +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.
47 lines
1,005 B
Text
47 lines
1,005 B
Text
digraph blockchain {
|
|
|
|
size="6.25";
|
|
|
|
//splines = "false";
|
|
rankdir=LR;
|
|
//ranksep=0.1;
|
|
//splines=ortho;
|
|
overlap = false;
|
|
nodesep = 0.1;
|
|
|
|
node [ shape = box, penwidth = 1.75 ];
|
|
edge [ penwidth = 1.75, minlen = 2 ];
|
|
penwidth = 1.75;
|
|
|
|
subgraph cluster_tx2 {
|
|
scriptSig [ label = "Signature Script", shape = "none" ];
|
|
tx2_signature [ label = "Signature" ];
|
|
tx2_redeemScript [ label = "Full Redeem Script" ];
|
|
script [ label = " \nPubkey Script", shape = "none" ];
|
|
tx2_redeemScript_hash [ label = "Redeem Script Hash" ];
|
|
|
|
}
|
|
|
|
subgraph cluster_tx1 {
|
|
tx1_redeemScript_hash [ label = "Redeem Script Hash" ];
|
|
|
|
label = "TX 1 Output"
|
|
}
|
|
|
|
subgraph cluster_bob {
|
|
private_key [ label = "Private Key" ];
|
|
redeemScript [ label = "Full Redeem Script" ];
|
|
|
|
label = "Bob's Computer"
|
|
}
|
|
|
|
tx1_redeemScript_hash -> tx2_redeemScript_hash;
|
|
|
|
{
|
|
edge [ dir=back ]
|
|
tx2_redeemScript -> redeemScript;
|
|
tx2_signature -> private_key [ style = "dashed" ];
|
|
}
|
|
|
|
label = " \nSpending A P2SH Output"
|
|
}
|