generateKeyPackages

suspend fun generateKeyPackages(amount: UInt, ciphersuite: Ciphersuite = Ciphersuite.DEFAULT, credentialType: CredentialType = CredentialType.DEFAULT): List<MLSKeyPackage>

Generates the requested number of KeyPackages ON TOP of the existing ones e.g. if you already have created 100 KeyPackages (default value), requesting 10 will return the 10 oldest. Otherwise, if you request 200, 100 new will be generated. Unless explicitly deleted, KeyPackages are deleted upon processWelcomeMessage

Parameters

amount

required amount

ciphersuite

of the KeyPackage to create

credentialType

of the KeyPackage to create