Expand description
File operations using streaming self-encryption.
Upload files directly from disk without loading them entirely into memory.
Uses stream_encrypt to process files in 8KB chunks, encrypting and
uploading each piece as it’s produced.
Encrypted chunks are spilled to a temporary directory during encryption so that peak memory usage is bounded to one wave (~256 MB for 64 × 4 MB chunks) regardless of file size.
For in-memory data uploads, see the data module.
Structs§
- File
Upload Result - Result of a file upload: the
DataMapneeded to retrieve the file. - Prepared
Upload - Prepared upload ready for external payment.
- Upload
Cost Estimate - Estimated cost of uploading a file, returned by
Client::estimate_upload_cost.
Enums§
- Download
Event - Progress events emitted during file download for UI feedback.
- External
Payment Info - Payment information for external signing — either wave-batch or merkle.
- Upload
Event - Progress events emitted during file upload for UI feedback.
- Visibility
- Whether the data map is published to the network for address-based retrieval.