omgnetwork / plasma-mvp

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

when is the child-chain's first block created? #207

Closed code-brewer closed 5 years ago

code-brewer commented 6 years ago

hi all. I am not familiar with plasma and need help on some concepts.

First question:

Does the first-block created at the moment that plasmat-contract deployed or at the point that first deposit() call from client ?

Second question:

Does there only one instance of plasmat-contract on root-chain event if there is multilple direct child-chain ?

boolafish commented 6 years ago

I am probably not the best person to answer for this package, so anyone please correct me if I have some misunderstanding.

  1. In the implementation here, it can possibly be deposit or when operator submit the first block to the contract. However, it doesn't really matters when the first block is created.
  2. Usually it is one smart contract contract to one child chain. One to many seems to be possible but probably don't have any benefit (?)
code-brewer commented 6 years ago

So much appreciated to your comment. I asked these question because i'm blocked while trying to use this https://github.com/matterinc/PlasmaContract/blob/master/contracts/PlasmaParent.sol Plasma implementation. It seem to use array to store all child-chain, but i am not sure.

boolafish commented 6 years ago

Did a quick look, it doesn't seem like to be multiple child-chain though. Can you point out where makes you feel like that?