diff --git a/segwit.asciidoc b/segwit.asciidoc index 8156440b..c74d5e69 100644 --- a/segwit.asciidoc +++ b/segwit.asciidoc @@ -90,10 +90,13 @@ Now, let’s look at the corresponding transaction that Bob uses to spend this o .Decoded transaction showing a P2PKH output being spent with a signature ---- [...] -“Vin” : [ -"txid": "0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2", -"vout": 0, - "scriptSig": “”, +"vin": [ + { + "txid": "0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2", + "vout": 0, + "scriptSig": "", + ... + } ] [...] ---- @@ -103,10 +106,13 @@ However, to spend the segregated witness output, the transaction has no signatur .Decoded transaction showing a P2WPKH output being spent with separate witness data ---- [...] -“Vin” : [ -"txid": "0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2", -"vout": 0, - "scriptSig": “”, +"vin": [ + { + "txid": "0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2", + "vout": 0, + "scriptSig": "", + ... + } ] [...] “witness”: “” @@ -139,10 +145,13 @@ The P2SH script above references the hash of a _redeem script_ that defines a 2- .Decoded transaction showing a P2SH output being spent ---- [...] -“Vin” : [ -"txid": "abcdef12345...", -"vout": 0, - "scriptSig": “ <2 PubA PubB PubC PubD PubE 5 CHECKMULTISIG>”, +"vin": [ + { + "txid": "abcdef12345...", + "vout": 0, + "scriptSig": " <2 PubA PubB PubC PubD PubE 5 CHECKMULTISIG>", + ... + } ] ---- @@ -166,10 +175,13 @@ Mohammed's company can spend outputs the Pay-to-Witness-Script-Hash output by pr .Decoded transaction showing a P2WSH output being spent with separate witness data ---- [...] -“Vin” : [ -"txid": "abcdef12345...", -"vout": 0, - "scriptSig": “”, +"vin": [ + { + "txid": "abcdef12345...", + "vout": 0, + "scriptSig": "", + ... + } ] [...] “witness”: “ <2 PubA PubB PubC PubD PubE 5 CHECKMULTISIG>”