mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
net/transport/tls | crypto/constants : Match the order of impl members with the trait
This commit is contained in:
@@ -71,10 +71,6 @@ fn validate_dnsname(cert: &X509Certificate) -> std::result::Result<(), rustls::E
|
||||
#[derive(Debug)]
|
||||
struct ServerCertificateVerifier;
|
||||
impl ServerCertVerifier for ServerCertificateVerifier {
|
||||
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
|
||||
vec![SignatureScheme::ED25519]
|
||||
}
|
||||
|
||||
fn verify_server_cert(
|
||||
&self,
|
||||
end_entity: &CertificateDer,
|
||||
@@ -151,20 +147,20 @@ impl ServerCertVerifier for ServerCertificateVerifier {
|
||||
|
||||
Ok(HandshakeSignatureValid::assertion())
|
||||
}
|
||||
|
||||
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
|
||||
vec![SignatureScheme::ED25519]
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct ClientCertificateVerifier;
|
||||
impl ClientCertVerifier for ClientCertificateVerifier {
|
||||
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
|
||||
vec![SignatureScheme::ED25519]
|
||||
}
|
||||
|
||||
fn client_auth_mandatory(&self) -> bool {
|
||||
fn offer_client_auth(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn offer_client_auth(&self) -> bool {
|
||||
fn client_auth_mandatory(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
@@ -246,6 +242,10 @@ impl ClientCertVerifier for ClientCertificateVerifier {
|
||||
|
||||
Ok(HandshakeSignatureValid::assertion())
|
||||
}
|
||||
|
||||
fn supported_verify_schemes(&self) -> Vec<SignatureScheme> {
|
||||
vec![SignatureScheme::ED25519]
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TlsUpgrade {
|
||||
|
||||
@@ -133,8 +133,8 @@ impl ConstBaseFieldElement {
|
||||
|
||||
impl FixedPoints<pallas::Affine> for OrchardFixedBases {
|
||||
type FullScalar = OrchardFixedBasesFull;
|
||||
type Base = ConstBaseFieldElement;
|
||||
type ShortScalar = ValueCommitV;
|
||||
type Base = ConstBaseFieldElement;
|
||||
}
|
||||
|
||||
impl FixedPoint<pallas::Affine> for OrchardFixedBasesFull {
|
||||
|
||||
Reference in New Issue
Block a user