// There is currently only one version of DKG.
There is currently only one version of DKG.
There is currently only one version of DKG .
pub fn fs_public_key(
            fs_public_key: CspFsEncryptionPublicKey,
        ) -> Result<g20_internal_types::FsEncryptionPublicKey, ni_dkg_errors::MalformedPublicKeyError>
        {
            if let CspFsEncryptionPublicKey::Groth20_Bls12_381(fs_public_key) = fs_public_key {
                Ok(fs_public_key)
            } else {
                let unexpected_type_name: &'static str = fs_public_key.into();
                Err(ni_dkg_errors::MalformedPublicKeyError {
                    algorithm: ALGORITHM_ID,
                    key_bytes: None,
                    internal_error: format!("Unexpected key type: {}", unexpected_type_name),
                })
            }
        }
pub fn fs_public_key ( fs_public_key : CspFsEncryptionPublicKey , ) -> Result < g20_internal_types :: FsEncryptionPublicKey , ni_dkg_errors :: MalformedPublicKeyError > { if let CspFsEncryptionPublicKey :: Groth20_Bls12_381 ( fs_public_key ) = fs_public_key { Ok ( fs_public_key ) } else { let unexpected_type_name : & ' static str = fs_public_key . into ( ) ; Err ( ni_dkg_errors :: MalformedPublicKeyError { algorithm : ALGORITHM_ID , key_bytes : None , internal_error : format ! ( " " unexpected_type_name ) , } ) } }
There is currently only one version of DKG.
There is currently only one version of DKG .
fs_public_key
CspFsEncryptionPublicKey