Skip to main content

build_with_chain

Function build_with_chain 

Source
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>>)>
where Chain: HoprChainApi + Clone + Send + Sync + 'static,