Skip to main content

Crate pczt

Crate pczt 

Source
Expand description

The Partially Created Zcash Transaction (PCZT) format.

This format enables splitting up the logical steps of creating a Zcash transaction across distinct entities. The entity roles roughly match those specified in BIP 174: Partially Signed Bitcoin Transaction Format and BIP 370: PSBT Version 2, with additional Zcash-specific roles.

§Feature flags

  • orchard — Enables functionality that requires Orchard protocol types.
  • sapling — Enables functionality that requires Sapling protocol types.
  • transparent — Enables functionality that requires Zcash transparent protocol types.
  • zcp-builder — Enables building a PCZT from the output of zcash_primitives’s Builder::build_for_pczt.

§PCZT roles behind feature flags

These roles require awareness of at least one payment protocol’s types in order to function.

  • io-finalizer — Enables the I/O Finalizer role.
  • prover — Enables the Prover role.
  • signer — Enables the Signer role.
  • spend-finalizer — Enables the Spend Finalizer role.
  • tx-extractor — Enables the Transaction Extractor role.

Modules§

common
The common fields of a PCZT.
orchard
The Orchard fields of a PCZT.
roles
Implementations of the PCZT roles.
sapling
The Sapling fields of a PCZT.
transparent
The transparent fields of a PCZT.

Structs§

Pczt
A partially-created Zcash transaction.

Enums§

ParseError
Errors that can occur while parsing a PCZT.