ameensol / merkle-tree-solidity

JS - Solidity sha3 merkle tree bridge. Generate proofs in JS; verify in Solidity.
111 stars 25 forks source link

Break the solidity portion into a reusable library #1

Open danfinlay opened 7 years ago

danfinlay commented 7 years ago

I don't just want a proving contract, I want an arbitrary contract to be able to do merkle proofs, ideally on a root it has.

Maybe the merkle proving contract lib could be published once per chain, and then a lib could be published for other contracts to ask it to prove if given leaves + proofs match their own merkle roots.

The point is, I love this, but I want it more modular/reusable. Great work!

ameensol commented 7 years ago

Totally agree!

yondonfu commented 7 years ago

Working on adding the Merkle proof functionality as a library to OpenZeppelin here! https://github.com/OpenZeppelin/zeppelin-solidity/pull/260