Add flagsOrchard field

This commit is contained in:
Kris Nuttycombe 2021-03-01 16:14:04 -07:00
parent 96b8fd1e35
commit ed25876e21
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,12 @@ Transaction Format
|``884 * nActionsOrchard`` |``vActionsOrchard`` |``OrchardAction[nActionsOrchard]`` |A sequence of Orchard Action descriptions, encoded per |
| | | |§ 7.5 Action Description Encoding and Consensus |
+-----------------------------+--------------------------+----------------------------------------+------------------------------------------------------------+
|``1`` |``flagsOrchard`` |``byte`` |An 8-bit value representing a set of flags. Ordered from LSB|
| | | |to MSB:: |
| | | | * ``spendsEnabled`` |
| | | | * ``outputsEnabled`` |
| | | | * The remaining bits are set to ``0`` |
+-----------------------------+--------------------------+----------------------------------------+------------------------------------------------------------+
|``8`` |``valueBalanceOrchard`` |``int64`` |The net value of Orchard spends minus outputs |
+-----------------------------+--------------------------+----------------------------------------+------------------------------------------------------------+
|``32`` |``anchorOrchard`` |``byte[32]`` |A root of the Orchard note commitment tree at some block |
@ -183,6 +189,8 @@ Transaction Format
``vActionsOrchard`` and must be ordered such that the proof or signature at a given
index corresponds to the ``OrchardAction`` at the same index.
* For coinbase transactions, the ``spendsEnabled`` bit must be set to ``0``.
The encodings of ``tx_in``, ``tx_out``, and ``JSDescriptionGroth16``, are as in NU4
[#protocol_nu4]_. The encodings of ``SpendDescriptionV5``, ``OutputDescriptionV5`` and
``OrchardAction`` are described below. The encoding of Sapling spends and outputs has