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

Node Adaptor ETH #4

Open
NCrashed opened this issue Apr 6, 2022 · 0 comments
Open

Node Adaptor ETH #4

NCrashed opened this issue Apr 6, 2022 · 0 comments
Assignees
Labels
ETH Ethereum and ERC20 related tasks

Comments

@NCrashed
Copy link
Contributor

NCrashed commented Apr 6, 2022

Each node adaptor is a separate service that is deployed next to the corresponding full node with the wallet. Each adaptor implements the #5 API.

  • Each user has a unique ETH address/account.

The new user scenario:

  • New user is registered within the hot wallet service. Hot wallet service notifies the adaptor about the new user.
  • The adaptor responds with the deposit address for the new user.

The withdrawal scenario:

  • Hot wallet service sends a withdrawal request to the node adaptor. The request can have one of the following auth info:
    1. No auth. Small amounts per day are configured in the node adaptor.
    2. Signatures of operators for large amounts and email users.
    3. Signature of the user for the self-custody scenario when the user has their own keys on the device.
  • Adaptor checks that auth is valid, and the amount is lower than the user balance. If there are not enough funds in the hot wallet, the refill request to the cold wallet is sent automatically.
  • Adaptor sends the transaction and notifies the hot wallet service that the request is finished.

The deposit scenario:

  • Adaptor sees that there is an incoming transaction for some user address.
  • Adaptor notifies the hot wallet service about the transaction when it is first seen and when it is completely finalized (has enough confirmations).

The cold wallet dump scenario:

  • Some account receives too many funds (that is configured).
  • The adaptor waits for some time (configurable) and sends excess funds to the cold wallet multi-sig address.

The ticker contains a task for developing a standalone executable service that will be deployed in an isolated host with its own Eth full node.

@LeMarwin LeMarwin added the ETH Ethereum and ERC20 related tasks label Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ETH Ethereum and ERC20 related tasks
Projects
None yet
Development

No branches or pull requests

3 participants