Skip to content

Make SSZ hashing hasher‑agnostic (BREAKING)#57

Merged
gballet merged 16 commits intoblockblaz:masterfrom
chetanyb:breaking/ssz-hasher-agnostic
Jan 15, 2026
Merged

Make SSZ hashing hasher‑agnostic (BREAKING)#57
gballet merged 16 commits intoblockblaz:masterfrom
chetanyb:breaking/ssz-hasher-agnostic

Conversation

@chetanyb
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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