ZIP: Unassigned
Title: Sighash Variant for Deferred Broadcast
Owners: Kris Nuttycombe <[email protected]>
Status: Draft
Category: Consensus / Wallet
Created: 2026-11-19
License: MIT

Terminology

The key words “MUST”, “MUST NOT”, “SHOULD”, and “MAY” in this document are to be interpreted as described in BCP 14 1 when, and only when, they appear in all capitals.

The character § is used when referring to sections of the Zcash Protocol Specification. 2

The terms “Mainnet” and “Testnet” are to be interpreted as described in § 3.12 ‘Mainnet and Testnet’. 3

The term “full validator” in this document is to be interpreted as defined in § 3.3 ‘The Block Chain’. 4

The terms “consensus branch”, “consensus branch ID”, “epoch”, and “network upgrade” are to be interpreted as described in ZIP 200. 5

The terms “v7 transaction”, “effecting data”, “authorizing data”, “sighash variant”, and “transaction identifier” are to be interpreted as described in ZIP 248. 6

The term “binding signing key”, written \(\mathsf{bsk}\kern-0.05em\textsf{,}\) is to be interpreted as defined in § 4.13 ‘Balance and Binding Signature (Sapling)’ for a Sapling bundle 7 and in § 4.14 ‘Balance and Binding Signature (Orchard)’ for an Orchard or Ironwood bundle. 8

The terms below are to be interpreted as follows:

Shielded bundle
A Sapling, Orchard, or Ironwood bundle of a v7 transaction, as defined in ZIP 248. 6
Signer
A party that makes a spend authorization signature or a transparent input signature for a transaction. Each participant in a threshold signing session is a signer.
Signing time
The time at which a signer makes its signature for a transaction.
Target height
The height of the next block after the chain tip, as seen by a wallet at a given time.
Completing a transaction
Carrying out the steps that make a signed v7 transaction ready to broadcast. The steps are: setting the nConsensusBranchId and nExpiryHeight fields; selecting the anchor of each shielded bundle and creating its proofs, if they do not already exist; and making the binding signature of each shielded bundle.
Deferred broadcast
Completing and broadcasting a transaction at a time later than its signing time. The device or party that does so might not hold any spending key.

Abstract

ZIP 248 6 lets each signature in a v7 transaction select a signature hash (“sighash”) variant. Its only variant, variant 0, commits to all of the effecting data of the transaction, including the consensus branch ID and the expiry height.

This ZIP defines sighash variant 1, which commits to the same data except those two fields. Variant 1 is available for spend authorization signatures and transparent input signatures. Binding signatures continue to use variant 0.

The holder of a spending key can then authorize a transaction at one time, and a device without that key can complete and broadcast it later, even after a network upgrade. That device sets the consensus branch ID, the expiry height, and the anchors as it would for a transaction signed at that moment, so these fields do not reveal how long ago the transaction was signed. The use of variant 1 is itself visible in the transaction.

A variant 1 signature does not expire, and it is valid on every consensus branch that accepts the transaction. In a transaction with a shielded bundle, making use of this requires the binding signing key of the bundle. The party that constructed the bundle knows that key, and so does any party to which it disclosed the value commitment randomness. This ZIP specifies the wallet behaviour that these properties require.

Motivation

Every signature in a version 5 or version 6 transaction commits to the nConsensusBranchId and nExpiryHeight fields. 9 10 So does every variant 0 signature in a v7 transaction. 6 A signer must therefore know, at signing time, the consensus branch in which the transaction will be mined and the last height at which it can be mined.

A signer knows both when it broadcasts immediately. It does not when signing and broadcast are separated, for example:

Signers that defer broadcast today work around each commitment at a cost:

Anchors used to pose the same problem. The version 6 transaction format made them authorizing data, so that proofs can be created after signing against an anchor chosen at that time 10, and the v7 format keeps this property. 6 The consensus branch ID and the expiry height are the remaining fields that a signer must predict. The sighash variants of ZIP 248 allow a signature to omit them without another change to the transaction format.

Privacy Implications

The sighash variant of each signature is encoded in the authorizing data, so an observer of the block chain can see which transactions contain variant 1 signatures. If only transactions with deferred broadcast used variant 1, its presence would reveal the deferral. This ZIP therefore recommends that a wallet that supports deferred broadcast use variant 1 for every v7 transaction that contains a shielded bundle.

Among transactions that use variant 1, this ZIP aims to hide how long before broadcast a transaction was signed. The consensus branch ID, the expiry height, and the anchors are chosen at completion by the rules for a transaction signed at that time, so they carry no information about the signing time. The workarounds described in Motivation do not achieve this.

Some signed data can still reveal information about the signing time:

An observer of unmined transactions can also learn that a transaction was completed twice. Two completions of one signed transaction have the same effecting data apart from the two fields. A wallet that signs again produces different effecting data.

A wallet that delegates completion to another party reveals to that party whatever it provides. A binding signing key reveals nothing about notes or addresses. The private inputs of the proofs reveal the values and addresses of the notes concerned.

This ZIP does not affect the timing of broadcasts or other information visible at the network layer.

Requirements

Non-requirements

Specification

Sighash variant 1

This ZIP defines sighash variant 1 for v7 transactions. 6 A signature that uses variant 1 has sighashVariant = 0x01. The associatedData of variant 1 is the empty byte string. The sighashInfo of such a signature is therefore the single byte 0x01, encoded with sizeSighashInfo = 1.

Variant 1 is defined for bundle variant 0 of the transparent, Sapling, Orchard, and Ironwood bundle types. The following table lists the signatures of those bundles and the sighash variants that are defined for each of them.

Bundle bundleType Signature Variant 0 Variant 1
Transparent 0 Signatures checked by the scripts of one input ✅ ✅
Sapling 2 vSpendAuthSigsSapling[i] ✅ ✅
Sapling 2 bindingSigSapling ✅ ❌
Orchard 3 vSpendAuthSigsOrchard[i] ✅ ✅
Orchard 3 bindingSigOrchard ✅ ❌
Ironwood 4 vSpendAuthSigsOrchard[i] ✅ ✅
Ironwood 4 bindingSigOrchard ✅ ❌

The sighash variant of a transparent input is given by the sighashInfo field of its TransparentInputAuth. It applies to every signature that is checked when the scripts of that input are evaluated.

Each signature selects its sighash variant independently of the other signatures in the transaction. A transaction MAY contain both variant 0 signatures and variant 1 signatures.

This ZIP does not define variant 1 for any other bundle type or bundle variant. A ZIP that registers another bundle type or bundle variant specifies whether variant 1 is defined for its signatures.

Variant 1 signature digest

A signature that uses variant 1 commits to the digest defined in this section. The digest has the structure of the variant 0 signature digest of ZIP 248 6, with txid_digest replaced by effects_sig_digest:

signature_digest
├── sighashVariant
├── effects_sig_digest
│   ├── header_sig_digest
│   ├── value_pool_deltas_digest
│   └── effects_bundles_digest
├── amounts_sig_digest
├── scriptpubkeys_sig_digest
├── bundleType
├── bundleVariant
└── signature_context

All digests are personalized BLAKE2b-256 hashes. All personalization strings are 16 bytes long.

The nConsensusBranchId and nExpiryHeight fields of the transaction are not inputs to any part of this digest. The consensus branch ID is also not part of any personalization string used in this digest.

V1: signature_digest

A BLAKE2b-256 hash of the following values:

V1.1: sighashVariant            (1 byte, 0x01)
V1.2: effects_sig_digest        (32-byte hash output)
V1.3: amounts_sig_digest        (32-byte hash output)
V1.4: scriptpubkeys_sig_digest  (32-byte hash output)
V1.5: bundleType                (compactSize encoding)
V1.6: bundleVariant             (compactSize encoding)
V1.7: signature_context         (bundle-defined byte string)

The personalization field of this hash is set to:

"ZcashSigHash_v7_" (2 underscore characters)

This is the personalization of the variant 0 signature digest. The value of sighashVariant separates the two digests.

amounts_sig_digest and scriptpubkeys_sig_digest are the digests of those names defined in ZIP 248. 6 They commit to the values and to the script public keys of the coins spent by all transparent inputs of the transaction.

bundleType and bundleVariant identify the bundle that contains the signature.

signature_context is the byte string that ZIP 248 defines for a variant 0 signature in the same position. It is the final field, with no length prefix.

V1.2: effects_sig_digest

A BLAKE2b-256 hash of the following values:

V1.2a: header_sig_digest         (32-byte hash output)
V1.2b: value_pool_deltas_digest  (32-byte hash output)
V1.2c: effects_bundles_digest    (32-byte hash output)

The personalization field of this hash is set to:

"ZTxSigEffectHash"

value_pool_deltas_digest and effects_bundles_digest are the values T.2 and T.3 of the transaction identifier digest defined in ZIP 248. 6 They commit to the complete value pool delta map and to the effecting data of every bundle in the transaction.

V1.2a: header_sig_digest

A BLAKE2b-256 hash of the following values:

V1.2a.i:   version          (4-byte little-endian version identifier including overwintered flag)
V1.2a.ii:  nVersionGroupId  (4-byte little-endian version group identifier)
V1.2a.iii: lock_time        (4-byte little-endian nLockTime value)

The personalization field of this hash is set to:

"ZTxSigHeaderHash"

Consensus rules

The following rules apply to v7 transactions from the activation of this ZIP. Full validators MUST enforce them.

The consensus rules for nExpiryHeight in § 7.1.2 ‘Transaction Consensus Rules’ 14 are unchanged. The transaction identifier and the authorizing data commitment are computed as specified in ZIP 248 6, so the transaction identifier still commits to both fields.

Requirements for signing

A variant 1 signature does not limit the consensus branch or the heights at which a transaction can be mined. In a transaction that contains a shielded bundle, the binding signatures commit to nConsensusBranchId and nExpiryHeight, so only a party that knows every binding signing key can choose them. In a transaction with no shielded bundle whose transparent inputs all use variant 1, no signature commits to these fields. Any party can change them, and with them the transaction identifier.

In a threshold signing session, the requirements below apply to each participant.

Requirements for completing a transaction

A wallet that completes a v7 transaction containing a variant 1 signature:

A wallet SHOULD complete a transaction only when it is about to broadcast it.

A completed transaction becomes invalid if it expires, or if a network upgrade activates, before it is mined. A wallet MAY then complete it again. Each completion has a different transaction identifier. All completions spend the same inputs, so at most one can be mined, and nodes handle them as they handle any transactions that spend the same input.

Requirements for wallets that hold variant 1 signatures

A variant 1 signature stays valid until the transaction can no longer be mined. That happens when one of its inputs is spent, or when consensus stops accepting its transaction version or one of its bundle variants. The passing of an expiry height and the activation of a network upgrade do not end it.

The following requirements apply to a wallet that has made, or that stores, variant 1 signatures for a transaction. In them, the wallet decides that a transaction has been mined by its usual confirmation policy.

Changes to ZIP 248

In the changes below, “ZIP TBD” stands for the number that the ZIP Editors assign to this ZIP, and [#zip-tbd]_ stands for a reference to it.

In ‘Sighash Variants’, after:

Variant 0 is the "commit to all effecting data" sighash algorithm.

add:

Variant 1 commits to all effecting data except the consensus branch ID and
the expiry height. It is defined in ZIP TBD. [#zip-tbd]_

In ‘Variant 0 Signature Digest’, replace:

For sighash variant 0 (the only variant
currently defined for v7 transactions), the digest algorithm is as specified
below.

with:

For sighash variant 0, the digest algorithm is as specified below. The digest
algorithm for sighash variant 1 is specified in ZIP TBD. [#zip-tbd]_

In ‘Bundle-local rules’, replace:

* For each ``TransparentInputAuth`` whose ``sighashInfo`` specifies sighash
variant 0, the ``hash_type`` byte of every nonempty signature supplied to

with:

* For each ``TransparentInputAuth`` whose ``sighashInfo`` specifies sighash
variant 0 or sighash variant 1, the ``hash_type`` byte of every nonempty
signature supplied to

and add the rule:

* The ``sighashInfo`` of ``bindingSigSapling``, and of ``bindingSigOrchard``
in an Orchard or Ironwood bundle, MUST specify sighash variant 0.
[#zip-tbd]_

In ‘Transparent Sighash Algorithms’, replace the whole paragraph with:

For the transparent bundle at ``bundleVariant = 0``, sighash variants 0 and 1
are defined. The ``associatedData`` of each is the empty byte string. A
signature made with variant 0 commits to the digest defined in `Variant 0
Signature Digest`_. A signature made with variant 1 commits to the variant 1
signature digest defined in ZIP TBD. [#zip-tbd]_ In both cases
``bundleType = 0``, ``bundleVariant = 0``, and ``signature_context`` is as
defined in `S.7: Transparent Signature Context`_.

In ‘Sapling Sighash Algorithms’, replace the first paragraph with:

For the Sapling bundle at ``bundleVariant = 0``, sighash variants 0 and 1 are
defined for a ``spendAuthSig``, and only sighash variant 0 is defined for a
``bindingSig``. The ``associatedData`` of each variant is the empty byte
string. A signature made with variant 0 commits to the digest defined in
`Variant 0 Signature Digest`_. A ``spendAuthSig`` made with variant 1 commits
to the variant 1 signature digest defined in ZIP TBD. [#zip-tbd]_ In both
cases ``bundleType = 2`` and ``bundleVariant = 0``.

In ‘Orchard Protocol Sighash Algorithms’, replace the first paragraph with:

For the Orchard and Ironwood bundles at ``bundleVariant = 0``, sighash
variants 0 and 1 are defined for a ``spendAuthSig``, and only sighash variant
0 is defined for a ``bindingSig``. The ``associatedData`` of each variant is
the empty byte string. A signature made with variant 0 commits to the digest
defined in `Variant 0 Signature Digest`_. A ``spendAuthSig`` made with
variant 1 commits to the variant 1 signature digest defined in ZIP TBD.
[#zip-tbd]_ In both cases ``bundleType = 3`` for Orchard or
``bundleType = 4`` for Ironwood, and ``bundleVariant = 0``.

In ‘References’, add:

.. [#zip-tbd] `ZIP TBD: Sighash Variant for Deferred Broadcast <draft-nuttycom-deferred-broadcast-sighash.md>`_

Changes to the Protocol Specification

These changes are written relative to the protocol specification as modified by ZIP 248. 6 Each change applies from the activation of this ZIP.

§ 4.10 ‘SIGHASH Transaction Hashing’

ZIP 248 adds the following sentence to this section. 15

The SIGHASH algorithms used for v7 transactions are defined in ZIP 248.

After it, add:

A signature in a v7 transaction that uses sighash variant 1, as defined in ZIP TBD, does not commit to a consensus branch ID or to the nExpiryHeight field. The consensus branch ID of such a transaction is constrained by the rule on its nConsensusBranchId field in § 7.1.2 ‘Transaction Consensus Rules’.

§ 7.1.2 ‘Transaction Consensus Rules’

This section contains the following rule. 14

[NU5 onward] If \(\mathsf{effectiveVersion} \geq 5\kern-0.05em\textsf{,}\) the nConsensusBranchId field MUST match the consensus branch ID used for SIGHASH transaction hashes, as specified in [ZIP-244].

After it, add:

If \(\mathsf{effectiveVersion} \geq 7\kern-0.05em\textsf{,}\) the nConsensusBranchId field MUST equal the consensus branch ID of the epoch of the block that contains the transaction, whichever sighash variants the signatures of the transaction use.

Applicability

All of these changes apply identically to Mainnet and Testnet.

Security Considerations

Cross-chain replay

A replay applies the effects of a signed transaction on a second block chain, without a new signature from the signer. This section considers a second chain that shares history with the first and has a different consensus branch ID, such as the other side of a chain split at a network upgrade.

Variant 0 prevents such a replay, because every signature commits to the consensus branch ID. 5 Variant 1 removes that protection from the signatures that use it. Two other cases are the same for both variants. Chains with the same consensus branch ID have no replay protection. Chains that share no history, such as Mainnet and Testnet, have no inputs in common.

A replay cannot change the effects of a transaction. It spends the same inputs and creates the same outputs, with the same values and recipients. A transaction can be replayed on the second chain only if all of the following hold:

  1. The second chain accepts the transaction version, the bundle types and variants, and sighash variant 1, and the transaction meets the other consensus rules of that chain.
  2. Every input exists and is unspent on the second chain. For a transparent input, the output that it refers to exists there with the same transaction identifier and index. For a shielded spend, the note commitment is in the note commitment tree there, and the nullifier in the transaction has not been revealed there.
  3. Every variant 0 signature in the transaction is made again. The transaction identifier differs on the second chain, so no variant 0 signature remains valid.
  4. The proofs of each shielded bundle are valid for an anchor of the second chain.

An input created before the chains diverged satisfies condition 2 until it is spent on the second chain. Inputs created later are restricted:

Conditions 3 and 4 determine which parties can replay a transaction:

No party can replay a transaction that has a variant 0 spend authorization signature or transparent input signature without the key that made that signature.

The constructor of a shielded bundle chooses its value commitment randomness and the spend authorization randomizer \(\alpha\) of each spend. The spend authorization signatures commit to the value commitments and to rk, so these choices are fixed once the transaction is signed. They cannot be recovered from the transaction or from a full viewing key. The second and third parties above are therefore the constructor, and any party to which it disclosed these values:

An observer of the block chain cannot replay a transaction that contains a shielded bundle. Neither can the recipient of one of its outputs, or a holder of the full viewing key that does not know these values.

A signer prevents the replay of a signed transaction on a chain by spending one of its inputs on that chain in another transaction.

Rationale

Omitting the consensus branch ID

Variant 0 commits to the consensus branch ID to provide two-way replay protection: a signature made for one consensus branch is invalid on every other. 5 That protection is what prevents deferred broadcast across a network upgrade.

A variant 1 signature still commits to the transaction version, the version group ID, and the type and variant of every bundle. ZIP 248 fixes the semantics of each bundle type and variant for the lifetime of a transaction version. 6 A network upgrade therefore cannot change the meaning of the data that the signer authorized. It can stop accepting a transaction version or a bundle variant, in which case the transaction can no longer be mined and the signer loses nothing.

A signer accepts two risks by using variant 1:

Omitting the expiry height

Variant 0 commits to the expiry height so that the signer limits the time during which the transaction can be mined. 13 A signer that defers broadcast cannot know the target height at broadcast. If the expiry height stays under the signature, the signer must disable expiry or sign a distant expiry height, with the costs described in Motivation.

A variant whose associatedData carried an upper bound on the expiry height was considered. It would let the signer keep a limit on the validity of its signature. It was rejected because the bound would be visible in the transaction and would reveal the signing time, as a distant expiry height does.

The cost of omitting the expiry height is that a signature stays valid until an input of the transaction is spent. Without the requirements in Requirements for wallets that hold variant 1 signatures, a wallet could regard an expired payment as cancelled, make the payment again from different notes, and then see both payments mined.

Fields that variant 1 still commits to

Structure of the variant 1 digest

The variant 1 digest replaces one 32-byte input of the variant 0 digest with another, so the preimage of signature_digest keeps its layout and length. With one-byte encodings of the bundle type and variant, the fields before signature_context occupy 99 bytes. The digest for a shielded spend authorization signature therefore needs one BLAKE2b compression, as it does for variant 0.

effects_sig_digest is computed once per transaction, from the value pool delta digest and the effects bundles digest that the transaction identifier also uses. header_sig_digest has a 12-byte input and effects_sig_digest has a 96-byte input, so each needs one compression. Both have their own personalization strings because they hash different data from the corresponding digests of the transaction identifier.

A signer that makes only variant 1 signatures does not need the transaction identifier, so it can sign before the consensus branch ID and the expiry height are known.

effects_sig_digest has the same value for every completion of a signed transaction. A wallet can use it to recognize a mined transaction as a completion of a transaction that it signed.

Rationale for binding signatures using variant 0

A party without key material can change a field of a transaction exactly when no signature in the transaction commits to that field. If every signature used variant 1, any party could change the consensus branch ID and the expiry height:

One variant 0 signature is enough to prevent both. The binding signature is the natural choice:

The restriction is a consensus rule and not a recommendation, so that every transaction that uses variant 1 with a shielded bundle has the same form. With a recommendation, two forms would appear on the block chain, and the form would reveal something about the wallet that produced the transaction.

Threshold signing with FROST

This section describes ZIP 312 11 as revised by two open proposals. 20 21

Variant 1 needs no change to the signing protocol. The randomizer is derived from the signing commitments and not from the message. The variant 1 digest commits to every randomized validating key, as the variant 0 digest does, so the Coordinator still completes the first round of every session before it derives a randomizer.

Variant 1 removes one cause of failed sessions. With variant 0, a session that does not finish before the expiry height, or before a network upgrade activates, starts again with new nonces. New signing commitments give a new randomizer and a new randomized validating key, so the transaction and its proofs are built again. With variant 1, a session can finish at any time.

Variant 1 also changes what an approval by a threshold of participants means:

A threshold of participants is therefore still required to authorize the effects of a transaction. It is not required to choose when, or on which consensus branch, an authorized transaction is mined. Open issues lists the changes that ZIP 312 needs.

Rationale for permitting transparent-only transactions

A transaction with no shielded bundle has no binding signature. If all of its transparent inputs use variant 1, any party can change its consensus branch ID and expiry height. This draft permits such transactions because offline signing is common for transparent funds. Open issues lists stronger alternatives.

A signer that holds the key for one transparent input at the time of completion can avoid this property: it signs that input with variant 0 at that time.

Rationale for the completion requirements

The requirements in Requirements for completing a transaction give a completed transaction the consensus branch ID, expiry height, and anchors of a transaction that is signed at the same moment. An observer cannot distinguish the two by those fields.

The recommendation to use variant 1 for every transaction that contains a shielded bundle puts transactions that are signed and broadcast immediately into the same set. For those transactions the cost is small, because the binding signatures still commit to both fields. The recommendation excludes transactions with no shielded bundle, where no signature would commit to them.

Deployment

This ZIP has not been scheduled for deployment. It depends on the v7 transaction format 6 and can activate in the network upgrade that activates that format, or in a later one. Before this ZIP activates, variant 1 is not a defined sighash variant, and a transaction that uses it is invalid.

Reference implementation

None yet.

Open issues

References


  1. 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”  ↩︎

  2. Zcash Protocol Specification, Version 2026.9.1 [NU7] or later  ↩︎

  3. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 3.12: Mainnet and Testnet  ↩︎

  4. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 3.3: The Block Chain  ↩︎

  5. ZIP 200: Network Upgrade Mechanism  ↩︎

  6. ZIP 248: Extensible Transaction Format  ↩︎

  7. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 4.13: Balance and Binding Signature (Sapling)  ↩︎

  8. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 4.14: Balance and Binding Signature (Orchard)  ↩︎

  9. ZIP 244: Transaction Identifier Non-Malleability  ↩︎

  10. ZIP 229: Version 6 Transaction Format  ↩︎

  11. ZIP 312: FROST for Spend Authorization Multisignatures  ↩︎

  12. ZIP 318: Orchard to Ironwood Migration  ↩︎

  13. ZIP 203: Transaction Expiry  ↩︎

  14. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 7.1.2: Transaction Consensus Rules  ↩︎

  15. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 4.10: SIGHASH Transaction Hashing  ↩︎

  16. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 3.4: Transactions and Treestates  ↩︎

  17. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 4.18.2: Spend Statement (Sapling)  ↩︎

  18. Zcash Protocol Specification, Version 2026.9.1 [NU7]. Section 4.18.4: Action Statement (Orchard)  ↩︎

  19. ZIP 374: Partially Created Zcash Transaction Format  ↩︎

  20. ZIP 312: Specify key generation, change randomizer handling (zcash/zips pull request 895)  ↩︎

  21. ZIP 312: Key generation: DKG base point, recovery data, several spends, clarifications (zcash/zips pull request 1459)  ↩︎