Redesigned address format for interoperability
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 fromRollupConfig
. - A new syscall
SYS_RECOVER_ACCOUNT
is added, the purpose of this syscall is to replaceECRECOVER
precompiled contract, polyjuice will provide a new precompiled contract to exposeSYS_RECOVER_ACCOUNT
.
Other libraries
- Godwoken - https://github.com/nervosnetwork/godwoken/tree/v0.4.0-rc1
- Godwoken scritps - https://github.com/nervosnetwork/godwoken-scripts/tree/v0.6.0-rc1
- Polyjuice web3 provider - https://github.com/RetricSu/polyjuice-providers-http