Skip to content

Commit ad9a6b8

Browse files
committed
feat!: crypto-ffi: bindings: remove mlsGenerateKeypairs
This is not used by clients. And it should not be used.
1 parent 625cbec commit ad9a6b8

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

crypto-ffi/bindings/js/src/CoreCryptoContext.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,6 @@ export class CoreCryptoContext {
9191
);
9292
}
9393

94-
/**
95-
* Generates a MLS KeyPair/CredentialBundle with a temporary, random client ID.
96-
* This method is designed to be used in conjunction with {@link CoreCryptoContext.mlsInitWithClientId} and represents the first step in this process
97-
*
98-
* @param ciphersuites - All the ciphersuites supported by this MLS client
99-
* @returns This returns the TLS-serialized identity key (i.e. the signature keypair's public key)
100-
*/
101-
async mlsGenerateKeypair(
102-
ciphersuites: Ciphersuite[]
103-
): Promise<Uint8Array[]> {
104-
const cs = new CiphersuitesFfi(
105-
Uint16Array.from(ciphersuites.map((cs) => cs.valueOf()))
106-
);
107-
const kps = await CoreCryptoError.asyncMapErr(
108-
this.#ctx.mls_generate_keypairs(cs)
109-
);
110-
return kps.map((kp) => kp.as_bytes());
111-
}
112-
11394
/**
11495
* Checks if the Client is member of a given conversation and if the MLS Group is loaded up
11596
*

crypto-ffi/bindings/jvm/src/main/kotlin/com/wire/crypto/CoreCryptoContext.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,6 @@ class CoreCryptoContext(private val cc: com.wire.crypto.uniffi.CoreCryptoContext
4545
wrapException { cc.mlsInit(id.lower(), ciphersuites.lower(), nbKeyPackage) }
4646
}
4747

48-
/**
49-
* Generates a MLS KeyPair/CredentialBundle with a temporary, random client ID. This method is
50-
* designed to be used in conjunction with [mlsInitWithClientId] and represents the first step
51-
* in this process
52-
*
53-
* @param ciphersuites - All the ciphersuites supported by this MLS client
54-
* @return a list of random ClientId to use in [mlsInitWithClientId]
55-
*/
56-
suspend fun mlsGenerateKeypairs(
57-
ciphersuites: Ciphersuites = Ciphersuites.DEFAULT
58-
): ExternallyGeneratedHandle {
59-
return wrapException { cc.mlsGenerateKeypairs(ciphersuites.lower()).toExternallyGeneratedHandle() }
60-
}
61-
6248
/**
6349
* Get the client's public signature key. To upload to the DS for further backend side
6450
* validation

0 commit comments

Comments
 (0)