How Does Private Computation Affect the Gas Cost of a Smart Contract?
Private computation, especially when using ZKPs, typically increases the gas cost compared to a simple public transaction. The computational work of generating the zero-knowledge proof is significant, and while the on-chain verification is fast, the cost of verifying the proof and storing the state change on the public ledger contributes to a higher overall gas fee for the user.