Trait tor_linkspec::ChanTarget
source · [−]pub trait ChanTarget {
fn addrs(&self) -> &[SocketAddr];
fn ed_identity(&self) -> &Ed25519Identity;
fn rsa_identity(&self) -> &RsaIdentity;
fn ed_identity_key(&self) -> Option<PublicKey> { ... }
}
Expand description
Information about a Tor relay used to connect to it.
Anything that implements ‘ChanTarget’ can be used as the identity of a relay for the purposes of launching a new channel.
Required Methods
fn addrs(&self) -> &[SocketAddr]
fn addrs(&self) -> &[SocketAddr]
Return the addresses at which you can connect to this relay
fn ed_identity(&self) -> &Ed25519Identity
fn ed_identity(&self) -> &Ed25519Identity
Return the ed25519 identity for this relay.
fn rsa_identity(&self) -> &RsaIdentity
fn rsa_identity(&self) -> &RsaIdentity
Return the RSA identity for this relay.
Provided Methods
fn ed_identity_key(&self) -> Option<PublicKey>
fn ed_identity_key(&self) -> Option<PublicKey>
Return the ed25519 identity key for this relay, if it is valid.
This can be costly.