Skip to main content

bootstrap

Function bootstrap 

Source
pub async fn bootstrap(home: &Path, secret: SecretKey) -> Result<Seeder, Error>
Expand description

Bootstrap the iroh seeder.

Opens the persistent FsStore under <home>/artifacts/store/, binds an iroh Endpoint to the supplied SecretKey, and spawns the BlobsProtocol router. Anything previously tagged in the store is reachable the moment this returns.

The caller supplies the iroh SecretKey — typically derived from the user’s radicle keystore via radicle_artifact_core::keys::radicle_secret_to_iroh. This module never reads the keystore directly.