Platform

Sealed Files and Blobs: How Calimero Network Stores Large Data

Content-addressed blobs, and files only a compute run can open

App state is for structured data. Images, documents and datasets go to the cluster's sealed blob store, and the app keeps only a reference.

Sealed Files and Blobs: How Calimero Network Stores Large Data

Key takeaways

  • Blobs (up to 47 MiB) are content-addressed by SHA-256 and can be shared through time-limited grants.
  • Sealed files (up to 2 GiB) can be opened only inside a compute run, never by ordinary app code.
  • Everything in the blob store is sealed at rest, and a file leaves the cluster only sealed to the requester's key.

What is a blob?

A blob is a binary such as an image or a document. A client uploads it to POST /apps/{app}/blobs and gets back its id, the 64-hex SHA-256 of its bytes. The app stores a BlobRef in its state, which is what keeps the blob alive. To share one, the app issues a grant lasting between 1 second and 24 hours (86,400 seconds). Anyone with the grant link can download the blob, signed in or not, until it expires. App code can also write blobs from a run with files::create().

What makes a sealed file different?

A sealed file is for data the app itself shouldn't read in ordinary code, like private documents that a job processes. Only the app's owner and its organization's members can upload one. They can be up to 2 GiB, uploaded in 16 MiB parts.

  • App methods see only the file's size and hash.
  • The bytes can be read only inside a compute run on an attested job node.
  • A file leaves the cluster only through an export sealed to the requester's key, or as a published compute output.

How is stored data protected?

Blob store contents are sealed at rest on every node, like the rest of the node's data. Disk keys are released only to nodes that prove they run a signed release, so a copied disk is unreadable.

Because blob ids are content hashes, a client can check that what it downloaded is exactly what was stored.

When should I use a blob or a sealed file?

  • A profile picture, an attachment people download, a generated PDF: blob.
  • A contract to redact, a dataset to analyse, records to process in bulk: sealed file plus a compute run.
  • Small structured values: keep them in app state, which is limited to 1 MiB per log entry.

Frequently asked questions

What is the maximum file size on Calimero Network?

Blobs can be up to 47 MiB. Sealed files can be up to 2 GiB, uploaded in 16 MiB parts.

Can I share a file with someone without an account?

Yes, for blobs. The app issues a grant valid for 1 second to 24 hours, and anyone with the link can download it until it expires.

Who can read a sealed file?

Only code running inside a compute run on an attested job node. Ordinary app methods see only its size and SHA-256.

← All postsAll use cases →

Read it, then run it.

Start free on Calimero Network Cloud, or book a demo with the team.