pub fn proof_size<E: PairingEngine>(
batch_sizes: &[usize],
varuna_version: VarunaVersion,
hiding: bool,
) -> Result<usize>Expand description
Computes the size in bytes of a Varuna proof as produced by
Proof::serialize_compressed without needing to receive the proof itself.
Arguments:
batch_sizes: the batch sizes of the circuits and instances being proved.varuna_version: the version of Varuna being usedhiding: indicates whether the proof system is run in ZK mode
Returns:
Ok(size)forVarunaVersion::V2, wheresizeis the size of the proof in bytes.ErrforVarunaVersion::V1.