Skip to content

Conversation

@chetanyb
Copy link
Contributor

@chetanyb chetanyb commented Jan 9, 2026

Description:

  • Breaking: removes build‑time hasher selection and the global Hasher constant; callers must pass a hasher type explicitly.
  • Updates hashTreeRoot, merkleize, mixInLength*, and utils to accept Hasher: type.
  • Fixes zero‑hash generation to be hasher‑specific via buildZeroHashes.
  • Updates internal tests and examples to use explicit SHA256.

NOTE: version bump post‑merge

@chetanyb chetanyb requested a review from g11tech January 9, 2026 10:49
@chetanyb chetanyb requested a review from gballet as a code owner January 9, 2026 10:49
Copy link
Member

@g11tech g11tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link
Collaborator

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, left some comments but you should look into using digest_length for better forward-compatibility.

@gballet gballet merged commit 0ce92a8 into blockblaz:master Jan 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants