pub async fn build_with_chain<Chain, Srv: HoprSessionServer + Clone + Send + 'static>(
chain_key: &ChainKeypair,
packet_key: &OffchainKeypair,
config: HoprLibConfig,
probe_cfg: Option<ProberConfig>,
chain_connector: Chain,
server: Srv,
) -> Result<(Arc<Hopr<Chain, SharedChannelGraph, HoprNetwork>>, impl Future<Output = Result<HoprTransportIO, HoprLibError>>)>