Since Poseidon Hash is used because of compatibility in zkSNARK circuits, due
circuit constraints number, the hash method of [T]*big.Int is the one directly
compatible with the circuits, is the method which have the Hash name on it.
The method that can take arbitrary length of []*big.Int putting them in chunks
of [T]*big.Int and iterating, is called HashSlice. The HashBytes has been
removed, as is a method that will not be used in zkSNARK circuits due high
constraints number.
For zkSNARK circuits, should be used poseidon.Hash([poseidon.T]*big.Int).
Since Poseidon Hash is used because of compatibility in zkSNARK circuits, due circuit constraints number, the hash method of
[T]*big.Int
is the one directly compatible with the circuits, is the method which have theHash
name on it. The method that can take arbitrary length of[]*big.Int
putting them in chunks of[T]*big.Int
and iterating, is calledHashSlice
. TheHashBytes
has been removed, as is a method that will not be used in zkSNARK circuits due high constraints number.For zkSNARK circuits, should be used
poseidon.Hash([poseidon.T]*big.Int)
.