pub fn fs_key_set(
            key_set: CspFsEncryptionKeySet,
        ) -> Result<clib::types::FsEncryptionKeySetWithPop, ni_dkg_errors::MalformedSecretKeyError>
        {
            if let CspFsEncryptionKeySet::Groth20WithPop_Bls12_381(key_set) = key_set {
                Ok(key_set)
            } else {
                let unexpected_type_name: &'static str = key_set.into();
                Err(ni_dkg_errors::MalformedSecretKeyError {
                    algorithm: ALGORITHM_ID,
                    internal_error: format!("Unexpected variant: {}", unexpected_type_name),
                })
            }
        }
// There is currently only one version of NiDKG.
There is currently only one version of NiDKG.
There is currently only one version of NiDKG .
pub fn fs_key_set(
            key_set: CspFsEncryptionKeySet,
        ) -> Result<clib::types::FsEncryptionKeySetWithPop, ni_dkg_errors::MalformedSecretKeyError>
        {
            if let CspFsEncryptionKeySet::Groth20WithPop_Bls12_381(key_set) = key_set {
                Ok(key_set)
            } else {
                let unexpected_type_name: &'static str = key_set.into();
                Err(ni_dkg_errors::MalformedSecretKeyError {
                    algorithm: ALGORITHM_ID,
                    internal_error: format!("Unexpected variant: {}", unexpected_type_name),
                })
            }
        }
pub fn fs_key_set ( key_set : CspFsEncryptionKeySet , ) -> Result < clib :: types :: FsEncryptionKeySetWithPop , ni_dkg_errors :: MalformedSecretKeyError > { if let CspFsEncryptionKeySet :: Groth20WithPop_Bls12_381 ( key_set ) = key_set { Ok ( key_set ) } else { let unexpected_type_name : & ' static str = key_set . into ( ) ; Err ( ni_dkg_errors :: MalformedSecretKeyError { algorithm : ALGORITHM_ID , internal_error : format ! ( " " unexpected_type_name ) , } ) } }
There is currently only one version of NiDKG.
There is currently only one version of NiDKG .
key_set
CspFsEncryptionKeySet
key_set
CspFsEncryptionKeySet