livepeer / livepeer-truebit-bigchaindb

Prototyping collaboration between Livepeer, Truebit, and Bigchaindb
MIT License
2 stars 1 forks source link

Question about binary merkle root #2

Open ericxtang opened 6 years ago

ericxtang commented 6 years ago

Question for @mrsmkl - why does TB need a binary merkle tree root hash instead of just using the IPFS hash?

whyrusleeping commented 6 years ago

signing myself up for notifications here

mrsmkl commented 6 years ago

Well mostly it is just an implementation detail (binary merkle root is easier to implement). There is one thing to consider: If we know that an IPFS hash is available, we still need to get the chunks, so we would also need to know whether the included chunks are available. Anyway, the mechanism I described will handle all this and convert the IPFS hash into binary merkle root.