fn queue_orchard_bundle(
select_verifier: impl FnOnce() -> &'static Cached<VerifierService>,
bundle: Option<Bundle<Authorized, ZatBalance>>,
sighash: &SigHash,
wtx_id: Option<WtxId>,
) -> AsyncChecksExpand description
Queues an Orchard-shaped bundle’s single aggregated Halo2 proof against a verifier.
§Consensus
The proof 𝜋 MUST be valid given a primary input (cv, rt^{Orchard}, nf, rk, cm_x, enableSpends, enableOutputs)
https://zips.z.cash/protocol/protocol.pdf#actiondesc
Unlike Sapling, Orchard shielded transactions have a single aggregated Halo2 proof per
transaction, even with multiple Actions, so it is queued for verification only once instead
of once per Action description. The choice of verifying key is the caller’s; see
verify_orchard_bundle and verify_orchard_v6_bundle.
select_verifier is only invoked when a bundle is present, so a bundle-less transaction
never forces the (lazily initialized) verifier services.
wtx_id must identify the transaction containing bundle; the verifier’s cache keys on it,
together with the sighash and the bundle’s value pool, so that a bundle verified from the
mempool is not verified again in the block that mines it. Without one the item is verified
every time.