pub async fn request_bitswap_blocks_unverified<N>(
network: &N,
peer: PeerId,
cids: &[Cid],
) -> Result<HashMap<Cid, FetchOutcome>, BitswapError>where
N: NetworkRequest + ?Sized,Expand description
Like request_bitswap_blocks, but does not recompute or verify the hash of received bytes.
Use this when the requester must fetch by CID-shaped identifiers before it can verify the returned bytes through an external authority. The response is matched by request order and CID prefix only; integrity verification is delegated to the caller.
Note: This is a temporary API that shall be superseeded by a better abstraction such as https://github.com/paritytech/polkadot-sdk/issues/12052