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

Return the addresses at which you can connect to this relay

Return the ed25519 identity for this relay.

Return the RSA identity for this relay.

Provided Methods

Return the ed25519 identity key for this relay, if it is valid.

This can be costly.

Implementors