rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
162 stars 86 forks source link

[Framework] Ethereum lighting node with Move #424

Open jolestar opened 1 year ago

jolestar commented 1 year ago

Implement an Ethereum lighting node with Move.

  1. Receive an Ethereum header from the entry function argument.
  2. Decode the header.
  3. Verify the header via Ethereum PoS Consensus.
  4. Record the header to state.
  5. Provide a function to verify the transaction Merkle proof.
jolestar commented 1 year ago

Basic implementation in the #790, needs to be improved.

https://github.com/rooch-network/rooch/blob/ac8675ab4e81e2616e08c19ced74d2f174c9ea3d/crates/rooch-framework/sources/ethereum_light_client.move