Skip to content

Redesigned address format for interoperability

Compare
Choose a tag to compare
@jjyr jjyr released this 22 Jun 12:50
888f0e9

Terms

  • Godwoken - the rollup framework
  • Polyjuice - a EVM compatible environment, which integrated with Godwoken.
  • Godwoken address - the 32 bytes address used in the Godwoken.
  • Short address - a short version of Godwoken address used in different environments, such as in the polyjuice.

Changes

In this version, we reviewed the interoperability of Godwoken. We give up some ability of compatible with EVM to make the address genernalize, thus, we can beyond the EVM protocol, and support more VMs & protocols in the future.

In the new version, a new concept called short_address is designed, users must use short_address instead of using ETH address directly, we provide a web3 provider to automatically replace the eth_address to polyjuice short_address for developers.

Protocol changes

  • The compatible_chain_id field is removed from RollupConfig.
  • A new syscall SYS_RECOVER_ACCOUNT is added, the purpose of this syscall is to replace ECRECOVER precompiled contract, polyjuice will provide a new precompiled contract to expose SYS_RECOVER_ACCOUNT.

Other libraries