bootstrapCrossSigning

abstract suspend fun bootstrapCrossSigning(recoveryKey: ByteArray = SecureRandom.nextBytes(32), secretKeyEventContentGenerator: suspend () -> SecretKeyEventContent = { val iv = SecureRandom.nextBytes(16) AesHmacSha2Key( iv = iv.encodeBase64(), mac = createAesHmacSha2MacFromKey(recoveryKey, iv) ) }): KeyService.BootstrapCrossSigning

This allows you to bootstrap cross signing. Be aware, that this could override an existing cross signing setup of the account. Be aware, that this also creates a new key backup, which could replace an existing key backup.