loomchain icon indicating copy to clipboard operation
loomchain copied to clipboard

Upgrade addressmapper contract to support multi-chain mapping

Open atchapcyp opened this issue 5 years ago • 2 comments

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

atchapcyp avatar Oct 09 '19 11:10 atchapcyp

rebuild sesame

atchapcyp avatar Oct 30 '19 07:10 atchapcyp

rebuild sesame

adyromantika avatar Oct 30 '19 08:10 adyromantika