penumbra-zone / poseidon377

An instantiation of the Poseidon hash for use with decaf377
https://protocol.penumbra.zone/main/crypto/poseidon.html
Other
28 stars 10 forks source link

poseidon2: rounds, internal matrix for small state sizes #51

Closed redshiftzero closed 1 year ago

redshiftzero commented 1 year ago

Closes #45: in this PR we implement the round calculation for Poseidon2, and add a panic to the impacted state sizes of Poseidon1's round calculation in light of the attacks presented in https://eprint.iacr.org/2023/537.

This PR also has the start of the internal matrix calculation for Poseidon2 for #40. The remaining work here is to implement functionality that computes the minimal polynomial of a proposed internal matrix. See comment here for more explanation.