ZIP 248
Extensible Transaction Format
- Draft
- The field
anchorSaplingis present if and only if . A Sapling bundle with outputs but no spends references no anchor. - The values of
nSpendsSaplingandnOutputsSaplingare not re-encoded in the authorizing data; they are taken from the corresponding effecting data. - The field
bindingSigSaplingis present if and only if .
Sapling Signature (SaplingSignature)
| Bytes | Name | Data Type | Description |
|---|---|---|---|
| varies | sizeSighashInfo |
compactSize |
The size in bytes of sighashInfo. |
sizeSighashInfo |
sighashInfo |
byte[sizeSighashInfo] |
The sighash variant and associated information, as defined in Sighash Variants. |
| 64 | signature |
byte[64] |
An encoding of a RedJubjub signature, which may be either a spendAuthSig or bindingSig depending on context. |
The 1:1 correspondences between Sapling authorizing-data elements and the elements of the corresponding effecting data are required by the parsing rules in Parsing Rules.
Sapling Sighash Algorithms
For the Sapling bundle at bundleVariant = 0, sighash variant 0 is the only variant defined, and its associatedData is the empty byte string. A Sapling spendAuthSig or bindingSig made with it commits to the digest defined in Variant 0 Signature Digest, with bundleType = 2 and bundleVariant = 0.
For vSpendAuthSigsSapling[i], signature_context is the two-byte unsigned little-endian encoding of , the zero-based position of the corresponding spend in vSpendsSapling, where . For bindingSigSapling, signature_context is the empty byte string.
Sapling Digests
T.3.2: sapling_effects_digest
In the case that Sapling spends or outputs are present, the Sapling effects digest is a BLAKE2b-256 hash of the following values:
T.3.2a: sapling_spends_digest (32-byte hash)
T.3.2b: sapling_outputs_digest (32-byte hash)
The personalization field of this hash is set to:
"ZTxIdSaplingH_v7"
If there are no Sapling spends or outputs, there is no Sapling effecting bundle and no entry for it in effects_bundles_digest.
T.3.2a: sapling_spends_digest
In the case that Sapling spends are present, this digest is a BLAKE2b-256 hash of the following values:
T.3.2a.i: sapling_spends_compact_digest (32-byte hash)
T.3.2a.ii: sapling_spends_noncompact_digest (32-byte hash)
The personalization field of this hash is set to:
"ZTxIdSSpendsHash"
In the case that the transaction has Sapling outputs but no Sapling spends, sapling_spends_digest is:
BLAKE2b-256("ZTxIdSSpendsHash", [])
T.3.2a.i: sapling_spends_compact_digest
A BLAKE2b-256 hash of the field encoding of all nullifier field values of Sapling spends belonging to the transaction.
The personalization field of this hash is set to:
"ZTxIdSSpendCHash"
T.3.2a.ii: sapling_spends_noncompact_digest
A BLAKE2b-256 hash of the non-nullifier information for all Sapling spends belonging to the transaction. For each spend, the following elements are included in the hash:
T.3.2a.ii.1: cv (32 bytes)
T.3.2a.ii.2: rk (32 bytes)
The personalization field of this hash is set to:
"ZTxIdSSpendNH_v6"
T.3.2b: sapling_outputs_digest
In the case that Sapling outputs are present, this digest is a BLAKE2b-256 hash of the following values:
T.3.2b.i: sapling_outputs_compact_digest (32-byte hash)
T.3.2b.ii: sapling_outputs_memos_digest (32-byte hash)
T.3.2b.iii: sapling_outputs_noncompact_digest (32-byte hash)
The personalization field of this hash is set to:
"ZTxIdSOutputHash"
In the case that the transaction has Sapling spends but no Sapling outputs, sapling_outputs_digest is:
BLAKE2b-256("ZTxIdSOutputHash", [])
T.3.2b.i: sapling_outputs_compact_digest
A BLAKE2b-256 hash of the subset of Sapling output information included in the ZIP 30724 CompactBlock format for all Sapling outputs belonging to the transaction. For each output, the following elements are included:
T.3.2b.i.1: cmu (32 bytes)
T.3.2b.i.2: ephemeralKey (32 bytes)
T.3.2b.i.3: encCiphertext[..52] (first 52 bytes)
The personalization field of this hash is set to:
"ZTxIdSOutC__Hash" (2 underscore characters)
T.3.2b.ii: sapling_outputs_memos_digest
A BLAKE2b-256 hash of the memo field data for all Sapling outputs belonging to the transaction. For each output:
T.3.2b.ii.1: encCiphertext[52..564] (512 bytes, encrypted memo)
The personalization field of this hash is set to:
"ZTxIdSOutM__Hash" (2 underscore characters)
T.3.2b.iii: sapling_outputs_noncompact_digest
A BLAKE2b-256 hash of the remaining Sapling output information not included in the CompactBlock format. For each output:
T.3.2b.iii.1: cv (32 bytes)
T.3.2b.iii.2: encCiphertext[564..] (post-memo AEAD tag, 16 bytes)
T.3.2b.iii.3: outCiphertext (80 bytes)
The personalization field of this hash is set to:
"ZTxIdSOutN__Hash" (2 underscore characters)
A.1.2: sapling_auth_digest
In the case that Sapling spends or outputs are present, this is a BLAKE2b-256 hash of the following concatenated values:
A.1.2a: anchorSapling (32 bytes, present iff nSpendsSapling > 0)
A.1.2b: vSpendProofsSapling (192 bytes per spend)
A.1.2c: vSpendAuthSigsSapling (SaplingSignature field encoding per spend)
A.1.2d: vOutputProofsSapling (192 bytes per output)
A.1.2e: bindingSigSapling (SaplingSignature field encoding)
The SaplingSignature field encoding is defined in Sapling Signature (SaplingSignature) and includes sighashInfo.
The personalization field of this hash is set to:
"ZTxAuthSapliH_v7"
If there are no Sapling spends or outputs, there is no Sapling authorizing bundle and no entry for it in auth_bundles_digest.
Orchard Protocol Bundles
The Orchard protocol supports two value pools, each with its own note commitment tree, nullifier set, and chain value pool balance. Each is acted upon by its own bundle type: the Orchard bundle, bundleType = 3, acts on the Orchard pool, and the Ironwood bundle, bundleType = 4, acts on the Ironwood pool.
An entry for either bundle type in mEffectBundles MUST contain at least one Action description (nActionsOrchard > 0 or nActionsIronwood > 0). If there would be no Actions for that bundle type, the bundle MUST be omitted instead.
Both bundle types use the encoding defined in this section. Where a field is described below as belonging to the bundle's pool, that pool is the Orchard pool for an Orchard bundle and the Ironwood pool for an Ironwood bundle.
The bits of flagsOrchard have the same meaning for both pools, and so are named without the Orchard suffix they carried in the v5 transaction format, following ZIP 22919. Their values are constrained per pool by the Bundle-local rules.
Orchard Protocol Effecting Data
The effecting data for an Orchard protocol bundle describes the Orchard actions. Unlike the v5 transaction format defined in ZIP 22518, the value balance is not included here; it appears in mValuePoolDeltas instead.
| Bytes | Name | Data Type | Description |
|---|---|---|---|
varies |
nActionsOrchard |
compactSize |
The number of Orchard Action descriptions. |
820 * nActionsOrchard |
vActionsOrchard |
OrchardActionEffecting[nActionsOrchard] |
Effecting data for each Orchard Action. |
1 |
flagsOrchard |
byte |
An 8-bit value representing a set of flags. Ordered from LSB to MSB:
|
- The field
flagsOrchardis present if and only if .
The anchor is not part of the effecting data; it appears in Orchard Protocol Authorizing Data.
OrchardActionEffecting
| Bytes | Name | Data Type | Description |
|---|---|---|---|
32 |
cv |
byte[32] |
A value commitment to the net value of the input note minus the output note. |
32 |
nullifier |
byte[32] |
The nullifier of the input note. |
32 |
rk |
byte[32] |
The randomized validating key for this Action. |
32 |
cmx |
byte[32] |
The -coordinate of the note commitment for the output note. |
32 |
ephemeralKey |
byte[32] |
An encoding of an ephemeral Pallas public key. |
580 |
encCiphertext |
byte[580] |
The encrypted contents of the note plaintext. |
80 |
outCiphertext |
byte[80] |
The encrypted contents of the byte string created by concatenation of the transmission key with the ephemeral secret key. |
Orchard Protocol Authorizing Data
The authorizing data for an Orchard protocol bundle contains the proofs and signatures that authorize the actions.
| Bytes | Name | Data Type | Description |
|---|---|---|---|
32 |
anchorOrchard |
byte[32] |
A root of the note commitment tree of the bundle's pool, at some block height in the past. |
varies |
sizeProofsOrchard |
compactSize |
Length in bytes of proofsOrchard. Value is . |
sizeProofsOrchard |
proofsOrchard |
byte[sizeProofsOrchard] |
Encoding of aggregated zk-SNARK proofs for Orchard Actions. |
varies |
vSpendAuthSigsOrchard |
OrchardSignature[nActionsOrchard] |
Authorizing signatures for each Orchard Action. |
varies |
bindingSigOrchard |
OrchardSignature |
An Orchard binding signature on the SIGHASH transaction hash. |
- The value of
nActionsOrchardis not re-encoded in the authorizing data; it is taken from the corresponding effecting data. - The fields
anchorOrchard,sizeProofsOrchard,proofsOrchard, andbindingSigOrchardare present if and only if .
Orchard Signature (OrchardSignature)
| Bytes | Name | Data Type | Description |
|---|---|---|---|
| varies | sizeSighashInfo |
compactSize |
The size in bytes of sighashInfo. |
sizeSighashInfo |
sighashInfo |
byte[sizeSighashInfo] |
The sighash variant and associated information, as defined in Sighash Variants. |
| 64 | signature |
byte[64] |
An encoding of a RedPallas signature, which may be either a spendAuthSig or bindingSig depending on context. |
The 1:1 correspondences between the authorizing-data elements of an Orchard protocol bundle and the elements of the corresponding effecting data are required by the parsing rules in Parsing Rules.
Orchard Protocol Sighash Algorithms
For the Orchard and Ironwood bundles at bundleVariant = 0, sighash variant 0 is the only variant defined, and its associatedData is the empty byte string. An Orchard protocol spendAuthSig or bindingSig made with it commits to the digest defined in Variant 0 Signature Digest, with bundleType = 3 for Orchard or bundleType = 4 for Ironwood, and bundleVariant = 0.
In either an Orchard or an Ironwood bundle, the signature_context for vSpendAuthSigsOrchard[i] is the two-byte unsigned little-endian encoding of , the zero-based position of the corresponding action in that bundle's vActionsOrchard, where . These field names refer to the shared encoding used by both bundle types. The index is local to the bundle containing the signature; it does not count actions in other bundles. For the bindingSigOrchard of either bundle type, signature_context is the empty byte string.
Orchard Protocol Digests
T.3.3: orchard_effects_digest
The digest defined here and in its child sections is the Orchard bundle's instance of a digest shape shared with the Ironwood bundle; T.3.4 gives the Ironwood instance.
In the case that Orchard actions are present, the Orchard effects digest is a BLAKE2b-256 hash of the following values:
T.3.3a: orchard_actions_compact_digest (32-byte hash)
T.3.3b: orchard_actions_memos_digest (32-byte hash)
T.3.3c: orchard_actions_noncompact_digest (32-byte hash)
T.3.3d: flagsOrchard (1 byte)
The personalization field of this hash is set to:
"ZTxIdOrchardH_v7"
If there are no Orchard actions, there is no Orchard effecting bundle and no entry for it in effects_bundles_digest.
T.3.3a: orchard_actions_compact_digest
A BLAKE2b-256 hash of the subset of Orchard action information intended for inclusion in the CompactBlock format. For each action:
T.3.3a.i: nullifier (32 bytes)
T.3.3a.ii: cmx (32 bytes)
T.3.3a.iii: ephemeralKey (32 bytes)
T.3.3a.iv: encCiphertext[..52] (first 52 bytes)
The personalization field of this hash is set to:
"ZTxIdOrcActCHash"
T.3.3b: orchard_actions_memos_digest
A BLAKE2b-256 hash of the memo field data for all Orchard actions. For each action:
T.3.3b.i: encCiphertext[52..564] (512 bytes, encrypted memo)
The personalization field of this hash is set to:
"ZTxIdOrcActMHash"
T.3.3c: orchard_actions_noncompact_digest
A BLAKE2b-256 hash of the remaining Orchard action information not intended for inclusion in the CompactBlock format. For each action:
T.3.3c.i: cv (32 bytes)
T.3.3c.ii: rk (32 bytes)
T.3.3c.iii: encCiphertext[564..] (post-memo AEAD tag, 16 bytes)
T.3.3c.iv: outCiphertext (80 bytes)
The personalization field of this hash is set to:
"ZTxIdOrcActNHash"
T.3.4: ironwood_effects_digest
The Ironwood bundle uses the same effecting data encoding as the Orchard bundle, and ironwood_effects_digest is computed over that data exactly as orchard_effects_digest and its children are computed (T.3.3), except that each personalization string is replaced as follows:
| Digest | Orchard bundle | Ironwood bundle |
|---|---|---|
| effects digest | ZTxIdOrchardH_v7 |
ZTxIdIronwd_Hash |
| actions compact digest | ZTxIdOrcActCHash |
ZTxIdIrnActCH_v6 |
| actions memos digest | ZTxIdOrcActMHash |
ZTxIdIrnActMH_v6 |
| actions noncompact digest | ZTxIdOrcActNHash |
ZTxIdIrnActNH_v6 |
If there are no Ironwood actions, there is no Ironwood effecting bundle and no entry for it in effects_bundles_digest.
A.1.3: orchard_auth_digest
In the case that Orchard actions are present, this is a BLAKE2b-256 hash of the following concatenated values:
A.1.3a: anchorOrchard (32 bytes)
A.1.3b: proofsOrchard (aggregated proofs)
A.1.3c: vSpendAuthSigsOrchard (OrchardSignature field encoding per action)
A.1.3d: bindingSigOrchard (OrchardSignature field encoding)
The OrchardSignature field encoding is defined in Orchard Signature (OrchardSignature) and includes sighashInfo.
The personalization field of this hash is set to:
"ZTxAuthOrchaH_v7"
If there are no Orchard actions, there is no Orchard authorizing bundle and no entry for it in auth_bundles_digest.
A.1.4: ironwood_auth_digest
The Ironwood bundle uses the same authorizing data encoding as the Orchard bundle, and ironwood_auth_digest is computed over that data exactly as orchard_auth_digest (A.1.3), including its commitment to the anchor, except that the personalization field of the hash is set to:
"ZTxAuthIrnwdHash"
If there are no Ironwood actions, there is no Ironwood authorizing bundle and no entry for it in auth_bundles_digest.
Rationale
Effecting data bundles and authorizing data bundles are stored separately in the transaction format so that the authorizing data may be pruned by straightforward truncation of the encoded representation of the transaction.
Representing the coinbase as a bundle makes the value pool delta balance rule universal. Previously the coinbase transaction was the sole exception: its deltas summed to the negation of the block subsidy rather than to zero, because the subsidy entered the transparent transaction value pool implicitly. With the subsidy carried in the coinbase bundle's value pool delta, every transaction balances to zero, and a wallet can enumerate the value flows of a coinbase transaction using the same rule it applies to any other transaction.
The input and output requirements prevent trivial transactions (with no inputs or outputs). They allow fee-free transfers within a single shielded pool: such a transaction can satisfy both requirements through its spends and outputs even when it has no value pool delta entries. A zero net delta does not imply that no value moves within a pool.
Carrying blockSubsidy and lockboxValue in the effecting data states both components of the issuance in the bundle they belong to, and commits them to the transaction identifier along with the rest of that data. The value pool delta combines their difference with the fee contribution removed from circulation under ZIP 235. Without the explicit fields, a client could see the net delta but not how much was issued or how much went to the lockbox. Deriving them instead is not open to every client: the subsidy is not a function of the block height alone once issuance depends on accumulated chain state, so evaluating the issuance schedule would require a client to track that state. The NSM fee contribution is derivable from the gross fee bundle value already present in the coinbase transaction, so it needs neither an additional coinbase effecting field nor a ZIP 233 entry. ZIP 233 separately provides an explicit bundle for voluntary removal from circulation.20
The Orchard and Ironwood bundles share one encoding because the Orchard pool and the Ironwood pool are two pools of the same shielded protocol. The action encoding, proving system, authorization, and note encryption are common to both; the pools differ in their note commitment trees, nullifier sets, and chain value pool balances.
Each pool gets its own bundle type rather than a variant of a single type because a variant is required to affect the same value pool(s) as the type it varies, so that a client encountering an unrecognized variant still knows which pools the bundle touches. Two pools therefore cannot share a bundle type, and separate types also keep the two value pool deltas separable, which a client needs in order to report the two chain value pool balances independently.
The Sapling and Orchard protocol anchors are authorizing data rather than effecting data. An anchor selects the note commitment tree state that the bundle's proofs are verified against, which is a property of how the spends are authorized rather than of what the transaction does. Placing it there lets a bundle be re-anchored to a more recent root without changing the transaction identifier, while the proofs still bind to the anchor actually used.
Bundle digests retain the input formats and personalizations of ZIP 229 19 wherever the committed data is unchanged. Effects roots have different personalizations because value balances are committed separately in the value pool delta map. Authorizing digests have different personalizations because signatures include sighashInfo and anchors precede the proofs and signatures. Orchard and Ironwood use distinct personalizations to separate commitments for their respective pools.
The coinbase bundle also gives the coinbase metadata a place of its own. In previous transaction versions that metadata was encoded as the scriptSig of a single transparent input whose previous output reference pointed at nothing, so a coinbase transaction had to be recognized by that unspendable reference, and the block height had to be encoded as a script push. The coinbase bundle encodes the height directly, and its presence identifies the transaction. The coinbaseData limit of 94 bytes holds the encoded size of that field to what the previous encoding spent on the same content. A coinbase scriptSig was limited to 100 bytes, of which the leading push of the block height took 5; of the 95 bytes that remained, the compactSize length prefix of coinbaseData now takes one.
Neither the previous output reference nor the sequence number of the input being replaced is carried over. Both were artifacts of encoding the coinbase metadata as a transparent input: the reference identified no output, and the sequence number had no effect on the validity of a transaction that spends nothing.
Deployment
Reference implementation
References
Information on BCP 14 — "RFC 2119: Key words for use in RFCs to Indicate Requirement Levels" and "RFC 8174: Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1] or later ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 3.3: The Block Chain ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Block Header Encoding and Consensus ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 3.4: Transactions and Treestates ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 3.11: Coinbase Transactions ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 3.12: Mainnet and Testnet ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.13: Balance and Binding Signature (Sapling) ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.14: Balance and Binding Signature (Orchard) ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.17: Chain Value Pool Balances ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 7.1.2: Transaction Consensus Rules ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.10: SIGHASH Transaction Hashing ↩︎
Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.15: Spend Authorization Signature (Sapling and Orchard) ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 7.8: Block Subsidy and Founders' Reward ↩︎
Zcash Protocol Specification, Version 2025.6.3 [NU6.1]. Section 7.10: Payment of Funding Streams, Deferred Lockbox, and Lockbox Disbursement ↩︎
ZIP 212: Allow Recipient to Derive Ephemeral Secret from Note Plaintext
ZIP 233: Network Sustainability Mechanism: Removing Funds From Circulation ↩︎
Citation graph
Cites
- 203 — Transaction Expiry
- 209 — Prohibit Out-of-Range Chain Value Pool Balances
- 212 — Allow Recipient to Derive Ephemeral Secret from Note Plaintext
- 225 — Version 5 Transaction Format
- 226 — Transfer and Burn of Zcash Shielded Assets
- 227 — Issuance of Zcash Shielded Assets
- 229 — Version 6 Transaction Format
- 231 — Memo Bundles
- 233 — Network Sustainability Mechanism: Removing Funds From Circulation
- 235 — Remove 60% of Transaction Fees From Circulation
- 239 — Relay of Version 5 Transactions
- 243 — Transaction Signature Validation for Sapling
- 244 — Transaction Identifier Non-Malleability
- 270 — Key Rotation for Tracked Signing Keys
- 307 — Light Client Protocol for Payment Detection
- 2001 — Lockbox Funding Streams
- 2002 — Explicit Fees
- 2006 — Restricting Transfers into the Orchard Pool