Files
core/warehouse
Kleissner cec070b740 Introducing Warehouse - the store for files shared by the user.
New endpoints:
/warehouse/create               Create a file in the warehouse
/warehouse/create/path          Create a file in the warehouse via copy
/warehouse/read                 Read a file in the warehouse
/warehouse/delete               Delete a file in the warehouse
2021-10-13 01:40:58 +02:00
..

Warehouse

This package manages provides a warehouse for files that are shared by the user (i.e., published via the user's blockchain). Since the blockchain only stores the metadata, the actual file data needs to be stored in a separate local database.

Features:

  • Automatic deduplication
  • Addressing files based on the data hash
  • Read/Write/Delete
  • Provide the entire file or parts of it at anytime
  • Store files as large as supported by the target disk

Limitations

There is currently no hard or soft limit of used storage. If the underlying target disk does not have enough available storage, adding new files will fail.

Implementation

This package uses blake3 for hashing.