Skip to content

Add configurable hash tree target support#327

Closed
mpernambuco wants to merge 1 commit intomainfrom
configure-hash-algo
Closed

Add configurable hash tree target support#327
mpernambuco wants to merge 1 commit intomainfrom
configure-hash-algo

Conversation

@mpernambuco
Copy link
Collaborator

@mpernambuco mpernambuco commented May 26, 2025

This PR introduces a new machine configuration setting - hash_tree_target.
It determines if the hash tree will be used by the uarch or RISC Zero environments.
The hashing algorithm changes depending on the hash_tree_target; uarch uses Keccak, RISC Zero uses SHA-256.
The scoped/templated hash_types have been replaced by machine_hash; always 32 bytes long.
i_hasher is no longer a CRTP interface. It is now a class that can do either Keccak or SHA-256. The name is still i_hash to make it easier to do rename and merge with the upcoming hash tree simplification/optimization.

@mpernambuco mpernambuco force-pushed the configure-hash-algo branch from 7f5a4a8 to 0aa319c Compare May 26, 2025 21:16
@edubart edubart added the enhancement New feature or request label May 29, 2025
@edubart edubart moved this from Todo to In Progress in Machine Unit May 29, 2025
@edubart edubart added this to the v0.20.0 milestone May 29, 2025
@edubart edubart moved this from In Progress to On Hold in Machine Unit Oct 22, 2025
@edubart
Copy link
Collaborator

edubart commented Nov 6, 2025

I am closing this because this some portions of it was adopted and adjusted to support vectorized SHA-256 hashing in #335

@edubart edubart closed this Nov 6, 2025
@github-project-automation github-project-automation bot moved this from On Hold to Done in Machine Unit Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants