Skip to content

Commit

Permalink
replace debug! with trace
Browse files Browse the repository at this point in the history
  • Loading branch information
SuccinctPaul committed Nov 8, 2023
1 parent 3c48e4e commit dc519c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions starky/src/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn prove<M: MerkleTree<MTNode = ElementDigest<4>>, T: Transcript>(
prover_addr,
)
.unwrap();
log::trace!("verify the proof...");
log::debug!("generate the proof done");

let result = stark_verify::<M, T>(
&starkproof,
Expand All @@ -113,7 +113,7 @@ fn prove<M: MerkleTree<MTNode = ElementDigest<4>>, T: Transcript>(
.unwrap();

assert!(result);
log::trace!("verify the proof done");
log::debug!("verify the proof done");

let opt = pil2circom::StarkOption {
enable_input: false,
Expand All @@ -122,7 +122,6 @@ fn prove<M: MerkleTree<MTNode = ElementDigest<4>>, T: Transcript>(
agg_stage,
};

log::trace!("generate circom");
let str_ver = pil2circom::pil2circom(
pil,
&setup.const_root,
Expand All @@ -133,7 +132,7 @@ fn prove<M: MerkleTree<MTNode = ElementDigest<4>>, T: Transcript>(
)?;
let mut file = File::create(circom_file)?;
write!(file, "{}", str_ver)?;
log::trace!("generate circom done");
log::debug!("generate circom done");

if !norm_stage {
starkproof.rootC = None;
Expand All @@ -142,6 +141,6 @@ fn prove<M: MerkleTree<MTNode = ElementDigest<4>>, T: Transcript>(
let input = serde_json::to_string(&starkproof)?;
let mut file = File::create(zkin)?;
write!(file, "{}", input)?;
log::trace!("generate zkin done");
log::debug!("generate zkin done");
Ok(())
}

0 comments on commit dc519c3

Please sign in to comment.