All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.signalservice.api.account.PreKeyCollection.kt Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
/*
 * Copyright 2023 Signal Messenger, LLC
 * SPDX-License-Identifier: AGPL-3.0-only
 */

package org.whispersystems.signalservice.api.account

import org.signal.libsignal.protocol.IdentityKey
import org.signal.libsignal.protocol.state.KyberPreKeyRecord
import org.signal.libsignal.protocol.state.SignedPreKeyRecord

/**
 * Holder class to pass around a bunch of prekeys that we send off to the service during registration.
 * As the service does not return the submitted prekeys, we need to hold them in memory so that when
 * the service approves the keys we have a local copy to persist.
 */
data class PreKeyCollection(
  val identityKey: IdentityKey,
  val signedPreKey: SignedPreKeyRecord,
  val lastResortKyberPreKey: KyberPreKeyRecord
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy