Skip to content

Add Blake hasher compatible with the Cairo implementation#71

Merged
beeinger merged 1 commit intoHerodotusDev:developfrom
m-kus:feat/blake-hasher
Aug 6, 2025
Merged

Add Blake hasher compatible with the Cairo implementation#71
beeinger merged 1 commit intoHerodotusDev:developfrom
m-kus:feat/blake-hasher

Conversation

@m-kus
Copy link
Copy Markdown
Contributor

@m-kus m-kus commented Aug 5, 2025

This PR adds new hasher type: blake
It is compatible with the blake libfunc provided by Cairo corelib.
It also introduces an optional "truncated" mode when first 4 bits are zeroed to fit into a felt252.

We use MMR in Raito backend to generate inclusion proofs for Bitcoin blocks.

@beeinger beeinger merged commit e15b767 into HerodotusDev:develop Aug 6, 2025
1 check 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.

2 participants