Skip to content

Commit 3a3955b

Browse files
authored
Merge pull request #306 from docknetwork/AgneCaunt-patch-1
Update cloud-wallet.md
2 parents 5e1b016 + cbec978 commit 3a3955b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/cloud-wallet.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ The Cloud Wallet integrates with an [Encrypted Data Vault (EDV)](https://digital
1212

1313
The example below demonstrates how to initialize and use the Cloud Wallet for managing documents.
1414

15-
1615
### Step 1: Initialize the Data Store
1716

17+
First, you need to create local data storage to connect to the credential wallet.
18+
1819
#### For Mobile and Node.js
1920

2021
```ts
@@ -40,7 +41,7 @@ const dataStore = await createDataStore({
4041

4142
### Step 2: Generate Wallet Keys
4243

43-
Use the same Cloud Wallet keys across multiple devices to access the same documents. These keys are used to encrypt, decrypt, and locate documents in the EDV.
44+
Next, we generate keys for interacting with the cloud wallet. Use the same Cloud Wallet keys across multiple devices to access the same documents. These keys are used to encrypt, decrypt, and locate documents in the EDV.
4445

4546
```ts
4647
const {verificationKey, agreementKey, hmacKey} = await edvService.generateKeys();
@@ -52,7 +53,7 @@ The key generation returns an object with `agreementKey`, `verificationKey`, and
5253

5354
### Step 3: Initialize the Cloud Wallet
5455

55-
After setting up the data store and generating keys, initialize the Cloud Wallet. This ensures continuous synchronization between the EDV and the wallet.
56+
After setting up the data store and generating keys, initialize the Cloud Wallet and connect it to the local data storage. This ensures continuous synchronization between the EDV and the wallet.
5657

5758
```ts
5859
import {initializeCloudWallet} from '@docknetwork/wallet-sdk-core/lib/cloud-wallet';
@@ -70,11 +71,11 @@ const {pullDocuments} = await initializeCloudWallet({
7071
await pullDocuments();
7172
```
7273

73-
The `pullDocuments` function synchronizes the EDV and the wallet by comparing documents and updating the data store accordingly.
74+
The `pullDocuments` function synchronizes the EDV and the wallet by comparing documents and updating the data store accordingly.Documents can be credentials or messages.
7475

7576
### Step 4: Create a New Wallet
7677

77-
Now, create a wallet to manage your documents. This will allow you to add, update, and remove documents.
78+
Now, create a credential wallet inside of the data storage. This will allow you to add, update, and remove documents.
7879

7980
```ts
8081
import {createWallet} from '@docknetwork/wallet-sdk-core/lib/wallet';
@@ -142,4 +143,4 @@ async function example() {
142143

143144
example();
144145

145-
```
146+
```

0 commit comments

Comments
 (0)