From ed25876e21d36eadce2db25b9f189d759efed709 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Mon, 1 Mar 2021 16:14:04 -0700 Subject: [PATCH] Add flagsOrchard field --- zip-0225.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zip-0225.rst b/zip-0225.rst index 75781ff6..9e49213b 100644 --- a/zip-0225.rst +++ b/zip-0225.rst @@ -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