Skip to content

Commit

Permalink
Rename Session::remote_pubkey into Session::remote_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 11, 2022
1 parent 8e5eced commit 85482f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "internet2"
version = "0.8.2"
version = "0.8.3"
license = "Apache-2.0"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
description = "Rust implementation for the stack of Internet2 protocols"
Expand Down
5 changes: 2 additions & 3 deletions src/session/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -317,9 +318,7 @@ impl<const LEN_SIZE: usize>
Session<NoiseTranscoder<LEN_SIZE>, encrypted::Connection<LEN_SIZE>>
{
#[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")]
Expand Down

0 comments on commit 85482f5

Please sign in to comment.