Skip to main content

mirror_blob

Function mirror_blob 

Source
pub async fn mirror_blob<T>(
    signer: T,
    target_server: &Url,
    source_url: &str,
) -> Result<String, String>
where T: VectorSigner + Clone,
Expand description

BUD-04: ask target_server to mirror the blob at source_url by pulling it server-to-server (the client sends one small JSON request, never the bytes). Authorized by the same hash-scoped upload event as a direct upload. The mirror’s ACK gets the same serve-check as an upload ACK. Returns the mirror’s URL for the blob.