Skip to content

Commit

Permalink
store the digest
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue committed Dec 6, 2023
1 parent bb4cee3 commit b366a24
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions curta/src/machine/hash/blake/blake2b/air.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,19 @@ where
Some("h".to_string()),
Some(MemorySliceIndex::IndexElement(h_idx)),
);

// If this is the digest row, then also store the calculated digest.
// Only need to do so for the first 4 entries of h.
if i < 4 {
builder.store(
&state_ptr.get(i),
h_value,
&Time::from_element(data.trace.compress_id),
Some(data.trace.is_digest_row.as_element()),
None,
None,
);
}
}

hash_state_public
Expand Down

0 comments on commit b366a24

Please sign in to comment.