Skip to content

Commit 35137ce

Browse files
committed
feat: fix feedback devin missed
1 parent 90ee710 commit 35137ce

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/crypto/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ yarn add @lit-protocol/crypto
1111
## Quick Start
1212

1313
```typescript
14-
import { generatePrivateKey, encryptWithSignature } from '@lit-protocol/crypto';
14+
import { generateSessionKeyPair, encrypt } from '@lit-protocol/crypto';
1515

16-
// Generate a new private key
17-
const privateKey = await generatePrivateKey();
16+
// Generate a new key pair
17+
const keyPair = await generateSessionKeyPair();
1818

19-
// Encrypt data with signature
20-
const encryptedData = await encryptWithSignature(data, signature);
19+
// Encrypt data with public key and identity param
20+
const encryptedData = await encrypt(
21+
keyPair.slice(2),
22+
new Uint8Array([1, 2, 3]),
23+
new Uint8Array([4, 5, 6])
24+
);
2125
```
2226

2327
## Key Features

packages/lit-node-client/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { LitNodeClient } from '@lit-protocol/lit-node-client';
1515

1616
// Initialize the client
1717
const client = new LitNodeClient({
18-
alertWhenUnauthorized: false,
18+
litNetwork: 'datil',
1919
});
2020

2121
// Connect to the network
@@ -30,7 +30,3 @@ await client.connect();
3030
- Network connection management
3131
- Secure node communication
3232
- Automatic request handling and retries
33-
34-
## Authentication
35-
36-
The client automatically sets up authentication using the `checkAndSignAuthMessage` function from the auth-browser submodule. This provides a secure and consistent way to interact with Lit nodes across different environments.

0 commit comments

Comments
 (0)