From 2e437487b0099c0708b1c06ada1aa1a439f58609 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Thu, 11 Jun 2026 21:55:18 -0700 Subject: [PATCH] refactor(exec-server): trim Noise identity surface Co-authored-by: Codex noreply@openai.com --- codex-rs/exec-server/src/noise_channel.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/codex-rs/exec-server/src/noise_channel.rs b/codex-rs/exec-server/src/noise_channel.rs index 8daef309f8..1dfc75a4e5 100644 --- a/codex-rs/exec-server/src/noise_channel.rs +++ b/codex-rs/exec-server/src/noise_channel.rs @@ -21,7 +21,7 @@ use serde::Deserialize; use serde::Serialize; /// Identifies the handshake pattern and algorithms used by this channel. -pub const NOISE_CHANNEL_SUITE: &str = "Noise_hybridIK_X25519+MLKEM768_AESGCM_SHA256"; +pub(crate) const NOISE_CHANNEL_SUITE: &str = "Noise_hybridIK_X25519+MLKEM768_AESGCM_SHA256"; type DhKeyPair = KeyPair<::PubKey, ::PrivateKey>; type KemKeyPair = KeyPair<::PubKey, ::SecretKey>; @@ -64,14 +64,6 @@ pub struct NoiseChannelIdentity { kem: KemKeyPair, } -impl std::fmt::Debug for NoiseChannelIdentity { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - f.debug_struct("NoiseChannelIdentity") - .field("public_key", &self.public_key()) - .finish_non_exhaustive() - } -} - impl NoiseChannelIdentity { pub fn generate() -> Result { let dh = X25519::genkey()