Expand description
Contains impls of ZcashSerialize, ZcashDeserialize for all of the
transaction types, so that all of the serialization logic is in one place.
Structsยง
- Serialized
Transaction - A serialized transaction.
Constantsยง
- MIN_
TRANSPARENT_ ๐INPUT_ SIZE - A Tx Input must have an Outpoint (32 byte hash + 4 byte index), a 4 byte sequence number, and a signature script, which always takes a min of 1 byte (for a length 0 script).
- MIN_
TRANSPARENT_ ๐OUTPUT_ SIZE - A Transparent output has an 8 byte value and script which takes a min of 1 byte.
- MIN_
TRANSPARENT_ TX_ SIZE - All txs must have at least one input, a 4 byte locktime, and at least one output.
- MIN_
TRANSPARENT_ TX_ V4_ SIZE - The minimum transaction size for v4 transactions.
- MIN_
TRANSPARENT_ TX_ V5_ SIZE - The minimum transaction size for v5 transactions.
Traitsยง
- V6Flag
Codec ๐ - The
flagsOrchardcodec a v6 Orchard-protocol bundle newtype uses on deserialization.
Functionsยง
- deserialize_
orchard_ ๐shielded_ data - Deserializes an
Option<orchard::ShieldedData>, parsing the flags byte via the flag typeF. - deserialize_
v5_ ๐sapling_ shielded_ data - Deserialize V5/V6 Sapling shielded data with an optional early coinbase rejection.
- deserialize_
v6_ ๐orchard_ shielded_ data - Deserializes the shared Orchard-protocol bundle body of a v6 bundle newtype
T, using the flag codec implied byTrather than one named at the call site. - zcash_
serialize_ ๐optional_ orchard_ bundle - Serializes an optional Orchard-protocol bundle (v5 Orchard, v6 Orchard, or Ironwood).