Search

A technology, a device or an article

What the txid of a Zcash v5 transaction identifies

Zcash v5 separates the txid commitment to transaction effects from the digest of authorizing data. ZIP 244 explains what a stable identifier can establish and what still needs verification.

Two translucent sheets with a geometric knot in front and colored seals and threads behind
ITNWS AI-generated conceptual illustration. A paper metaphor for the separate identity of effects and authorizing content; not a real transaction format.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Can two different byte sequences have the same txid without breaking the hash function? For a Zcash v5 transaction, this is a meaningful question. Its identifier is not simply a hash of the entire network serialization. Part of the data certifying authorization and validity of the operation is included in a separate commitment. Therefore, the same name for effects does not mean the same evidence of their admissibility. The protocol makes this distinction deliberately. Software that stores or verifies transactions must preserve it even when an interface offers only one convenient “hash” field.

ZIP 244: Transaction Identifier Non-Malleability has a status of Final and a creation date of January 6, 2021. Document verified November 3, 2026. Our analysis is limited to the v5 format described here and does not declare each subsequent version of the transaction to be identical to it. In particular, a live repository cannot be read as a message about today’s activation of a future network update. To understand the already established division, it is enough to carefully read which fields are included in txid, which are included in auth digest, and how both types of commitments are involved in block verification.

In the old familiar picture, the transaction name was obtained by hashing its serialized content. Then changing the signature could change the name, although the essential intentions of the operation remained the same. ZIP 244 separates data that defines effects from authorizing data—evidence that authorizes those effects. A stable name is useful where other operations refer to an output before it is mined. It is important to the protocol that a valid change to the authorization representation does not cause any such reference to point to a different name. This is a property of the commitment organization, not a promise that any bytes changed will remain valid.

The meaning of “identical” needs care. This does not claim that the attacker found a BLAKE2b collision. If a component is not included in the calculated txid at all, changing it is not required to change that txid by design. The cryptographic strength of the hash remains another issue. A similar distinction exists for any record identifier that deliberately does not include all fields. The convenience of the name is determined by the chosen scope of the commitment, and the completeness of the verification must be ensured for the remaining mandatory data in an independent way.

The name is assembled from certain parts

In v5, txid is built by a tree of personalized BLAKE2b-256 hashes. At the top level there is a digest of the header, transparent part, Sapling and Orchard. The header part includes version, version group, consensus branch, lock time and expiry height. The transparent part takes into account, in particular, references to spent outputs, sequence and created outputs. This is not a hash of the text a wallet happens to display. This is a rules-defined composition of field encodings. A different byte order or a different string concatenation does not create a compatible implementation just because the same hash function is used.

ZIP 225 on Transaction Format v5, created on February 28, 2021 and marked Final, describes the serialization of the relevant fields. It is useful to read it next to ZIP 244: the transmission format and the commitment algorithm are related, but not identical. Code that takes the entire resulting buffer and applies the old naming rule to it could end up with a convincing string of the correct length and still name the wrong object with it. Matching the result size does not prove compliance with the protocol definition.

Personalization separates hash purposes. Even for an empty branch, a specific personalized hash of the empty sequence is used rather than random zeros in place of the missing content. This allows the distinction of contexts to be preserved within the cryptographic design itself. The top commitment also takes into account the consensus branch ID. Therefore, the name must be calculated in the required protocol context, rather than transferring the result between branches based on the external similarity of the transaction. The presence of familiar transparent addresses does not negate the remaining fields involved in its identity.

In shielded components, the word effects does not mean only visible amounts and addresses. The txid includes stipulated commitments, nullifiers, encrypted data, and other fields of the relevant branches. In particular, an encrypted memo does not become freely changeable just because a person cannot see its plaintext in a block explorer. For v5, certain anchors are also included in the txid tree. You cannot transfer the distribution of fields from another version of the format here. The technical name of the data category does not replace the specific list of components in the specification.

It is useful to imagine a transparent output A that is referenced by a subsequent transaction B via a txid and index pair. If A’s authorizing representation allows modification while maintaining effects and validity, the stable txid retains B’s reference to the same output. This explains the motivation without inventing an actual ZEC transfer. In this case, B must still satisfy its own conditions and the state of the chain. A stable link eliminates a specific reason for a name change; it does not promise that the spend will be accepted or included, or that it will face no competing operations.

You cannot extend the conclusion to an arbitrary replacement of the payment purpose. Changing the transparent output value or scriptPubKey enters the effecting data and changes the corresponding commitment under normal cryptographic assumptions. The same boundary applies to the remaining fields of the tree according to their definitions. The immutability of txid when authorizing data changes does not provide the right to change effects without a new name. For engineering reasoning, it is important to preserve both directions: what is deliberately excluded and what is precisely fixed. Otherwise, the explanation of a persistent identifier itself turns into a false promise of arbitrary transaction mutability.

A linocut of two separately rooted trees with interlaced canopies beneath one arch
ITNWS AI-generated conceptual illustration. An image of distinct commitments needed together. The trees do not reproduce a Merkle structure or network topology. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Authorization still has to be checked

A separate auth_digest is assembled from the authorization parts of transparent inputs, Sapling and Orchard. For Sapling, this includes required evidence and signatures; Orchard has its own specific group of proofs and signatures. This commitment describes specific authorizing content, rather than automatically certifying its correctness. The hash of an incorrect signature can also be calculated. To obtain a valid transaction, you need to check the signature itself, the proof and other rules. The digest binds the verification to the data, but does not perform the cryptographic proof for the validator.

This leads to an important example for the software cache. Let’s say the system once checked some serialization and remembered the positive result only by txid. Later, it was presented with the same effecting set with modified authorization content. If the new buffer automatically receives the old positive result for a single key, the system may have missed exactly the check that the change requires. The reverse error is also possible: a negative result for a corrupted authorizing variant does not prove that any variant with the same effects name is invalid. The key must match the statement that is being cached.

This discussion is not a report of a vulnerability of a specific installed node. It shows the requirement for the scope of identity of the data being checked. In the librustzcash implementation of txid, read on preparation day, the individual tree components and their contexts are presented explicitly. A live code branch serves as an example of implementation rather than a promise of the behavior of every old build. To check a specific program, you would need its version, data path and actual conditions for using the cache. Such an audit and network experiment were not carried out here.

There is also a signature digest; this third concept must not be treated as another name for the auth digest. Signature digest specifies a message that is signed to confirm effects under certain rules. Auth digest, on the other hand, commits to already submitted authorization data, including signatures in the relevant branches. If you mix these directions, you get a circular formulation, as if the signature should sign its own finished value. ZIP 244 separates the concerns and allows common parts of the hash to be reused where their definitions overlap, maintaining a separate meaning for each result.

For transactions without transparent inputs, the provided signature digest and txid algorithms give the same result, as explicitly explained in ZIP 244. However, the universal identity of all three hashes cannot be deduced from this particular match. Transparent inputs follow their own sighash rules and use additional signing data. The name of a field in an RPC or library must be accompanied by an understanding of which function produced it. A cryptographic result with the correct length and familiar hexadecimal appearance does not by itself convey the purpose, context, and verified statement.

The block must also record authorizing data. ZIP 244 commits to the transaction ID tree through hashMerkleRoot and separately introduces a commitment to the authorization data tree. Its description reimagines the former hashLightClientRoot field as hashBlockCommitments, which combines the corresponding commitments. ZIP 221, created on March 30, 2019 and marked Final, explains the historical role of the chain-history commitment that this extension relies on. This separation makes it possible to maintain stable transaction names and at the same time not leave the actually included authorization bytes outside the block commitment.

It’s easy to say too much here: the evidence in the txid tree alone is not enough to verify any content with that name. The statement “this name is included in this block” is narrower than the statement “this authorization data is included and correct.” The second requires additional commitments and checks. However, a correct auth digest does not replace inclusion proofs and does not select the current chain. Each piece of evidence has its own subject. It is useful for the program to keep these items separate before showing the person the single word “verified.”

A separate area is the display in the interface. The txid string may have a specific byte order, while the internal library works with its own representation. Comparisons of text strings, digest bytes, and serialized fields must follow implementation conventions. Manually rearranging familiar hex pairs without defining the format can create an imaginary discrepancy between the wallet and the node. But correcting the display does not change the considered difference in the areas of commitment. First, it is established which object is being compared, then how exactly it is encoded for the observer.

The stable identifier is also not an additional hiding mechanism. Excluding some data from txid does not mean that it is not available to participants who receive the full transaction or that it may be left unverified. The privacy of protected components relies on the intended cryptography and disclosure model, rather than on the absence of a signature in a single hash tree. Conversely, the presence of encrypted content in a commitment does not make it open. Committing to data and uncovering its human meaning are different actions, even when both are discussed under the same word “sees.”

All examples here are logical, real transactions were not created and no ZEC was transferred. The v5 scope is deliberate: changes to the composition of fields in other formats require separate reading of the corresponding rules. But already for v5 the conclusion is practical. Zcash gives effects a persistent name and separately associates authorization content with block validation. If a program wants to remember what exactly it has already checked, its memory key must name this data with the required completeness. A convenient effect name alone is not enough for every assertion about a complete transaction.

Sources & documentation

  1. ZIP 244: Transaction Identifier Non-Malleability, Final ↗
  2. ZIP 221: FlyClient consensus-layer changes ↗
  3. Zcash transaction identifier implementation ↗
  4. ZIP 225: Version 5 Transaction Format ↗