pub(crate) fn is_compatible(&self, private_key: &CryptoPrivateKey) -> bool {
        match &private_key.kind {
            CryptoPrivateKeyKind::ED25519(_) => self.signature == SignatureAlgorithm::Ed25519,
            CryptoPrivateKeyKind::ECDSA256(_) => self.signature == SignatureAlgorithm::ECDSA,
            CryptoPrivateKeyKind::RSA256(_) => self.signature == SignatureAlgorithm::RSA,
        }
    }
// is_compatible checks that given private key is compatible with the signature scheme.
is_compatible checks that given private key is compatible with the signature scheme.
is_compatible checks that given private key is compatible with the signature scheme .
pub(crate) fn is_compatible(&self, private_key: &CryptoPrivateKey) -> bool {
        match &private_key.kind {
            CryptoPrivateKeyKind::ED25519(_) => self.signature == SignatureAlgorithm::Ed25519,
            CryptoPrivateKeyKind::ECDSA256(_) => self.signature == SignatureAlgorithm::ECDSA,
            CryptoPrivateKeyKind::RSA256(_) => self.signature == SignatureAlgorithm::RSA,
        }
    }
pub ( crate ) fn is_compatible ( & self , private_key : & CryptoPrivateKey ) -> bool { match & private_key . kind { CryptoPrivateKeyKind :: ED25519 ( _ ) => self . signature == SignatureAlgorithm :: Ed25519 , CryptoPrivateKeyKind :: ECDSA256 ( _ ) => self . signature == SignatureAlgorithm :: ECDSA , CryptoPrivateKeyKind :: RSA256 ( _ ) => self . signature == SignatureAlgorithm :: RSA , } }
is_compatible checks that given private key is compatible with the signature scheme.
is_compatible checks that given private key is compatible with the signature scheme .
&self
private_key
&CryptoPrivateKey
&self
private_key
&CryptoPrivateKey