pub async fn pull_artifact<B: BlobSource>(
source: &B,
artifact_hash: &str,
len: u64,
) -> Result<Vec<u8>, PeeringError>Expand description
Pull an artifact over ranged GET, reusing the adverse-hardened RangedFetcher. Each
request resumes from the current buffer length, so an interruption re-fetches zero bytes
already held, and the reassembled bytes must hash to artifact_hash or the transfer fails —
the same resumability and content-address verification the server download path relies on.