Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metahub [master task]: cross-chain message transfer #17

Open
ninjaahhh opened this issue Jan 19, 2022 · 2 comments
Open

metahub [master task]: cross-chain message transfer #17

ninjaahhh opened this issue Jan 19, 2022 · 2 comments
Assignees

Comments

@ninjaahhh
Copy link

scoping master task to enable cross-chain message transfer

  1. subscription management
    1. subscription initiation
      1. a system contract providing subscribe API and should emit a special subscribe event
      2. geth should monitor such events and start listening to specific events
      3. (future) because subscribe will cost full node resources, a proper fee mechanism should be designed to avoid spamming
    2. event monitoring
      1. geth should be aware of supported chains and corresponding JSONRPC API, and manage event monitoring accordingly
      2. geth should support "replaying" chain monitoring - in case a node crashes and restarts, it should be able to catch up the previous event subscription
        1. new system design required
    3. event delivery (emitTo)
      1. callback contract template should have a unified interface to receive delivery
      2. monitored events should be submitted to destination chain
        1. (?) exactly-once mechanism design required
    4. subscription termination
      1. system contract should have a terminate function to stop the event monitoring
      2. geth should stop monitoring and close the websocket after the special events
@ninjaahhh ninjaahhh self-assigned this Jan 19, 2022
@ninjaahhh
Copy link
Author

first smart contract proof-of-concept draft for subscription management can be found in QuarkChain/qkc2#2

@ninjaahhh
Copy link
Author

cc @ping-ke @qizhou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant