Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added poseidon2 hash function to barretenberg/crypto #3118

Merged
merged 18 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added cast to fix build error
  • Loading branch information
lucasxia01 committed Nov 7, 2023
commit c7b41572787bf6dfcc8bf922aec26c6e22a6789a
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class alignas(32) uint256_t {
const size_t byte_index = limb_index + (i * 2);
uint8_t nibble_hi = HexCharToInt(static_cast<uint8_t>(input[byte_index]));
uint8_t nibble_lo = HexCharToInt(static_cast<uint8_t>(input[byte_index + 1]));
uint8_t byte = (nibble_hi * 16) + nibble_lo;
uint8_t byte = static_cast<uint8_t>((nibble_hi * 16) + nibble_lo);
limbs[j] <<= 8;
limbs[j] += byte;
}
Expand Down