Open olegrok opened 2 months ago
In case you want to provide custom hash function behavior can be quite unexpected.
It happens because zeroHashes is global variable that is initialized by default with sha256:
https://github.com/ferranbt/fastssz/blob/f43e88e3e05ffc6f01540c312653d471a10d2ff2/hasher.go#L39
Hi, what is your use case for a custom hash function?
Hi! I want to use poseidon hash instead of sha256
In case you want to provide custom hash function behavior can be quite unexpected.
It happens because zeroHashes is global variable that is initialized by default with sha256:
https://github.com/ferranbt/fastssz/blob/f43e88e3e05ffc6f01540c312653d471a10d2ff2/hasher.go#L39