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

Sync private notes and drafts between own devices #4

Open
telamon opened this issue Sep 29, 2022 · 0 comments
Open

Sync private notes and drafts between own devices #4

telamon opened this issue Sep 29, 2022 · 0 comments
Labels
epic 10years+ if not refined research Request for research & comment

Comments

@telamon
Copy link
Collaborator

telamon commented Sep 29, 2022

Normal mode 1.

As a User I want my saved rants to be in sync between devices

Hard mode 2.

As a User I want to continue edit/read drafts that I started writing on my phone.

This feature needs some discussion and thinking..
I'm Imagining that I will pair my phone and laptop by:

  1. Laptop: goto settings-> PairDevice Button
  2. When pressed dialog pops up showing a QR code and/or a link/email:
https://pure.xorcery.co/#/pair/{kernel.pk}
  1. On phone open link (QR/Email/somehow self-share)
  2. Get page: ... wait no ...
    The basic idea was to
const laptop = new Kernel()
const mobile = new Kernel()

// Save PK in list of trusted/friendly devices in level db.
await mobile.pairDevice(laptop.pk)

laptop.spawnWire().open(mobile.spawnWire())
// And then rants & drafts are synced
// -- BUT --

In real-world, we have no authenticated encryption to assert that your phone is really talking to your laptop and not some other device.
But I think hypercore-protocol solves it for us if we enable noise option and use the on-authenticate handlers.

@telamon telamon added documentation Improvements or additions to documentation epic 10years+ if not refined research Request for research & comment and removed documentation Improvements or additions to documentation labels Sep 29, 2022
@telamon telamon added this to 1k Rant Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic 10years+ if not refined research Request for research & comment
Projects
None yet
Development

No branches or pull requests

1 participant