Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctian1 committed Apr 16, 2024
1 parent ba9d5a5 commit 288b940
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/src/stark/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,12 @@ impl<SC: StarkGenericConfig, A: MachineAir<Val<SC>>> MachineStark<SC, A> {
if shard_proof.public_values.committed_value_digest != *claimed_digest {

Check failure on line 315 in core/src/stark/machine.rs

View workflow job for this annotation

GitHub Actions / Formatting & Clippy

no field `committed_value_digest` on type `std::vec::Vec<<SC as stark::config::StarkGenericConfig>::Val>`

Check failure on line 315 in core/src/stark/machine.rs

View workflow job for this annotation

GitHub Actions / CI Test Suite

no field `committed_value_digest` on type `Vec<<SC as stark::config::StarkGenericConfig>::Val>`
return Err(ProgramVerificationError::InvalidPublicValuesDigest);
}
// The last shard should be halted.
if i == proof.shard_proofs.len() - 1
&& shard_proof.public_values.last_instr_halt == 0
{
// The last shard should be halted. Halt is signaled with next_pc == 0.
if i == proof.shard_proofs.len() - 1 && shard_proof.public_values.next_pc != 0 {
return Err(ProgramVerificationError::InvalidShardTransition);
}
// All non-last shards should not be halted.
if i != proof.shard_proofs.len() - 1
&& shard_proof.public_values.last_instr_halt != 0
{
if i != proof.shard_proofs.len() - 1 && shard_proof.public_values.next_pc == 0 {
return Err(ProgramVerificationError::InvalidShardTransition);
}
}
Expand Down

0 comments on commit 288b940

Please sign in to comment.