Loading crates/tor-dirmgr/src/authority.rs +1 −9 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use derive_builder::Builder; use serde::Deserialize; use tor_llcrypto::pk::rsa::RsaIdentity; use tor_netdoc::doc::authcert::{AuthCert, AuthCertKeyIds}; use tor_netdoc::doc::authcert::AuthCertKeyIds; /// A single authority that signs a consensus directory. // Loading @@ -33,10 +33,6 @@ impl Authority { pub fn builder() -> AuthorityBuilder { AuthorityBuilder::default() } /// Return the (human-readable) name for this authority. pub fn name(&self) -> &str { self.name.as_ref() } /// Return the v3 identity key of this certificate. /// /// This is the identity of the >=2048-bit RSA key that the Loading @@ -45,10 +41,6 @@ impl Authority { pub fn v3ident(&self) -> &RsaIdentity { &self.v3ident } /// Return true if this authority matches a given certificate. pub fn matches_cert(&self, cert: &AuthCert) -> bool { &self.v3ident == cert.id_fingerprint() } /// Return true if this authority matches a given key ID. pub fn matches_keyid(&self, id: &AuthCertKeyIds) -> bool { Loading Loading
crates/tor-dirmgr/src/authority.rs +1 −9 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use derive_builder::Builder; use serde::Deserialize; use tor_llcrypto::pk::rsa::RsaIdentity; use tor_netdoc::doc::authcert::{AuthCert, AuthCertKeyIds}; use tor_netdoc::doc::authcert::AuthCertKeyIds; /// A single authority that signs a consensus directory. // Loading @@ -33,10 +33,6 @@ impl Authority { pub fn builder() -> AuthorityBuilder { AuthorityBuilder::default() } /// Return the (human-readable) name for this authority. pub fn name(&self) -> &str { self.name.as_ref() } /// Return the v3 identity key of this certificate. /// /// This is the identity of the >=2048-bit RSA key that the Loading @@ -45,10 +41,6 @@ impl Authority { pub fn v3ident(&self) -> &RsaIdentity { &self.v3ident } /// Return true if this authority matches a given certificate. pub fn matches_cert(&self, cert: &AuthCert) -> bool { &self.v3ident == cert.id_fingerprint() } /// Return true if this authority matches a given key ID. pub fn matches_keyid(&self, id: &AuthCertKeyIds) -> bool { Loading