diff --git a/goldenposeidon/constants.go b/goldenposeidon/constants.go index 32d15f0..bc652d6 100644 --- a/goldenposeidon/constants.go +++ b/goldenposeidon/constants.go @@ -3,10 +3,13 @@ package poseidon import "github.com/iden3/go-iden3-crypto/ffg" const ( + // NROUNDSF NROUNDSF = 8 + // NROUNDSP NROUNDSP = 22 - CAPLEN = 4 - mLen = 12 + // CAPLEN + CAPLEN = 4 + mLen = 12 ) var ( diff --git a/goldenposeidon/poseidon.go b/goldenposeidon/poseidon.go index e665957..8e7b851 100644 --- a/goldenposeidon/poseidon.go +++ b/goldenposeidon/poseidon.go @@ -6,9 +6,6 @@ import ( "github.com/iden3/go-iden3-crypto/ffg" ) -const spongeChunkSize = 31 -const spongeInputs = 16 - func zero() *ffg.Element { return ffg.NewElement() }