Skip to main content

deserialize_v5_sapling_shielded_data

Function deserialize_v5_sapling_shielded_data 

Source
fn deserialize_v5_sapling_shielded_data<R: Read>(
    reader: R,
    is_coinbase: bool,
) -> Result<Option<ShieldedData<SharedAnchor>>, SerializationError>
Expand description

Deserialize V5/V6 Sapling shielded data with an optional early coinbase rejection.

When is_coinbase is true, a non-zero nSpendsSapling count is rejected before allocating the spend vector, closing the late-validation gap described in GHSA-rgwx-8r98-p34c.