Skip to content

Refector: Add feed-forward step to CompressPoseidon2 function#721

Merged
ThomasPiellard merged 1 commit intomasterfrom
refactor/compress-poseidon2
Aug 22, 2025
Merged

Refector: Add feed-forward step to CompressPoseidon2 function#721
ThomasPiellard merged 1 commit intomasterfrom
refactor/compress-poseidon2

Conversation

@YaoJGalteland
Copy link
Copy Markdown
Contributor

Description

This PR adds a feed-forward step in the CompressPoseidon2 function to enhance collision resistance. The previous implementation of the compression function relied solely on the Poseidon2 permutation.

A new test is introduced to ensure that the CompressPoseidon2 function is correctly implemented and produces the same output as the poseidon2.NewMerkleDamgardHasher(), which uses Write and Sum methods to get the final hash output.

@ThomasPiellard ThomasPiellard merged commit 3b45450 into master Aug 22, 2025
7 checks passed
@ThomasPiellard ThomasPiellard deleted the refactor/compress-poseidon2 branch August 22, 2025 13:45
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