/// Return the algorithm identifier of this public key
Return the algorithm identifier of this public key
Return the algorithm identifier of this public key
pub fn algorithm_id(&self) -> AlgorithmId {
        match self {
            CspPublicKey::EcdsaSecp256k1(_) => AlgorithmId::EcdsaSecp256k1,
            CspPublicKey::EcdsaP256(_) => AlgorithmId::EcdsaP256,
            CspPublicKey::Ed25519(_) => AlgorithmId::Ed25519,
            CspPublicKey::MultiBls12_381(_) => AlgorithmId::MultiBls12_381,
            CspPublicKey::RsaSha256(_) => AlgorithmId::RsaSha256,
        }
    }
pub fn algorithm_id ( & self ) -> AlgorithmId { match self { CspPublicKey :: EcdsaSecp256k1 ( _ ) => AlgorithmId :: EcdsaSecp256k1 , CspPublicKey :: EcdsaP256 ( _ ) => AlgorithmId :: EcdsaP256 , CspPublicKey :: Ed25519 ( _ ) => AlgorithmId :: Ed25519 , CspPublicKey :: MultiBls12_381 ( _ ) => AlgorithmId :: MultiBls12_381 , CspPublicKey :: RsaSha256 ( _ ) => AlgorithmId :: RsaSha256 , } }
Return the algorithm identifier of this public key
Return the algorithm identifier of this public key
&self