Solidity implementation of Poseidon hash on Goldilocks field, which is compatible with plonky2.
forge test
Result
Running 1 test for test/Poseidon.t.sol:PoseidonTest
[PASS] testPoseidon() (gas: 3827852)
Test result: ok. 1 passed; 0 failed; finished in 11.89ms
forge build --sizes