From ae1086eeba8434dab70b2e0bb051d54cda69f29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Wed, 30 Oct 2024 11:55:38 +0000 Subject: [PATCH] helper: utility method for getting ed25519 identity directly from node description --- nym-api/nym-api-requests/src/models.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nym-api/nym-api-requests/src/models.rs b/nym-api/nym-api-requests/src/models.rs index 93e9be195d2..a1bf8182e28 100644 --- a/nym-api/nym-api-requests/src/models.rs +++ b/nym-api/nym-api-requests/src/models.rs @@ -852,6 +852,10 @@ impl NymNodeDescription { } } + pub fn ed25519_identity_key(&self) -> ed25519::PublicKey { + self.description.host_information.keys.ed25519 + } + pub fn to_skimmed_node(&self, role: NodeRole, performance: Performance) -> SkimmedNode { let keys = &self.description.host_information.keys; let entry = if self.description.declared_role.entry {