dymensionxyz / eibc-client

2 stars 4 forks source link

eibc client should be able to validate each rollapp against an rpc #1

Closed omritoptix closed 1 month ago

omritoptix commented 7 months ago

The order client should have 2 modes: trust and verify.

by default the mode should be verify where the order client should be able to get trusted states from a full node.

The verify should have multiple levels based on the risk apetite (requires more research but in essence):

  1. p2p - fulfill after p2p block has arrived (prone to double signing attack)
  2. da - fulfill after da block has arrived (prone to fraud proof as the sequencer may still write a wrong state commitment which will require a rollback )
  3. settlement - fulfill after settlement commitment has been written. in this case we know the state the sequencer committed + the da block, hence if its correct it's not subject to rollback.

names for UI etc should be adjusted.

This requires obviously further research but this is the gist as I see it.