Removing a variant from the middle shifts indexes just like inserting one
Shipped in block 717,817. Read from the node: specVersion 241, **transaction version 10** — the first bump since 227 — and metadata of 724,818 bytes. A client pinned to 9 stops signing, and that is deliberate.
`pallet-privacy` now verifies for real: it delegates to `pallet-zk-verifier`, which it already required in its `Config` and already used in `shielded_transfer`. `submit_zk_proof` loses its `vk_hash` because **the caller chose it**: you could submit a valid proof for a circuit other than the one you claimed to be proving.
We knew that **inserting** a variant in the middle of an enum renumbers the ones behind it — that was the 237's bug — and we missed the other half: **removing one does the same**. Taking `Privacy::VerifyingKeyRegistered` out of index 4 shifted nine events, from `DataMinimizationRequested` 5→4 to `ShieldedTransferPerformed` 13→12. The bytes do not change, the meaning does, and nothing fails: an indexer reading 5 starts translating it to the wrong name.
Bumping `transaction_version` **does not fix that**: the old client is still accepted. What we learned and wrote down: removing the **last** variant displaces nobody, and removing any other one leaves the gap declared — the variant stays in the enum and nobody emits it. It costs its name in the metadata and saves every published client from reinterpreting everything behind it.