loomchain
loomchain copied to clipboard
Upgrade addressmapper contract to support multi-chain mapping
Requirement :
- [x] DAppChain account can be mapped to multiple foreign accounts on the same foreign chain.
- [x] DAppChain account can be mapped to foreign accounts on multiple foreign chains.
- [ ] Remove mapped address.
- [x] Add chainID and nonce to the hash that's signed to prove account ownership (feature flag required).
- [ ] Migration ?
In order to support multichain address mapper, We will need to add more complex to the key of key-value store.
prefixKey : byteAddress : TargetchainID : sequence --> address mapping protobuf (from,to)
ref : https://github.com/loomnetwork/loomchain/issues/1101
- [x] I added unit tests for any code that added
- [ ] I updated the CHANGELOG.md
- [x] All IP is original and not copied from another source
- [x] I assign all copyright to Loom Network for the code in the pull request
rebuild sesame
rebuild sesame