This commit is contained in:
David Rusu 2024-07-29 14:52:45 +04:00
parent 1d16f40a4c
commit 762fdcc980
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ impl DeathProof {
.unwrap();
println!(
"STARK prover time: {:.2?}, total_cycles: {}",
"STARK 'death-nop' prover time: {:.2?}, total_cycles: {}",
start_t.elapsed(),
prove_info.stats.total_cycles
);

View File

@ -45,7 +45,7 @@ impl ProvedInput {
.unwrap();
println!(
"STARK prover time: {:.2?}, total_cycles: {}",
"STARK 'input' prover time: {:.2?}, total_cycles: {}",
start_t.elapsed(),
prove_info.stats.total_cycles
);

View File

@ -14,7 +14,7 @@ impl PartialTxInput {
fn verify(&self, ptx_root: cl::PtxRoot) -> bool {
let nf = self.input.input.input.nullifier;
self.input.input.input.death_cm == self.death.death_commitment() // ensure the death proof is actually for this input
&& self.input.verify() // ensure the input proof is valie
&& self.input.verify() // ensure the input proof is valid
&& self.death.verify(DeathConstraintPublic { nf, ptx_root }) // verify the death constraint was satisfied
}
}