Secure the Poseidon hash function with test vectors #3132
Labels
C-barretenberg
Component: barretenberg cryptography library
crypto
cryptography
T-testing
Type: Testing. More tests need to be added.
PR #3118 implements the Poseidon2 hash function, but currently lacks 3rd party test vectors to cross-reference the correctness of the hash function.
Existing poseidon2 implementations are parametrised by the following parameters:
t
from the paper)I have not been able to find another implementation that uses the same prime field and
t
parameter. Additionally, we need to use test vectors where the round/matrix constants aren't hardcoded magic numbers (i.e. derivation method is documented so we can reproduce).The text was updated successfully, but these errors were encountered: