diff --git a/Cargo.lock b/Cargo.lock index 87ca77e..4823664 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -711,7 +711,7 @@ dependencies = [ [[package]] name = "internet2" -version = "0.8.2" +version = "0.8.3" dependencies = [ "amplify", "bitcoin_hashes", diff --git a/Cargo.toml b/Cargo.toml index f833349..7d77de4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "internet2" -version = "0.8.2" +version = "0.8.3" license = "Apache-2.0" authors = ["Dr. Maxim Orlovsky "] description = "Rust implementation for the stack of Internet2 protocols" diff --git a/src/session/session.rs b/src/session/session.rs index 7dcbd8e..6737ea7 100644 --- a/src/session/session.rs +++ b/src/session/session.rs @@ -17,6 +17,7 @@ use std::net::TcpListener; #[cfg(feature = "keygen")] use addr::NodeAddr; +use addr::NodeId; use amplify::Bipolar; #[cfg(feature = "keygen")] use inet2_addr::InetSocketAddr; @@ -317,9 +318,7 @@ impl Session, encrypted::Connection> { #[inline] - pub fn remote_pubkey(&self) -> secp256k1::PublicKey { - self.transcoder.remote_pubkey() - } + pub fn remote_id(&self) -> NodeId { self.transcoder.remote_pubkey().into() } } #[cfg(feature = "keygen")]