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

Exit db refactor #824

Merged
merged 5 commits into from
Sep 20, 2023
Merged

Exit db refactor #824

merged 5 commits into from
Sep 20, 2023

Commits on Sep 20, 2023

  1. This commit is the first step in removing the postgreSql database fro…

    …m exits
    
    The goal of this change is to make it possible for many thousands of exits
    to easily run off a single database with no shared credentials and also to
    make it possible for many different organizations to cooperate on this database.
    
    In order to achieve this we will be replacing the postgresql database currently
    used by the exits with a smart contract which will be used to register users
    
    Client register flow has changed from client -> Exit -> Ops. Exit forwards a request to an external server with sms api key in order to
    verify a client. That server will have write access to the smart contract to add the client, and then return their registration status to
    exit, which then forwards that request back to the client
    Pranay Tulugu committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    b1b13db View commit details
    Browse the repository at this point in the history
  2. Add client registration crate

    Pranay Tulugu committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    bd741fe View commit details
    Browse the repository at this point in the history
  3. Add AltheaDB.sol and web30 function to interact with contract

    AltheaDB.sol is the solidity contract to be hosted on the althea blockchain that is used
    in place of the previous postgresql db. This commits add this contract as well as implementations of
    functions in rita_client_registration to add and query users to this contract
    Pranay Tulugu committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    a8af912 View commit details
    Browse the repository at this point in the history
  4. Add state based registration to registration server

    Since the register endpoint can be called simultaneously by multiple router, we need to queue up these txs and
    batch them together and setup the correct nonce
    Pranay Tulugu committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    2d26228 View commit details
    Browse the repository at this point in the history
  5. Fix CI tests and general cleanup

    Pranay Tulugu committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    bdc1394 View commit details
    Browse the repository at this point in the history