@wireapp/core 40.5.5-draft-20-cc.0 → 40.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts +2 -3
- package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +1 -1
- package/lib/messagingProtocols/mls/MLSService/MLSService.js +11 -10
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts +1 -1
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts.map +1 -1
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.js +5 -5
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.test.js +3 -3
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import { Subconversation } from '@wireapp/api-client/lib/conversation/Subconvers
|
|
|
3
3
|
import { QualifiedId } from '@wireapp/api-client/lib/user';
|
|
4
4
|
import logdown from 'logdown';
|
|
5
5
|
import { APIClient } from '@wireapp/api-client';
|
|
6
|
-
import { AddProposalArgs, ConversationId, CoreCrypto, DecryptedMessage, ExternalAddProposalArgs, ExternalProposalType, Invitee, ProposalArgs, ProposalType, RemoveProposalArgs } from '@wireapp/core-crypto';
|
|
6
|
+
import { AddProposalArgs, ConversationId, CoreCrypto, DecryptedMessage, ExternalAddProposalArgs, ExternalProposalType, ExternalRemoveProposalArgs, Invitee, ProposalArgs, ProposalType, RemoveProposalArgs } from '@wireapp/core-crypto';
|
|
7
7
|
import { MLSServiceConfig } from './MLSService.types';
|
|
8
8
|
import { KeyPackageClaimUser } from '../../../conversation';
|
|
9
9
|
import { TypedEventEmitter } from '../../../util/TypedEventEmitter';
|
|
@@ -30,7 +30,6 @@ export declare class MLSService extends TypedEventEmitter<Events> {
|
|
|
30
30
|
groupIdFromConversationId?: MLSCallbacks['groupIdFromConversationId'];
|
|
31
31
|
private readonly textEncoder;
|
|
32
32
|
private readonly textDecoder;
|
|
33
|
-
private readonly defaultCiphersuite;
|
|
34
33
|
constructor(apiClient: APIClient, coreCryptoClient: CoreCrypto, { keyingMaterialUpdateThreshold, nbKeyPackages, }: Partial<MLSServiceConfig>);
|
|
35
34
|
initClient(userId: QualifiedId, clientId: string): Promise<void>;
|
|
36
35
|
createClient(userId: QualifiedId, clientId: string): Promise<void>;
|
|
@@ -68,7 +67,7 @@ export declare class MLSService extends TypedEventEmitter<Events> {
|
|
|
68
67
|
epoch: number;
|
|
69
68
|
}>;
|
|
70
69
|
exportSecretKey(groupId: string, keyLength: number): Promise<string>;
|
|
71
|
-
newExternalProposal(externalProposalType: ExternalProposalType, args: ExternalAddProposalArgs): Promise<Uint8Array>;
|
|
70
|
+
newExternalProposal(externalProposalType: ExternalProposalType, args: ExternalAddProposalArgs | ExternalRemoveProposalArgs): Promise<Uint8Array>;
|
|
72
71
|
processWelcomeMessage(welcomeMessage: Uint8Array): Promise<ConversationId>;
|
|
73
72
|
decryptMessage(conversationId: ConversationId, payload: Uint8Array): Promise<DecryptedMessage>;
|
|
74
73
|
encryptMessage(conversationId: ConversationId, message: Uint8Array): Promise<Uint8Array>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MLSService.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/MLSService/MLSService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,sBAAsB,EAAE,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAC,eAAe,EAAC,MAAM,sDAAsD,CAAC;AACrF,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAIzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EACL,eAAe,EAIf,cAAc,EACd,UAAU,EAEV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CA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sCAAsC;IAI9C;;;OAGG;IACI,uBAAuB,CAAC,OAAO,EAAE,MAAM;IAK9C;;;OAGG;IACI,wBAAwB,CAAC,OAAO,EAAE,MAAM;IAI/C;;;OAGG;IACI,0BAA0B,CAAC,OAAO,EAAE,MAAM;IAUjD;;;OAGG;IACI,mCAAmC,CAAC,QAAQ,EAAE,MAAM,EAAE;IAQ7D;;;OAGG;IACI,8BAA8B;YAQvB,eAAe;IAmB7B;;;;;OAKG;YACW,mBAAmB;YAMnB,oBAAoB;IAOrB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYhD,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GAAG,kBAAkB;IAW5F;;;;;OAKG;IACU,4BAA4B,CACvC,uBAAuB,EAAE,WAAW,EACpC,iBAAiB,CAAC,EAAE,kBAAkB,GACrC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAQ9B;;;;;;;OAOG;IACU,sBAAsB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAC,EAAE,4BAA4B;IAoBjG;;;;;OAKG;IACU,sBAAsB,CAAC,EAAC,OAAO,EAAE,UAAkB,EAAC,EAAE,4BAA4B;IAa/F;;;;OAIG;IACU,6BAA6B;IAiB1C;;;;OAIG;IACU,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;CAW1G"}
|
|
@@ -40,6 +40,7 @@ const bazinga64_1 = require("bazinga64");
|
|
|
40
40
|
const logdown_1 = __importDefault(require("logdown"));
|
|
41
41
|
const commons_1 = require("@wireapp/commons");
|
|
42
42
|
const core_crypto_1 = require("@wireapp/core-crypto");
|
|
43
|
+
const commitBundleUtil_1 = require("./commitBundleUtil");
|
|
43
44
|
const pendingProposalsStore_1 = require("./stores/pendingProposalsStore");
|
|
44
45
|
const subconversationGroupIdStore_1 = require("./stores/subconversationGroupIdStore/subconversationGroupIdStore");
|
|
45
46
|
const messageSender_1 = require("../../../conversation/message/messageSender");
|
|
@@ -66,7 +67,6 @@ class MLSService extends TypedEventEmitter_1.TypedEventEmitter {
|
|
|
66
67
|
this.logger = (0, logdown_1.default)('@wireapp/core/MLSService');
|
|
67
68
|
this.textEncoder = new TextEncoder();
|
|
68
69
|
this.textDecoder = new TextDecoder();
|
|
69
|
-
this.defaultCiphersuite = core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519;
|
|
70
70
|
this.config = {
|
|
71
71
|
keyingMaterialUpdateThreshold,
|
|
72
72
|
nbKeyPackages,
|
|
@@ -74,21 +74,22 @@ class MLSService extends TypedEventEmitter_1.TypedEventEmitter {
|
|
|
74
74
|
}
|
|
75
75
|
async initClient(userId, clientId) {
|
|
76
76
|
const qualifiedClientId = (0, fullyQualifiedClientIdUtils_1.constructFullyQualifiedClientId)(userId.id, clientId, userId.domain);
|
|
77
|
-
await this.coreCryptoClient.mlsInit(this.textEncoder.encode(qualifiedClientId), [
|
|
77
|
+
await this.coreCryptoClient.mlsInit(this.textEncoder.encode(qualifiedClientId), [
|
|
78
|
+
core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519,
|
|
79
|
+
]);
|
|
78
80
|
}
|
|
79
81
|
async createClient(userId, clientId) {
|
|
80
82
|
await this.initClient(userId, clientId);
|
|
81
83
|
// If the device is new, we need to upload keypackages and public key to the backend
|
|
82
|
-
const publicKey = await this.coreCryptoClient.clientPublicKey(
|
|
83
|
-
const keyPackages = await this.coreCryptoClient.clientKeypackages(
|
|
84
|
+
const publicKey = await this.coreCryptoClient.clientPublicKey(core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519);
|
|
85
|
+
const keyPackages = await this.coreCryptoClient.clientKeypackages(core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519, this.config.nbKeyPackages);
|
|
84
86
|
await this.uploadMLSPublicKeys(publicKey, clientId);
|
|
85
87
|
await this.uploadMLSKeyPackages(keyPackages, clientId);
|
|
86
88
|
}
|
|
87
89
|
async uploadCommitBundle(groupId, commitBundle, { regenerateCommitBundle, isExternalCommit } = {}) {
|
|
88
|
-
const
|
|
89
|
-
const bundlePayload = new Uint8Array([...commit, ...groupInfo.payload, ...(welcome || [])]);
|
|
90
|
+
const bundlePayload = (0, commitBundleUtil_1.toProtobufCommitBundle)(commitBundle);
|
|
90
91
|
try {
|
|
91
|
-
const response = await this.apiClient.api.conversation.postMlsCommitBundle(bundlePayload);
|
|
92
|
+
const response = await this.apiClient.api.conversation.postMlsCommitBundle(bundlePayload.slice());
|
|
92
93
|
if (isExternalCommit) {
|
|
93
94
|
await this.coreCryptoClient.mergePendingGroupFromExternalCommit(groupId);
|
|
94
95
|
}
|
|
@@ -304,7 +305,7 @@ class MLSService extends TypedEventEmitter_1.TypedEventEmitter {
|
|
|
304
305
|
const mlsKeyBytes = Object.values(mlsKeys).map((key) => bazinga64_1.Decoder.fromBase64(key).asBytes);
|
|
305
306
|
const configuration = {
|
|
306
307
|
externalSenders: mlsKeyBytes,
|
|
307
|
-
ciphersuite:
|
|
308
|
+
ciphersuite: core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519,
|
|
308
309
|
};
|
|
309
310
|
await this.coreCryptoClient.createConversation(groupIdBytes, core_crypto_1.CredentialType.Basic, configuration);
|
|
310
311
|
const keyPackages = await this.getKeyPackagesPayload(users.map(user => {
|
|
@@ -343,10 +344,10 @@ class MLSService extends TypedEventEmitter_1.TypedEventEmitter {
|
|
|
343
344
|
return this.coreCryptoClient.conversationExists(groupIdBytes);
|
|
344
345
|
}
|
|
345
346
|
async clientValidKeypackagesCount() {
|
|
346
|
-
return this.coreCryptoClient.clientValidKeypackagesCount(
|
|
347
|
+
return this.coreCryptoClient.clientValidKeypackagesCount(core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519);
|
|
347
348
|
}
|
|
348
349
|
async clientKeypackages(amountRequested) {
|
|
349
|
-
return this.coreCryptoClient.clientKeypackages(
|
|
350
|
+
return this.coreCryptoClient.clientKeypackages(core_crypto_1.Ciphersuite.MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519, amountRequested);
|
|
350
351
|
}
|
|
351
352
|
/**
|
|
352
353
|
* Renew key material for a given groupId
|
|
@@ -4,5 +4,5 @@ import { CommitBundle } from '@wireapp/core-crypto';
|
|
|
4
4
|
* @param commitBundle a commit bundle generated by coreCrypto
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare function toProtobufCommitBundle({ commit, welcome,
|
|
7
|
+
export declare function toProtobufCommitBundle({ commit, welcome, publicGroupState }: CommitBundle): Uint8Array;
|
|
8
8
|
//# sourceMappingURL=commitBundleUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commitBundleUtil.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/MLSService/commitBundleUtil.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"commitBundleUtil.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/MLSService/commitBundleUtil.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,YAAY,EAAkD,MAAM,sBAAsB,CAAC;AAYnG;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAC,EAAE,YAAY,GAAG,UAAU,CAWpG"}
|
|
@@ -27,20 +27,20 @@ const ratchetTreeMapping = {
|
|
|
27
27
|
[core_crypto_1.RatchetTreeType.Delta]: mls_1.mls.RatchetTreeType.DELTA,
|
|
28
28
|
};
|
|
29
29
|
const groupInfoType = {
|
|
30
|
-
[core_crypto_1.
|
|
31
|
-
[core_crypto_1.
|
|
30
|
+
[core_crypto_1.PublicGroupStateEncryptionType.Plaintext]: mls_1.mls.GroupInfoType.PUBLIC_GROUP_STATE,
|
|
31
|
+
[core_crypto_1.PublicGroupStateEncryptionType.JweEncrypted]: mls_1.mls.GroupInfoType.GROUP_INFO_JWE,
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Will convert a coreCrypto commit bundle into a Uint8Array representing a protobuf object
|
|
35
35
|
* @param commitBundle a commit bundle generated by coreCrypto
|
|
36
36
|
* @returns
|
|
37
37
|
*/
|
|
38
|
-
function toProtobufCommitBundle({ commit, welcome,
|
|
39
|
-
const { ratchetTreeType, encryptionType } =
|
|
38
|
+
function toProtobufCommitBundle({ commit, welcome, publicGroupState }) {
|
|
39
|
+
const { ratchetTreeType, encryptionType } = publicGroupState;
|
|
40
40
|
return mls_1.mls.CommitBundle.encode({
|
|
41
41
|
groupInfoBundle: {
|
|
42
42
|
ratchetTreeType: ratchetTreeMapping[ratchetTreeType],
|
|
43
|
-
groupInfo:
|
|
43
|
+
groupInfo: publicGroupState.payload,
|
|
44
44
|
groupInfoType: groupInfoType[encryptionType],
|
|
45
45
|
},
|
|
46
46
|
commit,
|
|
@@ -27,17 +27,17 @@ describe('toProtobufCommitBundle', () => {
|
|
|
27
27
|
const payload = {
|
|
28
28
|
commit: Uint8Array.from([0]),
|
|
29
29
|
welcome: Uint8Array.from([1]),
|
|
30
|
-
|
|
30
|
+
publicGroupState: {
|
|
31
31
|
ratchetTreeType: core_crypto_1.RatchetTreeType.Full,
|
|
32
32
|
payload: Uint8Array.from([2]),
|
|
33
|
-
encryptionType: core_crypto_1.
|
|
33
|
+
encryptionType: core_crypto_1.PublicGroupStateEncryptionType.Plaintext,
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
const result = (0, commitBundleUtil_1.toProtobufCommitBundle)(payload);
|
|
37
37
|
const { commit, welcome, groupInfoBundle } = mls_1.mls.CommitBundle.decode(result);
|
|
38
38
|
expect(bazinga64_1.Encoder.toBase64(commit)).toEqual(bazinga64_1.Encoder.toBase64(payload.commit));
|
|
39
39
|
expect(bazinga64_1.Encoder.toBase64(welcome)).toEqual(bazinga64_1.Encoder.toBase64(payload.welcome));
|
|
40
|
-
expect(bazinga64_1.Encoder.toBase64(groupInfoBundle.groupInfo)).toEqual(bazinga64_1.Encoder.toBase64(payload.
|
|
40
|
+
expect(bazinga64_1.Encoder.toBase64(groupInfoBundle.groupInfo)).toEqual(bazinga64_1.Encoder.toBase64(payload.publicGroupState.payload));
|
|
41
41
|
expect(groupInfoBundle.ratchetTreeType).toEqual(mls_1.mls.RatchetTreeType.FULL);
|
|
42
42
|
expect(groupInfoBundle.groupInfoType).toEqual(mls_1.mls.GroupInfoType.PUBLIC_GROUP_STATE);
|
|
43
43
|
});
|
package/package.json
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wireapp/api-client": "^24.15.7
|
|
14
|
+
"@wireapp/api-client": "^24.15.7",
|
|
15
15
|
"@wireapp/commons": "^5.1.0",
|
|
16
|
-
"@wireapp/core-crypto": "
|
|
16
|
+
"@wireapp/core-crypto": "0.11.0",
|
|
17
17
|
"@wireapp/cryptobox": "12.8.0",
|
|
18
18
|
"@wireapp/promise-queue": "^2.2.0",
|
|
19
19
|
"@wireapp/protocol-messaging": "1.44.0",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"test:coverage": "jest --coverage",
|
|
61
61
|
"watch": "tsc --watch"
|
|
62
62
|
},
|
|
63
|
-
"version": "40.5.5
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"version": "40.5.5",
|
|
64
|
+
"gitHead": "00d10763b9ed2591b386993d625d433bcf07c30d"
|
|
65
65
|
}
|