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

Oracle have to consume the tee-worker and its client #614

Open
4 tasks
mudler opened this issue Oct 28, 2024 · 0 comments
Open
4 tasks

Oracle have to consume the tee-worker and its client #614

mudler opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mudler
Copy link
Contributor

mudler commented Oct 28, 2024

Is your feature request related to a problem? Please describe.
Since we are moving the scraping to the tee-worker, we need to have the Oracle be able to submit requests to the worker to produce the data which is being scraped.

Describe the solution you'd like
We want the oracle to consume the tee-worker client here: https://github.com/masa-finance/tee-worker/tree/wip/pkg/client and connect to it instead of scraping directly with the provided scrapers.

That means that we will have to start both services separately, and the oracle have to accept a configuration setting to point to a tee-worker API endpoint

Describe alternatives you've considered

Additional context

The oracle can return the data both encrypted or decrypted because there are two users of the oracle, the subnet which requires the data to be in encrypted form that has to circulate to the bittensor network, and the users of only the oracle which works directly with decrypted data and do not want to interact anymore with the tee-worker directly.

Acceptance criteria

  • The oracle code doesn't scrape anymore directly, and we have removed the scraping code from the repository
  • The oracle imports the tee-worker client, and connects to it to scrape the real data
  • The oracle have in its setting a way to configure a tee-worker endpoint
  • The oracle have in its setting a way to return all encrypted data, or all decrypted data (subnet users, or not)
@mudler mudler added enhancement New feature or request triage and removed triage labels Oct 28, 2024
@mudler mudler changed the title Oracle have to consume the tee-worker and its client [L] Oracle have to consume the tee-worker and its client Dec 2, 2024
@mudler mudler changed the title [L] Oracle have to consume the tee-worker and its client Oracle have to consume the tee-worker and its client Dec 2, 2024
@mudler mudler self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant