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

feat: private data, private archives, vault support and CLI integration #2314

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

grumbach
Copy link
Member

@grumbach grumbach commented Oct 25, 2024

  • private data
  • private archives
  • private file/dir
  • vault integration for private data
  • CLI integration of all the above
  • CLI uploads use private as default and --public as an option

Note that unlike public data, private data can only be downloaded by the owner! Either from the same client (needs local user data) OR from another client with a synced vault! Here's the flow:

  • client pushes private data
  • private data access is kept in local user data
  • client syncs it to vault
  • from another device/app (with the same EVM key), client loads vault
  • this new device now had access to the private data too

Comment on lines +35 to +38
/// Get a private address for [`PrivateDataAccess`]. Note that this is not a network address, it is only used for refering to private data client side.
pub fn address(&self) -> String {
hash_to_short_string(&self.to_hex())
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of an important design decision. Wanted to outline this here. Public data refers to a Network address which points to a DataMap. PrivateDataAccess is not an address it IS THE DATAMAP. As it it can be very big (up to max chunk size), we need a way to refer to it in the client side, thus using its hash.

@grumbach grumbach enabled auto-merge October 25, 2024 03:58
Copy link
Contributor

@mickvandijke mickvandijke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@grumbach grumbach added this pull request to the merge queue Oct 25, 2024
Merged via the queue into maidsafe:main with commit 4e3349d Oct 25, 2024
28 checks passed
@grumbach grumbach deleted the private_data branch October 25, 2024 07:44
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

Successfully merging this pull request may close these issues.

2 participants