Skip to content

Commit

Permalink
feat: fix feedback devin missed
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoAmura committed Jan 6, 2025
1 parent 90ee710 commit 35137ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 9 additions & 5 deletions packages/crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ yarn add @lit-protocol/crypto
## Quick Start

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

// Generate a new private key
const privateKey = await generatePrivateKey();
// Generate a new key pair
const keyPair = await generateSessionKeyPair();

// Encrypt data with signature
const encryptedData = await encryptWithSignature(data, signature);
// Encrypt data with public key and identity param
const encryptedData = await encrypt(
keyPair.slice(2),
new Uint8Array([1, 2, 3]),
new Uint8Array([4, 5, 6])
);
```

## Key Features
Expand Down
6 changes: 1 addition & 5 deletions packages/lit-node-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { LitNodeClient } from '@lit-protocol/lit-node-client';

// Initialize the client
const client = new LitNodeClient({
alertWhenUnauthorized: false,
litNetwork: 'datil',
});

// Connect to the network
Expand All @@ -30,7 +30,3 @@ await client.connect();
- Network connection management
- Secure node communication
- Automatic request handling and retries

## Authentication

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 comments on commit 35137ce

Please sign in to comment.