Skip to main content

deserialize_orchard_shielded_data

Function deserialize_orchard_shielded_data 

Source
pub(crate) fn deserialize_orchard_shielded_data<R, F>(
    reader: R,
) -> Result<Option<ShieldedData>, SerializationError>
where R: Read, F: ZcashDeserialize + Into<Flags>,
Expand description

Deserializes an Option<orchard::ShieldedData>, parsing the flags byte via the flag type F.

v5 Orchard bundles pass F = orchard::Flags (pre-NU6.3 format); v6 Orchard and Ironwood bundles pass F = orchard::FlagsV6 (the NU6.3 format, which permits the enableCrossAddress flag).