pub fn fs_pop(
            pop: CspFsEncryptionPop,
        ) -> Result<g20_internal_types::FsEncryptionPop, ni_dkg_errors::MalformedPopError> {
            if let CspFsEncryptionPop::Groth20WithPop_Bls12_381(fs_pop) = pop {
                Ok(fs_pop)
            } else {
                let unexpected_type_name: &'static str = pop.into();
                Err(ni_dkg_errors::MalformedPopError {
                    algorithm: ALGORITHM_ID,
                    internal_error: format!("Unexpected variant: {}", unexpected_type_name),
                    bytes: None,
                })
            }
        }
// 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_pop(
            pop: CspFsEncryptionPop,
        ) -> Result<g20_internal_types::FsEncryptionPop, ni_dkg_errors::MalformedPopError> {
            if let CspFsEncryptionPop::Groth20WithPop_Bls12_381(fs_pop) = pop {
                Ok(fs_pop)
            } else {
                let unexpected_type_name: &'static str = pop.into();
                Err(ni_dkg_errors::MalformedPopError {
                    algorithm: ALGORITHM_ID,
                    internal_error: format!("Unexpected variant: {}", unexpected_type_name),
                    bytes: None,
                })
            }
        }
pub fn fs_pop ( pop : CspFsEncryptionPop , ) -> Result < g20_internal_types :: FsEncryptionPop , ni_dkg_errors :: MalformedPopError > { if let CspFsEncryptionPop :: Groth20WithPop_Bls12_381 ( fs_pop ) = pop { Ok ( fs_pop ) } else { let unexpected_type_name : & ' static str = pop . into ( ) ; Err ( ni_dkg_errors :: MalformedPopError { algorithm : ALGORITHM_ID , internal_error : format ! ( " " unexpected_type_name ) , bytes : None , } ) } }
There is currently only one version of NiDKG.
There is currently only one version of NiDKG .
pop
CspFsEncryptionPop
pop
CspFsEncryptionPop