Skip to content

Commit

Permalink
Merge pull request #373 from xmtp/np/require-encryption-key
Browse files Browse the repository at this point in the history
Require encryption key explicitly
  • Loading branch information
nplasterer authored Apr 25, 2024
2 parents 878585d + 16f5ac5 commit efdf49f
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 118 deletions.
6 changes: 6 additions & 0 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,17 @@ test('can make a MLS V3 client from bundle', async () => {
})

test('production MLS V3 client creation throws error', async () => {
const key = new Uint8Array([
233, 120, 198, 96, 154, 65, 132, 17, 132, 96, 250, 40, 103, 35, 125, 64,
166, 83, 208, 224, 254, 44, 205, 227, 175, 49, 234, 129, 74, 252, 135, 145,
])

try {
await Client.createRandom({
env: 'production',
appVersion: 'Testing/0.0.0',
enableAlphaMls: true,
dbEncryptionKey: key,
})
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (error) {
Expand Down
Loading

0 comments on commit efdf49f

Please sign in to comment.