Răsfoiți Sursa

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

parazyd 4 ani în urmă
părinte
comite
15d2d1a3b8
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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)?;
         proof.verify(&verifying_key, &public_inputs)?;
         println!("Proof verified [{:?}]", now.elapsed());
         println!("Proof verified [{:?}]", now.elapsed());
 
 
+        println!("Proof size [{} kB]", proof.as_ref().len() as f64 / 1024.0);
+
         Ok(())
         Ok(())
     }
     }
 }
 }