@@ -282,45 +282,6 @@ export class CoreCryptoContext {
282282 ) ;
283283 }
284284
285- /**
286- *
287- * @param ciphersuite - of the KeyPackages to count
288- * @param credentialType - of the KeyPackages to count
289- * @returns The amount of valid, non-expired KeyPackages that are persisted in the backing storage
290- */
291- async clientValidKeypackagesCount (
292- ciphersuite : Ciphersuite ,
293- credentialType : CredentialType
294- ) : Promise < number > {
295- const kpCount = await CoreCryptoError . asyncMapErr (
296- this . #ctx. clientValidKeypackagesCount ( ciphersuite , credentialType )
297- ) ;
298- return safeBigintToNumber ( kpCount ) ;
299- }
300-
301- /**
302- * Fetches a requested amount of keypackages
303- *
304- * @param ciphersuite - of the KeyPackages to generate
305- * @param credentialType - of the KeyPackages to generate
306- * @param amountRequested - The amount of keypackages requested
307- * @returns An array of length `amountRequested` containing TLS-serialized KeyPackages
308- */
309- async clientKeypackages (
310- ciphersuite : Ciphersuite ,
311- credentialType : CredentialType ,
312- amountRequested : number
313- ) : Promise < Array < ArrayBuffer > > {
314- const kps = await CoreCryptoError . asyncMapErr (
315- this . #ctx. clientKeypackages (
316- ciphersuite ,
317- credentialType ,
318- amountRequested
319- )
320- ) ;
321- return kps . map ( ( kp ) => kp . serialize ( ) ) ;
322- }
323-
324285 /**
325286 * Adds new clients to a conversation, assuming the current client has the right to add new clients to the conversation.
326287 *
@@ -899,17 +860,6 @@ export class CoreCryptoContext {
899860 ) ;
900861 }
901862
902- /**
903- * Deletes all key packages whose credential does not match the most recently
904- * saved x509 credential and the provided signature scheme.
905- * @param ciphersuite
906- */
907- async deleteStaleKeyPackages ( ciphersuite : Ciphersuite ) : Promise < void > {
908- return await CoreCryptoError . asyncMapErr (
909- this . #ctx. deleteStaleKeyPackages ( ciphersuite )
910- ) ;
911- }
912-
913863 /**
914864 * Allows persisting an active enrollment (for example while redirecting the user during OAuth) in order to resume
915865 * it later with {@link e2eiEnrollmentStashPop}
0 commit comments