You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Polkadot-js api (javascript library)](#polkadot-js-api-javascript-library)
11
+
-[Create a vault](#create-a-vault)
12
+
-[Get a vault](#get-a-vault)
13
+
-[Get a public key](#get-a-public-key)
14
+
-[Create an owned confidential document](#create-an-owned-confidential-document)
15
+
-[Get an owned confidential document by CID](#get-an-owned-confidential-document-by-cid)
16
+
-[Remove an owned confidential document](#remove-an-owned-confidential-document)
17
+
-[Share a confidential document](#share-a-confidential-document)
18
+
-[Get a shared confidential document by CID](#get-a-shared-confidential-document-by-cid)
19
+
-[Update a shared confidential document's metadata](#update-a-shared-confidential-documents-metadata)
20
+
-[Remove a shared confidential document](#remove-a-shared-confidential-document)
21
+
## Overview
22
+
23
+
This module allows a user to:
24
+
- Create their vault. The vault stores the cipher private key used to cipher the user documents. The way the user vault is ciphered depends on the login method used by the user.
25
+
- Create on owned confidential document that only the user has access to
26
+
- Update the metadata of an owned confidential document
27
+
- Share a confidential document with another user
28
+
29
+
## Interface
30
+
31
+
### Dispachable functions
32
+
-`set_vault` Creates/Updates the calling user's vault and sets their public cipher key
33
+
-`set_owned_document` Creates a new owned document or updates an existing owned document's metadata
34
+
-`remove_owned_document` Removes an owned document
0 commit comments