Explorar el Código

zk/mint: Print proof size in circuit test unit.

parazyd hace 4 años
padre
commit
15d2d1a3b8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/zk/circuit/mint_contract.rs

+ 2 - 0
src/zk/circuit/mint_contract.rs

@@ -394,6 +394,8 @@ mod tests {
         proof.verify(&verifying_key, &public_inputs)?;
         println!("Proof verified [{:?}]", now.elapsed());
 
+        println!("Proof size [{} kB]", proof.as_ref().len() as f64 / 1024.0);
+
         Ok(())
     }
 }