FourthState / plasma-mvp-sidechain

Cosmos SDK (Tendermint consensus) side-chain implementation for plasma
Apache License 2.0
112 stars 35 forks source link

Form Plasma Blocks in App State #145

Open colin-axner opened 5 years ago

colin-axner commented 5 years ago

Summary

We should form plasma blocks in the app state so that blocks submitted to the rootchain do not include msgs like "include-deposit", should still be consistent with TM simple merkle tree with prefixes for leaf nodes and inner nodes

colin-axner commented 5 years ago

For PoA this should work fine, for PoS we still want accountability of all validators. To do this, I think we can form blocks in endBlocker, then add verfication in submit block that checks that app_hash has the data hash reported. Submit block would also verify the signature over app_hash