HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.31k stars 2.26k forks source link

[Feature] Data synced on multiple devices with same user ID #1626

Open danimesq opened 5 years ago

danimesq commented 5 years ago

Added content to this comment on 12/12/2018.

Yesterday I thought about data sync on multiple devices with same ID, then I realized how it is possible.

How ZeroSync can work

One device is set as Master, and creates a different UI IP server where other ZeroNet instances from other devices can connect (with privatekey authentication). From any device, users connected to same network and having ZN authentication, can access the Master's ZeroNet (download new zites, use the ID, sign/publish zites, sign to post/comment, etc). The detail is that the data is being remotely accessed, but not downloaded to the device to be used on-go, but: To sync data after use: If the PC (for example) is the Master, and user needs to take the phone on-go, he presses a button to pull all Master data to the phone, or to any or all other devices. All this with the same ID. Then user can leave the area of the wireless network, and the data is already portably downloaded on the device.

HelloZeroNet commented 5 years ago

It's already synced between all devices that has the site added.

danimesq commented 5 years ago

I'm talking about user data.

HelloZeroNet commented 5 years ago

I still don't understand, there is many multi-user web sites that contains user data that is synced between the peers.

danimesq commented 5 years ago

But can use the same sites.json/users.json on both computer and mobile?

HelloZeroNet commented 5 years ago

The added sites will not be synced (probably it's not a good idea to do that), but you can use the same identity.

danimesq commented 5 years ago

@imachug Why do you use a "mobile" identity?

purplesyringa commented 5 years ago

Hm... I use both. It's just that some sites sign and publish the content before downloading it, so when I switch computers the newer data gets overwritten by the old data. So I use 2 identities.

ghost commented 5 years ago

I have an idea. 1Password has this thing called the Emergency Kit. It's a pdf where it gives your master password as well as the secret key as well as a QR code to quickly scan it in when connecting to 1password from a different device. ZeroNet could use something similar.

Additionally, once connected with the master key and/or main ZeroId account, we could have a zite that can sync up the rest by decrypting a user's id's, sites, etc. that's stored in an encrypted form on the zite using either that master key or the zeroid private key.

danimesq commented 5 years ago

@HelloZeroNet @shortcutme

@krixano I agree. It needs to be easier for newbie users, and synced on all devices like clearnet does. I liked the idea of password as paper wallet, also support to NFC. https://pypi.org/project/qrcode/ https://github.com/ewino/qreader https://github.com/nfcpy/nfcpy

slrslr commented 5 years ago

@HelloZeroNet @all I agree with others that the Zeronet built-in way to help user synchronize their user data (ZeroNet/data/users.json) between multiple devices would be handy.

The reason i want it is especially synchronization of the follows (followed posts, discussion topics). Once i synchronize ZeroNet/data/users.json between devices (not always fast & simple to connect various OS and find correct paths for noob), as time goes it goes out of sync and merging changes seems too difficult or impossible for noob user.

IDEA: It would be handy if Zeronet will hash/encrypt the content of the ZeroNet/data/users.json and store it somewhere on well seeded site. Then ZeroNet on other device knows the save path and upon entering master seed or something like that,it will be able to automatically decrypt the "export" and merge it to local users.json. It will work both ways - even if both devices are used simultaneously, it will automatically keep both ZeroNet/data/users.json in sync.

danimesq commented 5 years ago

Update:

Look at the issue first comment/description, thats a way to make syncing work with same ID.

One device is set as Master, and creates a different UI IP server where other ZeroNet instances from other devices can connect (with privatekey authentication). From any device, users connected to same network and having ZN authentication, can access the Master's ZeroNet (download new zites, use the ID, sign/publish zites, sign to post/comment, etc). The detail is that the data is being remotely accessed, but not downloaded to the device to be used on-go, but: To sync data after use: If the PC (for example) is the Master, and user needs to take the phone on-go, he presses a button to pull all Master data to the phone, or to any or all other devices. All this with the same ID. Then user can leave the area of the wireless network, and the data is already portably downloaded on the device.

https://github.com/HelloZeroNet/ZeroNet/issues/1626#issue-361943468

styromaniac commented 5 years ago

I think that some files not syncing between own devices is a LAN issue. If you mean to sync sites and optional files, that's a cool idea (some other cool ones in this thread too), then my comment isn't very useful.