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

remote sync controller #8

Open
3 tasks done
svub opened this issue Feb 22, 2023 · 2 comments
Open
3 tasks done

remote sync controller #8

svub opened this issue Feb 22, 2023 · 2 comments
Assignees

Comments

@svub
Copy link
Owner

svub commented Feb 22, 2023

TL;DR Checks all remote repositories, merges the info and updates the contact store.

Remote repositories are used to publish profile changes -- could be anything from Google Drive to IPFS. The updated info is encrypted individually for each of the user's contacts that this update is intended for by using their individual pub key. This way only the intended contact can decrypt the information and in turn update their local storage with the new information for this user.

This component will handle pushing and pull updates over all configured repositories via a plugin architecture.

  • pushUpdate(): encrypt and publish profile to all contacts
  • pullUpdates(): get updates for all contacts from all repositories
  • enableRepository(id): configure a new repository
@svub svub added this to the minimal functionality milestone Feb 22, 2023
@ltfschoen
Copy link

what do you mean by "checking all the remote repositories"? is that just the database locations?

@svub svub self-assigned this Mar 31, 2023
@svub
Copy link
Owner Author

svub commented Mar 31, 2023

yes exactly. I'll improve the description. A basic implementation is already done. Needs some testing though before closing the issue. And then we need some sort of background service that triggers the sync controller now and then.

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

2 participants