streaming_decrypt_from_storage

Function streaming_decrypt_from_storage 

Source
pub fn streaming_decrypt_from_storage(
    env: Env,
    data_map: &DataMap,
    output_file: String,
    get_chunk_parallel: JsFunction,
) -> Result<()>
Expand description

Decrypts data from storage in a streaming fashion using parallel chunk retrieval.

This function retrieves the encrypted chunks in parallel using the provided getChunkParallel function, decrypts them, and writes the decrypted data directly to the specified output file path.