LP: announced KEM key hashes (#6349)

* announce KEM key hashes and use generated value within LpStateMachine

* added digest of remote KEM key into LpSession

* changed  constructor to LpSession to take explicit key materials for local and remote

this makes it easier to change keys required by each party without having to change all the interfaces everywhere again

* extended the changes to LpStateMachine constructor

* modify the interface to LpRegistrationHandler and LpListener

* gateway probe fixes

* temp nym-lp-client fixes

* review nits

* remove network test

* introduced v2/nym-nodes/described endpoint for returning nodes description alongside LP data

* missed V1 -> V2 description replacements

* removed deprecated call within mix-fetch

* use old v1 call in network stats
This commit is contained in:
Jędrzej Stuczyński
2026-01-22 14:29:33 +00:00
committed by GitHub
parent 7462926bcf
commit c1ddcc75cf
75 changed files with 2930 additions and 2334 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::mixnet_contract_cache::cache::data::ConfigScoreData;
use nym_api_requests::models::{ConfigScore, NymNodeDescription};
use nym_api_requests::models::{ConfigScore, NymNodeDescriptionV2};
use nym_contracts_common::NaiveFloat;
use nym_mixnet_contract_common::VersionScoreFormulaParams;
@@ -19,7 +19,7 @@ fn versions_behind_factor_to_config_score(
pub(crate) fn calculate_config_score(
config_score_data: &ConfigScoreData,
described_data: Option<&NymNodeDescription>,
described_data: Option<&NymNodeDescriptionV2>,
) -> ConfigScore {
let Some(described) = described_data else {
return ConfigScore::unavailable();