fn gen_unreg_auth_response(&self) -> Result<String> {
        let bootstrap_contacts = self.bootstrap_contacts.clone().ok_or_else(|| {
            Error::AuthenticatorError("Bootstrap contacts information not available".to_string())
        })?;

        debug!("Encoding response... {:?}", bootstrap_contacts);
        let resp =
            serde_json::to_string(&IpcMsg::Resp(IpcResp::Unregistered(Ok(bootstrap_contacts))))
                .map_err(|err| {
                    Error::AuthenticatorError(format!("Failed to encode response: {:?}", err))
                })?;

        debug!("Returning unregistered auth response generated: {:?}", resp);
        Ok(resp)
    }
// Helper function to generate an unregistered authorisation response
Helper function to generate an unregistered authorisation response
Helper function to generate an unregistered authorisation response
fn gen_unreg_auth_response(&self) -> Result<String> {
        let bootstrap_contacts = self.bootstrap_contacts.clone().ok_or_else(|| {
            Error::AuthenticatorError("Bootstrap contacts information not available".to_string())
        })?;
        debug!("Encoding response... {:?}", bootstrap_contacts);
        let resp =
            serde_json::to_string(&IpcMsg::Resp(IpcResp::Unregistered(Ok(bootstrap_contacts))))
                .map_err(|err| {
                    Error::AuthenticatorError(format!("Failed to encode response: {:?}", err))
                })?;
        debug!("Returning unregistered auth response generated: {:?}", resp);
        Ok(resp)
    }
fn gen_unreg_auth_response ( & self ) -> Result < String > { let bootstrap_contacts = self . bootstrap_contacts . clone ( ) . ok_or_else ( | | { Error :: AuthenticatorError ( " " . to_string ( ) ) } ) ? ; debug ! ( " " bootstrap_contacts ) ; let resp = serde_json :: to_string ( & IpcMsg :: Resp ( IpcResp :: Unregistered ( Ok ( bootstrap_contacts ) ) ) ) . map_err ( | err | { Error :: AuthenticatorError ( format ! ( " " err ) ) } ) ? ; debug ! ( " " resp ) ; Ok ( resp ) }
Helper function to generate an unregistered authorisation response
Helper function to generate an unregistered authorisation response
&self