pub fn compute_shielded_verification_fee(
num_actions: usize,
platform_version: &PlatformVersion,
) -> Result<Credits, ProtocolError>Expand description
Computes the compute-only shielded fee (in credits): the ZK-compute portion (Halo 2 proof verification + per-action spend-auth/nullifier processing) that GroveDB metering cannot see.
Unlike compute_minimum_shielded_fee this carries no storage term. It is used by the
transparent Shield, which meters its note/nullifier storage writes via GroveDB and adds only
this compute fee on top (as the event’s additional_fixed_fee_cost), so storage is never
double-counted.
Dispatches on the SAME version key (dpp.methods.compute_minimum_shielded_fee) as
compute_minimum_shielded_fee so the two formulas evolve together across protocol versions.
§Parameters
num_actions— number of Orchard actions in the bundleplatform_version— protocol version (determines the formula version and fee constants)