Skip to main content

fake_v6_orchard_shielded_data

Function fake_v6_orchard_shielded_data 

Source
pub fn fake_v6_orchard_shielded_data(
    flags: Flags,
    value_balance: Amount<NegativeAllowed>,
    action_count: usize,
) -> ShieldedData
Expand description

Builds a cryptographically-INVALID v6 Orchard-protocol orchard::ShieldedData for structural NU6.3 consensus-rule tests.

The bundle has the given flags and value_balance, and action_count copies of a single dummy action — so all actions share one nullifier, which is convenient for duplicate-nullifier tests. The proof is empty (not canonically sized) and the signatures are not valid, so this MUST NOT be used where proof verification or a canonical proof size is required.