@@ -28,7 +28,7 @@ message CompactBlock {
2828 bytes hash = 3 ; // the ID (hash) of this block, same as in block explorers
2929 bytes prevHash = 4 ; // the ID (hash) of this block's predecessor
3030 uint32 time = 5 ; // Unix epoch time when the block was mined
31- bytes header = 6 ; // (hash, prevHash, and time) OR (full header )
31+ bytes header = 6 ; // full header (as returned by the getblock RPC )
3232 repeated CompactTx vtx = 7 ; // zero or more compact transactions from this block
3333 ChainMetadata chainMetadata = 8 ; // information about the state of the chain as of this block
3434}
@@ -41,6 +41,7 @@ message CompactBlock {
4141message CompactTx {
4242 // The index of the transaction within the block.
4343 uint64 index = 1 ;
44+
4445 // The id of the transaction as defined in
4546 // [§ 7.1.1 ‘Transaction Identifiers’](https://zips.z.cash/protocol/protocol.pdf#txnidentifiers)
4647 // This byte array MUST be in protocol order and MUST NOT be reversed
@@ -58,6 +59,7 @@ message CompactTx {
5859 repeated CompactSaplingSpend spends = 4 ;
5960 repeated CompactSaplingOutput outputs = 5 ;
6061 repeated CompactOrchardAction actions = 6 ;
62+
6163 // `CompactTxIn` values corresponding to the `vin` entries of the full transaction.
6264 //
6365 // Note: the single null-outpoint input for coinbase transactions is omitted. Light
@@ -74,6 +76,7 @@ message CompactTxIn {
7476 // byte array must be in protocol order and MUST NOT be reversed or
7577 // hex-encoded.
7678 bytes prevoutTxid = 1 ;
79+
7780 // The index of the output being spent in the `vout` array of the
7881 // transaction referred to by `prevoutTxid`.
7982 uint32 prevoutIndex = 2 ;
@@ -86,6 +89,7 @@ message CompactTxIn {
8689message TxOut {
8790 // The value of the output, in Zatoshis.
8891 uint64 value = 1 ;
92+
8993 // The script pubkey that must be satisfied in order to spend this output.
9094 bytes scriptPubKey = 2 ;
9195}
0 commit comments