We are currently using keccak256 as hash function to calculate sparse merkle tree leafs.
We could use a more friendly zk-snark hash such as MiMc or Poseidon just in case we add zero-knowledge properties to the protocol.
We can even use standard sha256 taking the first 253 bits to fit zk-snark field.
We are currently using
keccak256
as hash function to calculate sparse merkle tree leafs.We could use a more friendly zk-snark hash such as
MiMc
orPoseidon
just in case we add zero-knowledge properties to the protocol. We can even use standardsha256
taking the first 253 bits to fit zk-snark field.