EYBlockchain / nightfall_3

a mono-repo containing an optimistic version of nightfall
Creative Commons Zero v1.0 Universal
262 stars 57 forks source link

Use Poseidon instead of MiMc for constructing the commitment Timber Merkle Tree #820

Closed RogerTaule closed 2 years ago

RogerTaule commented 2 years ago

Currently, the current commitment merkle tree is using MiMc hash to calculate the root. By using Poseidon, there would be a reduction of the gas cost and also a reduction of the number of constraints used by the circuit. To provide more accurate numbers:

Westlad commented 2 years ago

fixed by #827