[Feature] Noise XKpsk3 integration (2025 version) (#5692)

* grand Noise squaheroo

* fix merge conflicts and adapt code for the key rotation changes (#5824)

* remove file that should have been ignored
This commit is contained in:
Simon Wicky
2025-06-05 11:34:55 +02:00
committed by GitHub
parent be16fddc75
commit 8ba58ba11e
45 changed files with 2077 additions and 94 deletions
@@ -55,7 +55,7 @@ pub(crate) async fn host_information(
rotation_id: primary_key.rotation_id(),
public_key: primary_pubkey,
},
x25519_noise: state.static_information.x25519_noise_key,
x25519_versioned_noise: state.static_information.x25519_versioned_noise_key,
pre_announced_x25519_sphinx_key: pre_announced,
},
};
+3 -2
View File
@@ -4,8 +4,9 @@
use crate::node::http::state::load::CachedNodeLoad;
use crate::node::http::state::metrics::MetricsAppState;
use crate::node::key_rotation::active_keys::ActiveSphinxKeys;
use nym_crypto::asymmetric::{ed25519, x25519};
use nym_crypto::asymmetric::ed25519;
use nym_node_metrics::NymNodeMetrics;
use nym_noise_keys::VersionedNoiseKey;
use nym_verloc::measurements::SharedVerlocStats;
use std::net::IpAddr;
use std::sync::Arc;
@@ -17,7 +18,7 @@ pub mod metrics;
pub(crate) struct StaticNodeInformation {
pub(crate) ed25519_identity_keys: Arc<ed25519::KeyPair>,
pub(crate) x25519_noise_key: Option<x25519::PublicKey>,
pub(crate) x25519_versioned_noise_key: Option<VersionedNoiseKey>,
pub(crate) ip_addresses: Vec<IpAddr>,
pub(crate) hostname: Option<String>,
}