Trait tor_linkspec::HasRelayIdsLegacy

source ·
pub trait HasRelayIdsLegacy {
    // Required methods
    fn ed_identity(&self) -> &Ed25519Identity;
    fn rsa_identity(&self) -> &RsaIdentity;
}
Expand description

Legacy implementation helper for HasRelayIds.

Previously, we assumed that everything had these two identity types, which is not an assumption we want to keep making in the future.

Required Methods§

source

fn ed_identity(&self) -> &Ed25519Identity

Return the ed25519 identity for this relay.

source

fn rsa_identity(&self) -> &RsaIdentity

Return the RSA identity for this relay.

Implementors§