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

Deep share document part #18

Open
syakunin opened this issue Dec 3, 2021 · 0 comments
Open

Deep share document part #18

syakunin opened this issue Dec 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@syakunin
Copy link
Collaborator

syakunin commented Dec 3, 2021

One can want to share only a portion of his document without revealing the whole document. In this case deep share functionality can accept document path, re-encrypt and share document part only, which is under the specified path. For example:

Alice have this document:

{
  "documents": {
	 "topSecret": ["CID100", "CID101", "CID102"],
  },
  "photos": {
	  "wedding": ["CID1", "CID2", "CID3"],
  }
}

and she wants to share only wedding part of the document with Bob, so she might call:

const scid = context.secure(ipfs).deepShare(cid, bobPublicKey, '/photos/wedding');

The context should traverse the path, extract specified document part, encrypt it and return document SCID which Alice can pass to Bob.

@syakunin syakunin added the enhancement New feature or request label Dec 3, 2021
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