Update dbEncryptionKey setup #445
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fromStringimport fromuint8arrays/from-stringand computedbEncryptionKeyusingfromString(encryptionKey, "hex")in create-a-client.mdx.• Introduce
walletKeyandencryptionKeyconstants and replace inline literals in the first code example in create-a-client.mdx.• Update user creation to use
walletKeyand remove creation ofsignerwhile leavingsignerreferenced inAgent.createin create-a-client.mdx.• Remove the
0xprefix from theXMTP_DB_ENCRYPTION_KEYexample 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 computesdbEncryptionKeyusingfromStringin create-a-client.mdx, then review theAgent.createsnippet for the missingsignerdefinition.📊 Macroscope summarized 96ecc5c. 0 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues
No issues evaluated.