/// Return the algorithm identifier of this secret key
Return the algorithm identifier of this secret key
Return the algorithm identifier of this secret key
pub fn algorithm_id(&self) -> AlgorithmId {
        match self {
            Self::Ed25519(_) => AlgorithmId::Ed25519,
            Self::MultiBls12_381(_) => AlgorithmId::MultiBls12_381,
            Self::ThresBls12_381(_) => AlgorithmId::ThresBls12_381,
            Self::Secp256k1WithPublicKey(_) => AlgorithmId::Secp256k1,
            Self::TlsEd25519(_) => AlgorithmId::Ed25519,
            Self::FsEncryption(_) => AlgorithmId::NiDkg_Groth20_Bls12_381,
            Self::MEGaEncryptionK256(_) => AlgorithmId::ThresholdEcdsaSecp256k1,
            Self::IDkgCommitmentOpening(CommitmentOpeningBytes::Simple(EccScalarBytes::K256(
                _,
            ))) => AlgorithmId::ThresholdEcdsaSecp256k1,
            Self::IDkgCommitmentOpening(CommitmentOpeningBytes::Pedersen(
                EccScalarBytes::K256(_),
                EccScalarBytes::K256(_),
            )) => AlgorithmId::ThresholdEcdsaSecp256k1,
        }
    }
pub fn algorithm_id ( & self ) -> AlgorithmId { match self { Self :: Ed25519 ( _ ) => AlgorithmId :: Ed25519 , Self :: MultiBls12_381 ( _ ) => AlgorithmId :: MultiBls12_381 , Self :: ThresBls12_381 ( _ ) => AlgorithmId :: ThresBls12_381 , Self :: Secp256k1WithPublicKey ( _ ) => AlgorithmId :: Secp256k1 , Self :: TlsEd25519 ( _ ) => AlgorithmId :: Ed25519 , Self :: FsEncryption ( _ ) => AlgorithmId :: NiDkg_Groth20_Bls12_381 , Self :: MEGaEncryptionK256 ( _ ) => AlgorithmId :: ThresholdEcdsaSecp256k1 , Self :: IDkgCommitmentOpening ( CommitmentOpeningBytes :: Simple ( EccScalarBytes :: K256 ( _ , ) ) ) => AlgorithmId :: ThresholdEcdsaSecp256k1 , Self :: IDkgCommitmentOpening ( CommitmentOpeningBytes :: Pedersen ( EccScalarBytes :: K256 ( _ ) , EccScalarBytes :: K256 ( _ ) , ) ) => AlgorithmId :: ThresholdEcdsaSecp256k1 , } }
Return the algorithm identifier of this secret key
Return the algorithm identifier of this secret key
&self