pub fn algorithm(&self) -> AlgorithmId {
        match self {
            CspSignature::EcdsaP256(_) => AlgorithmId::EcdsaP256,
            CspSignature::EcdsaSecp256k1(_) => AlgorithmId::EcdsaSecp256k1,
            CspSignature::Ed25519(_) => AlgorithmId::Ed25519,
            CspSignature::MultiBls12_381(_) => AlgorithmId::MultiBls12_381,
            CspSignature::ThresBls12_381(_) => AlgorithmId::ThresBls12_381,
            CspSignature::RsaSha256(_) => AlgorithmId::RsaSha256,
        }
    }
/// Return what algorithm was used to generate this signature
Return what algorithm was used to generate this signature
Return what algorithm was used to generate this signature
pub fn algorithm(&self) -> AlgorithmId {
        match self {
            CspSignature::EcdsaP256(_) => AlgorithmId::EcdsaP256,
            CspSignature::EcdsaSecp256k1(_) => AlgorithmId::EcdsaSecp256k1,
            CspSignature::Ed25519(_) => AlgorithmId::Ed25519,
            CspSignature::MultiBls12_381(_) => AlgorithmId::MultiBls12_381,
            CspSignature::ThresBls12_381(_) => AlgorithmId::ThresBls12_381,
            CspSignature::RsaSha256(_) => AlgorithmId::RsaSha256,
        }
    }
pub fn algorithm ( & self ) -> AlgorithmId { match self { CspSignature :: EcdsaP256 ( _ ) => AlgorithmId :: EcdsaP256 , CspSignature :: EcdsaSecp256k1 ( _ ) => AlgorithmId :: EcdsaSecp256k1 , CspSignature :: Ed25519 ( _ ) => AlgorithmId :: Ed25519 , CspSignature :: MultiBls12_381 ( _ ) => AlgorithmId :: MultiBls12_381 , CspSignature :: ThresBls12_381 ( _ ) => AlgorithmId :: ThresBls12_381 , CspSignature :: RsaSha256 ( _ ) => AlgorithmId :: RsaSha256 , } }
Return what algorithm was used to generate this signature
Return what algorithm was used to generate this signature
&self
&self