diff --git a/libsignal-service/src/provisioning/mod.rs b/libsignal-service/src/provisioning/mod.rs index e1f296d10..115afc8a1 100644 --- a/libsignal-service/src/provisioning/mod.rs +++ b/libsignal-service/src/provisioning/mod.rs @@ -14,7 +14,7 @@ use libsignal_protocol::{ DeviceId, IdentityKey, IdentityKeyPair, PrivateKey, PublicKey, }; use prost::Message; -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use url::Url; use uuid::Uuid; use zkgroup::profiles::ProfileKey; @@ -31,7 +31,6 @@ use crate::{ HttpAuth, LinkAccountAttributes, LinkCapabilities, LinkRequest, LinkResponse, PushService, ServiceIds, }, - utils::serde_base64, }; pub use crate::proto::{ @@ -102,20 +101,6 @@ pub fn generate_registration_id( csprng.gen_range(1..16380) } -/// Message received when linking a new secondary device. -#[derive(Debug, Serialize)] -#[serde(rename_all = "camelCase")] -pub(crate) struct ConfirmDeviceMessage { - #[serde(with = "serde_base64")] - pub signaling_key: Vec, - pub supports_sms: bool, - pub fetches_messages: bool, - pub registration_id: u32, - pub pni_registration_id: u32, - #[serde(with = "serde_base64", skip_serializing_if = "Vec::is_empty")] - pub name: Vec, -} - #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct ConfirmCodeResponse {