@@ -21,7 +21,7 @@ This document assumes some familiarity with Bitcoin and Elements (UTXOs, [Script
2121| Flags | Yes | 1 byte | ` unsigned char ` | | 1 if the transaction contains a witness, otherwise 0. All other values are invalid. |
2222| Num Inputs | Yes | Varies | ` VarInt ` | | Number of inputs to the transaction. |
2323| Inputs | Yes | Varies | ` Vector<TxIn> ` | | |
24- | Num Inputs | Yes | Varies | ` VarInt ` | | Number of outputs from the transaction. |
24+ | Num Outputs | Yes | Varies | ` VarInt ` | | Number of outputs from the transaction. |
2525| Outputs | Yes | Varies | ` Vector<TxOut> ` | | |
2626| Locktime | Yes | 4 bytes | ` uint32_t ` | Little-endian | See [ BIP 113] ( https://github.com/bitcoin/bips/blob/master/bip-0113.mediawiki ) . |
2727| Witness | Only if flags is 1 | Varies | ` Witness ` | | See [ BIP 141] ( https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki ) . Note that Elements witnesses contain more data than Bitcoin witnesses. This extra data is described further below. |
@@ -203,13 +203,13 @@ Deserialization:
203203| Input #2
204204| 8d83eb1b0826f46d473003d041116927
205205| 470e2ce0f7cc0c634a983d438d770ac8 ... Outpoint TXID: c80a778d433d984a630cccf7e02c0e4727691141d00330476df426081beb838d
206- | 00000000 ........................... Outpoint index
206+ | 00000000 ........................... Outpoint index
207207|
208208| 00 ................................. ScriptSig length
209209| | .................................. ScriptSig (empty)
210210|
211211| ffffffff ........................... Sequence number: UINT32_MAX
212-
212+
21321302 ................................... Num Outputs
214214|
215215| Output #1
@@ -239,7 +239,7 @@ Deserialization:
239239| 03 ................................. Nonce header (0x03 → compressed point)
240240| 72fdd5c6e805a50d73ab15ec41cfaadc
241241| be408ecc7a5867621918f1070f84ec95 ... Nonce x-coordinate (big-endian)
242- |
242+ |
243243| 16 ................................. ScriptPubKey length (0x16 = 22 bytes)
244244| | 001424ae71d4804ca7dd1fa66486a8
245245| | 7af9dff1663c84 ................... ScriptPubKey
@@ -317,18 +317,18 @@ Deserialization:
317317| | .................................. ScriptSig (empty: segwit transaction)
318318|
319319| fdffffff ........................... Sequence number
320- |
320+ |
321321| .................................... Asset issuance
322322| | 000000000000000000000000000000
323323| | 000000000000000000000000000000
324324| | 0000 ............................. Asset blinding nonce (0 for new asset issuance)
325- | |
325+ | |
326326| | 000000000000000000000000000000
327327| | 000000000000000000000000000000
328328| | 0000 ............................. Asset entropy
329329| |
330330| | 01 ............................... Amount header (0x01 → explicit, unblinded value)
331- | | 00000000c4b20100 ................. Amount: 0xc4b20100 = 3,300,000,000 → 33 units (each divisible by 100,000,000)
331+ | | 00000000c4b20100 ................. Amount: 0xc4b20100 = 3,300,000,000 → 33 units (each divisible by 100,000,000)
332332| |
333333| | 01 ............................... Num inflation keys header (0x01 → explicit, unblinded value)
334334| | 0000000029b92700 ................. Value. 0x29b92700 = 700,000,000 inflation keys
@@ -343,7 +343,7 @@ Deserialization:
343343| 08 ................................. Amount header (0x08 → blinded value)
344344| 66abe471dfadfb650825abe6f757860b
345345| 6760d30ff62bc7c9ebd438608f45368b ... Amount x-coordinate (big-endian)
346- |
346+ |
347347| 02 ................................. Nonce header (0x02 → blinded value)
348348| 115750003261bc64bb73d83401a91279
349349| 6d0c0fb9d54c72751a7ca7a5149a9bdf ... Nonce x-coordinate (big-endian)
@@ -518,7 +518,7 @@ Deserialization:
518518| 6d521c38ec1ea15734ae22b7c4606441
519519| 2829c0d0579f0a713d1c04ede979026f ... Asset ID: 6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d
520520|
521- | 01 ................................. Amount header (0x01 → explicit, unblinded value)
521+ | 01 ................................. Amount header (0x01 → explicit, unblinded value)
522522| 00000000002b09c1 ................... Amount: 0.02820545 L-BTC
523523|
524524| 00 ................................. Nonce header (0x00 → null)
@@ -532,7 +532,7 @@ Deserialization:
532532| 6d521c38ec1ea15734ae22b7c4606441
533533| 2829c0d0579f0a713d1c04ede979026f ... Asset ID: 6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d
534534|
535- | 01 ................................. Amount header (0x01 → explicit, unblinded value)
535+ | 01 ................................. Amount header (0x01 → explicit, unblinded value)
536536| 0000000000000027 ................... Amount: 0.00000039 L-BTC
537537|
538538| 00 ................................. Nonce header (0x00 → null)
@@ -560,10 +560,10 @@ Deserialization:
560560| | | f34227cbba1cf25eb0778aa45f8b
561561| | | 7cb3495046 ..................... Stack item #2
562562| 06 ................................. Peg-in witness stack length
563- | | 08 ............................... Stack item #1 length
563+ | | 08 ............................... Stack item #1 length
564564| | | e8092b0000000000 ............... Peg-in value (little-endian): 0x2b09e8 = 0.02820545 BTC)
565565| | 20 ............................... Stack item #2 length (0x20 = 32)
566- | | | 6d521c38ec1ea15734ae22b7c46064
566+ | | | 6d521c38ec1ea15734ae22b7c46064
567567| | | 412829c0d0579f0a713d1c04ede979
568568| | | 026f ........................... Asset ID: 6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d
569569| | 20 ............................... Stack item #3 length (0x20 = 32)
@@ -592,4 +592,4 @@ Deserialization:
592592| Output #2 witness
593593| 00 ................................. Surjection proof length
594594| 00 ................................. Range proof length
595- ```
595+ ```
0 commit comments