Browse Source

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

parazyd 4 years ago
parent
commit
15d2d1a3b8
1 changed files with 2 additions and 0 deletions
  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(())
     }
 }