-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/update doc link #51
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bc192aa
add link to official doc
PierreJeanjacquot 213099e
remove useless header
PierreJeanjacquot 88cde18
fix updated semantic
PierreJeanjacquot 0b7b0d8
update readme to fit with latest doc
PierreJeanjacquot 5414f4f
remove useless import from readme example
PierreJeanjacquot 82367a7
remove hard to understand link
PierreJeanjacquot edb9c77
add technical design doc
PierreJeanjacquot aa4189f
rename protocol components
PierreJeanjacquot 0990ad8
add basic resources about iExec protocol
PierreJeanjacquot d2d34fa
add clear order arrows
PierreJeanjacquot a912bdb
fix revokeAllAccess sequence return
PierreJeanjacquot a2e706a
Merge branch 'develop' into feature/update-doc-link
PierreJeanjacquot ac0953b
explain NFT
PierreJeanjacquot 9d6c6aa
add subgraph indexation in protectData sequence
PierreJeanjacquot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # DataProtector technical design | ||
|
|
||
| ## Sequence diagrams | ||
|
|
||
| - [protectData](./uml/sequence-protectData.md) | ||
| - [grantAccess](./uml/sequence-grantAccess.md) | ||
| - [revokeAllAccess](./uml/sequence-revokeAllAccess.md) | ||
| - [revokeOneAccess](./uml/sequence-revokeOneAccess.md) | ||
| - [fetchProtectedData](./uml/sequence-fetchProtectedData.md) | ||
| - [fetchGrantedAccess](./uml/sequence-fetchGrantedAccess.md) | ||
|
|
||
| [<-- back home](../README.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # fetchGrantedAccess | ||
|
|
||
| ```mermaid | ||
|
|
||
| sequenceDiagram | ||
| title fetchGrantedAccess | ||
|
|
||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
| box iExec Protocol | ||
| participant POCO as PoCo SC | ||
| participant Market as Marketplace API | ||
| end | ||
|
|
||
| Market --) POCO : observe and clear revoked orders | ||
|
|
||
| User -) SDK: fetchGrantedAccess<br>(protectedData,<br>authorizedApp optional filter,<br>authorizedUser optional filter) | ||
|
|
||
| SDK ->> Market: query datasetorders matching filters | ||
|
|
||
| SDK ->> User: array of GrantedAccess | ||
| ``` | ||
|
|
||
| ## resources | ||
|
|
||
| - **dataset**: iExec's protocol NFT (Non-Fungible Token) providing governance over a confidential data, the dataset is the backbone of a protected data | ||
| - **datasetorder**: iExec's protocol document expressing a subset of governance rules signed by the owner of a dataset, datasetorders are referred as GrantedAccess by DataProtector | ||
| - [iExec protocol documentation](https://protocol.docs.iex.ec) | ||
|
|
||
| [<-- back](../index.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # fetchProtectedData | ||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| title fetchProtectedData | ||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
| participant DPSC as DataProtector SC | ||
| participant DPSG as DataProtector Subgraph | ||
| DPSG --) DPSC: observe and index new Protected Data | ||
| User -) SDK: fetchProtectedData<br>(owner optional filter,<br>dataSchema optional filter) | ||
| SDK ->> DPSG: query protected data matching filters | ||
PierreJeanjacquot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| SDK ->> User: array of ProtectedData | ||
| ``` | ||
|
|
||
| [<-- back](../index.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # grantAccess | ||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| title grantAccess | ||
|
|
||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
| box iExec Protocol | ||
| participant Market as Marketplace API | ||
| end | ||
|
|
||
| User -) SDK: grantAccess<br>(protectedData,<br>authorizedApp,<br>authorizedUser) | ||
|
|
||
| SDK ->> SDK: create a datasetorder | ||
PierreJeanjacquot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| SDK ->> Market: publish datasetorder | ||
|
|
||
| SDK ->> User: GrantedAccess | ||
| ``` | ||
|
|
||
| ## resources | ||
|
|
||
| - **dataset**: iExec's protocol NFT (Non-Fungible Token) providing governance over a confidential data, the dataset is the backbone of a protected data | ||
| - **datasetorder**: iExec's protocol document expressing a subset of governance rules signed by the owner of a dataset, datasetorders are referred as GrantedAccess by DataProtector | ||
| - [iExec protocol documentation](https://protocol.docs.iex.ec) | ||
|
|
||
| [<-- back](../index.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # protectData | ||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| title protectData | ||
|
|
||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
| participant IPFS | ||
| participant DPSC as DataProtector SC | ||
| participant DPSG as DataProtector Subgraph | ||
| box iExec Protocol | ||
| participant DRSC as DatasetRegistry SC | ||
| participant SMS as Secret Management Service | ||
| end | ||
|
|
||
| DPSG --) DPSC: observe and index<br>protected data | ||
|
|
||
| User -) SDK: protectData<br>(data, name optional) | ||
|
|
||
| SDK ->> SDK: extract data schema | ||
|
|
||
| SDK ->> SDK: generate encryption key | ||
|
|
||
| SDK ->> SDK: encrypt data | ||
|
|
||
| SDK ->> IPFS: upload encrypted data | ||
|
|
||
| SDK ->> DPSC: createDatasetWithSchema<br>(encrypted data uri, data schema) | ||
|
|
||
| DPSC ->> DRSC: createDataset() | ||
|
|
||
| DPSC -->> DPSG: index protected data | ||
|
|
||
| SDK ->> SMS: push encryption key | ||
PierreJeanjacquot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| SDK ->> User: ProtectedData and metadata | ||
| ``` | ||
|
|
||
| ## resources | ||
|
|
||
| - **dataset**: iExec's protocol NFT (Non-Fungible Token) providing governance over a confidential data, the dataset is the backbone of a protected data | ||
| - **datasetorder**: iExec's protocol document expressing a subset of governance rules signed by the owner of a dataset, datasetorders are referred as GrantedAccess by DataProtector | ||
| - [iExec protocol documentation](https://protocol.docs.iex.ec) | ||
|
|
||
| [<-- back](../index.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # revokeAllAccess | ||
PierreJeanjacquot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| title revokeAllAccess | ||
|
|
||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
|
|
||
| box iExec Protocol | ||
| participant POCO as PoCo SC | ||
| participant Market as Marketplace API | ||
| end | ||
|
|
||
| Market --) POCO : observe and clear revoked orders | ||
PierreJeanjacquot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| User -) SDK: revokeAllAccess<br>(protectedData,<br>authorizedApp optional filter,<br>authorizedUser optional filter) | ||
|
|
||
| SDK ->> Market: query datasetorders matching filters | ||
|
|
||
| loop For each datasetorder | ||
| SDK ->> POCO: revoke datasetorder | ||
| POCO -->> Market: clear order | ||
| end | ||
|
|
||
| SDK ->> User: array of revoked GrantedAccess | ||
| ``` | ||
|
|
||
| ## resources | ||
|
|
||
| - **dataset**: iExec's protocol NFT (Non-Fungible Token) providing governance over a confidential data, the dataset is the backbone of a protected data | ||
| - **datasetorder**: iExec's protocol document expressing a subset of governance rules signed by the owner of a dataset, datasetorders are referred as GrantedAccess by DataProtector | ||
| - [iExec protocol documentation](https://protocol.docs.iex.ec) | ||
|
|
||
| [<-- back](../index.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # revokeOneAccess | ||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| title revokeOneAccess | ||
|
|
||
| box Client environment | ||
| actor User | ||
| participant SDK as @iexec/dataprotector | ||
| end | ||
|
|
||
| box iExec Protocol | ||
| participant POCO as PoCo SC | ||
| participant Market as Marketplace API | ||
| end | ||
|
|
||
| Market --) POCO : observe and clear revoked orders | ||
|
|
||
| User -) SDK: revokeOneAccess(grantedAccess) | ||
|
|
||
| SDK ->> POCO: revoke datasetorder | ||
|
|
||
| POCO -->> Market: clear order | ||
|
|
||
| SDK ->> User: revoked GrantedAccess | ||
| ``` | ||
|
|
||
| ## resources | ||
|
|
||
| - **dataset**: iExec's protocol NFT (Non-Fungible Token) providing governance over a confidential data, the dataset is the backbone of a protected data | ||
| - **datasetorder**: iExec's protocol document expressing a subset of governance rules signed by the owner of a dataset, datasetorders are referred as GrantedAccess by DataProtector | ||
| - [iExec protocol documentation](https://protocol.docs.iex.ec) | ||
|
|
||
| [<-- back](../index.md) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.