Skip to content

Commit ea9a80e

Browse files
authored
runfix: rename system crypto config (#4531)
BREAKING CHANGE: global window object config - rename secretsCrypto to systemCrypto
1 parent 828135a commit ea9a80e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/src/main/Account.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ export class Account<T = any> extends EventEmitter {
441441
const {CoreCrypto} = await import('@wireapp/core-crypto');
442442
const dbName = this.generateSecretsDbName(context);
443443

444-
const secretStore = mlsConfig.secretsCrypto
445-
? await createCustomEncryptedStore(dbName, mlsConfig.secretsCrypto)
444+
const secretStore = mlsConfig.systemCrypto
445+
? await createCustomEncryptedStore(dbName, mlsConfig.systemCrypto)
446446
: await createEncryptedStore(dbName);
447447

448448
let key = await secretStore.getsecretValue(coreCryptoKeyId);

packages/core/src/main/mls/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface MLSConfig<T = any> {
4040
* encrypt/decrypt function pair that will be called before storing/fetching secrets in the secrets database.
4141
* If not provided will use the built in encryption mechanism
4242
*/
43-
secretsCrypto?: SecretCrypto<T>;
43+
systemCrypto?: SecretCrypto<T>;
4444

4545
/**
4646
* path on the public server to the core crypto wasm file.

0 commit comments

Comments
 (0)