iden3 / go-iden3-crypto

Go implementation of some cryptographic primitives (that fit inside the SNARK field) and compatible with circomlib
Apache License 2.0
117 stars 38 forks source link

Is it safe to use 7 for S-box exponent in golden poseidon? #50

Open themighty1 opened 2 years ago

themighty1 commented 2 years ago

Hi, the Poseidon paper only mentions S-box exponents -1, 3, 5 Why does golden poseidon use the exponent 7 ?

https://github.com/iden3/go-iden3-crypto/blob/edc36bfa52472e888b403337ba7941a122e99ab3/goldenposeidon/poseidon.go#L15