omgnetwork / plasma-mvp

OmiseGO's research implementation of Minimal Viable Plasma
MIT License
561 stars 158 forks source link

Require child chain validate transaction signatures #36

Closed smartcontracts closed 6 years ago

smartcontracts commented 6 years ago

Child chain doesn't currently validate that the signatures on each input are valid. This should happen inside apply_transaction. The easiest way to check this is with a check similar to self.blocks[blknum].transaction_set[txindex].newowner1 == tx.sender1 for each input.