refactor(exec-server): trim Noise identity surface

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-06-11 21:55:18 -07:00
co-authored by Codex noreply@openai.com
parent fb051b7ea0
commit 2e437487b0
+1 -9
View File
@@ -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<<X25519 as Dh>::PubKey, <X25519 as Dh>::PrivateKey>;
type KemKeyPair = KeyPair<<MlKem768 as Kem>::PubKey, <MlKem768 as Kem>::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<Self, NoiseChannelError> {
let dh = X25519::genkey()