Function maybe_generate_hsid

Source
pub(crate) fn maybe_generate_hsid(
    keymgr: &Arc<KeyMgr>,
    nickname: &HsNickname,
    offline_hsid: bool,
    selector: KeystoreSelector<'_>,
) -> Result<HsId, StartupError>
Expand description

Generate the identity key of the service, unless it already exists or offline_hsid is true.