LP-fix : add LP x25519 key to the description (#6408)

* add x25519 key in LP description

* gateway probe adapt
This commit is contained in:
Simon Wicky
2026-02-03 10:25:43 +01:00
committed by GitHub
parent af04afbe5e
commit bd755385ed
5 changed files with 26 additions and 11 deletions
@@ -210,6 +210,12 @@ pub struct LewesProtocolDetailsV1 {
/// LP UDP data address (default: 51264) for Sphinx packets wrapped in LP
pub data_port: u16,
#[serde(with = "bs58_x25519_pubkey")]
#[schemars(with = "String")]
#[schema(value_type = String)]
/// LP public key
pub x25519: x25519::PublicKey,
/// Digests of the KEM keys available to this node alongside hashing algorithms used
/// for their computation.
/// note: digests are hex encoded
@@ -457,6 +463,7 @@ impl From<nym_node_requests::api::v1::lewes_protocol::models::LewesProtocol>
enabled: value.enabled,
control_port: value.control_port,
data_port: value.data_port,
x25519: value.x25519,
kem_keys: value
.kem_keys
.into_iter()
@@ -343,6 +343,7 @@ pub fn mock_nym_node_description(seed: u64) -> NymNodeDescriptionV2 {
enabled: true,
control_port: 1234,
data_port: 2345,
x25519: *x25519.public_key(),
kem_keys: kem_hashes_wrapper,
signing_keys: signing_keys_hashes_wrapper,
}),