uohoo / Data-exchange-protocol

0 stars 0 forks source link

hash leafs sparse merkle tree #2

Closed krlosMata closed 5 years ago

krlosMata commented 5 years ago

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.

krlosMata commented 5 years ago

Poseidon implementation has been done