Refactor gn-oracle
#137
Labels
f2-refactor
optimizing and restructuring code while keeping its functionality
t2-oracle
oracle-related changes
Description
Oracle should be refactored into a standalone crate with modular components. It is currently a monolithic block of code that should be split into smaller (unit tested) components. We should do it in a way that makes it easier to integrate the new oracle engine and identity service into it.
An oracle should have two main functionalities
Solution
We could do something similar to Parity's identity pallet and set up a registrar-like id verification service:
This is very similar to what we already have in the oracle node but it's more polished and modular. Architecturally speaking we should implement connectors for various platforms (telegram, discord, twitter), send them challenges when we catch an identity registration event and wait for the user's response in the specific connector's DM to verify the provided off-chain identity.
Split the code up into the following units
H(web2_id)
to challengerHashMap
for storing challenges initially?)The text was updated successfully, but these errors were encountered: