Skip to content

Conversation

@humanagent
Copy link
Contributor

@humanagent humanagent commented Oct 18, 2025

Update dbEncryptionKey setup in create-a-client documentation to define keys and compute hex-based dbEncryptionKey in create-a-client.mdx

The documentation for creating a client is updated to define key variables and compute the database encryption key from a hex string while adjusting headings and examples in create-a-client.mdx. • Add fromString import from uint8arrays/from-string and compute dbEncryptionKey using fromString(encryptionKey, "hex") in create-a-client.mdx.
• Introduce walletKey and encryptionKey constants and replace inline literals in the first code example in create-a-client.mdx.
• Update user creation to use walletKey and remove creation of signer while leaving signer referenced in Agent.create in create-a-client.mdx.
• Remove the 0x prefix from the XMTP_DB_ENCRYPTION_KEY example value and change section headings to level 2 for "Generate random keys" and "Use environment variables"; remove the "Configure an XMTP client" heading in create-a-client.mdx.

📍Where to Start

Start with the updated code example that defines walletKey, encryptionKey, and computes dbEncryptionKey using fromString in create-a-client.mdx, then review the Agent.create snippet for the missing signer definition.


📊 Macroscope summarized 96ecc5c. 0 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

@humanagent humanagent requested a review from a team as a code owner October 18, 2025 15:23
@vercel
Copy link

vercel bot commented Oct 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-xmtp-org Ready Ready Preview Comment Oct 27, 2025 11:20pm

@humanagent humanagent requested a review from bennycode October 18, 2025 15:25
@humanagent humanagent enabled auto-merge (squash) October 18, 2025 15:25
@humanagent humanagent disabled auto-merge October 18, 2025 15:25
@humanagent humanagent enabled auto-merge (squash) October 18, 2025 15:25
@humanagent
Copy link
Contributor Author

hey @bennycode , added a way to explain how to load an existing encryption key. needs

import { fromString } from "uint8arrays/from-string";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants