Skip to content

Commit

Permalink
helper: utility method for getting ed25519 identity directly from nod…
Browse files Browse the repository at this point in the history
…e description
  • Loading branch information
jstuczyn committed Oct 30, 2024
1 parent 8b5894f commit ae1086e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nym-api/nym-api-requests/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ae1086e

Please sign in to comment.