Skip to content

Commit

Permalink
change mix_nonce to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
weikengchen committed Aug 15, 2024
1 parent a2a0175 commit 70aa6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/prover/src/core/channel/sha256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Channel for Sha256Channel {
let mut hash = [0u8; 32];
hash[..8].copy_from_slice(&nonce.to_le_bytes());

self.digest = Sha256Hasher::concat_and_hash(&self.digest, &Sha256Hash(hash));
self.digest = Sha256Hasher::concat_and_hash(&Sha256Hash(hash), &self.digest);
}

fn draw_felt(&mut self) -> SecureField {
Expand Down

0 comments on commit 70aa6ba

Please sign in to comment.