Concepts
The ideas behind IOTA Storage, with the values of the current testnet network (100 shards, 1-day epochs). You do not need to know them to use the app, but they explain what you see in it. The technical details (contract functions, formats, APIs) are in Developers.
Blob
A blob is any sequence of bytes stored on the network: a file, an image, a web page, a dataset. The network does not interpret it.
- Blobs are public: anyone who knows a blob ID can read the blob. Encrypt your data before storing it if it must stay private.
- A blob is stored for a number of epochs that you pay for, and can be renewed.
- The largest blob is about 142 MiB (149,286,452 bytes) with the 100 shards of the network.
Blob ID
The blob ID identifies a blob by its content: it is a fingerprint (a hash) computed from the bytes,
their size and the way they are encoded. It looks like OshHTDIFITnA3F-HioxOxCmRkWq4AO1wwZVLnWd_gec:
43 characters that you can copy, share and use to read the blob through the aggregator.
- Your browser computes it before anything leaves your device. The contract checks it when the blob is registered, and readers check every piece they receive against it.
- The same bytes always give the same blob ID on this network. Two people who store the same file
get the same blob ID, each with their own
Blobobject.
Epoch
An epoch is the unit of time of the network. On testnet it lasts 1 day; the app shows the current one next to the network name, and the date each epoch ends.
- Storage is bought by epochs: from 1 to 53 per purchase. A blob is available until its end epoch; after that, the storage nodes delete its data.
- Renewing a blob (or a site) buys more epochs. The limit of 53 counts from the current epoch, so a blob can never be paid more than 53 epochs ahead.
The Blob object
Each stored blob has a Blob object on IOTA, owned by your address. It records the blob ID, the
size, when it was registered and certified, its end epoch and whether it is deletable. As its owner
you can:
| Operation | What it does | Where |
|---|---|---|
| Renew | Pays more epochs. The nodes keep the data for longer. | The app, the CLI, the client. |
| Delete | Only deletable blobs. The nodes delete the data (unless another Blob registers the same blob ID) and the paid space comes back to your wallet. | The app, the CLI, the client. |
| Transfer | The Blob is an ordinary IOTA object: it can go to another address or into a contract. | Your wallet, the client. |
| Burn | Destroys the object of an expired blob and recovers its storage deposit on IOTA. | The client. |
A deletable blob can be deleted by its owner before it expires: this is the default in the app. A permanent blob cannot be deleted by its owner and stays available until its end epoch, which is what you want for data that others rely on. Either way, deleting does not guarantee that no copy remains elsewhere (caches, other users who stored the same bytes). And the operators of the storage nodes, like any host, stop serving content that is illegal when they get a notice or an order about it, and delete it when the law requires it (see the terms of use).
Storage space you already paid for
When you delete a deletable blob, the space you had paid for does not disappear: it comes back to
your wallet as a Storage object, valid until the same end epoch. The app, the CLI and the
publisher use that space for your next blob whenever it is cheaper than buying new space:
- a blob stored on it pays only the write fee, and lasts as long as the space, even if that is longer than you asked for;
- if the space is larger than needed, it is split and the rest stays in your wallet;
- if it ends before the epoch you asked for, only the missing epochs are bought.
The app tells you when this happens («Using storage space already paid in your wallet…»), and its estimated costs already count it.
Slivers, shards and nodes
A blob is not copied whole to every node. It is encoded with an erasure code into slivers, small pieces with redundancy, and each sliver goes to one shard: a slot of responsibility. The network has 100 shards, held today by 4 storage nodes with 25 shards each.
- Any blob can be rebuilt from about a third of the shards (34 of 100), so reads work with nodes down, and the data survives as long as more than a third of the shards are alive.
- What is stored, and paid for, is the encoded size: with 100 shards, about 4.4 times the size of the file plus about 0.6 MiB of fixed metadata per blob. That fixed part is why small files are cheaper together, in quilts.
- The set of nodes and their shards is the committee of the epoch. It is chosen by stake and recorded on IOTA, so clients know which node holds each shard.
Certificate
A blob counts as stored only when it is certified on IOTA:
- after receiving its slivers, each node signs a confirmation;
- with confirmations from nodes holding more than two thirds of the shards (67 of 100), a transaction certifies the blob. The contract verifies the signatures.
That is why storing a file takes two signatures in your wallet: one to register and pay, one to certify. If the second one does not happen (you closed the tab, the connection dropped), the blob shows as not certified in the app: storing the same file again reuses what you paid, and if the nodes already have the data, Certify finishes it.
Quilts and patches
A quilt packs many small files into a single blob. Each file inside is a patch, with an identifier (its path, for the files of a site). Since every blob pays a fixed amount of metadata, quilts make small files much cheaper. The app packs the files of a site into quilts of up to 66 files each, and the aggregator can read a single patch without reading the whole quilt.
Sites
A site is a static website stored on the network. Its files live in quilts, and a Site object in
your wallet lists them: for each path, the file's headers, where to find it and its hash. The
portal serves it at https://<site ID in base36>.iotastorage.com/ or under an IOTA Names name,
checking every file against the hash the site declares. See Sites.
Treasury
A share of what users pay goes to a treasury of the project: 3 % of the storage rewards of each epoch, plus the rewards of a node that fails to prove that it keeps its data and the commission of a penalized node. Only the project's multisig can withdraw from it. See Economics.
Services
- Aggregator. Reads blobs from the storage nodes, checks every piece and serves the result over
HTTP. Public at
https://aggregator.iotastorage.com, no wallet needed. - Publisher. Stores blobs over HTTP on behalf of a client, paying with its own account. The public one requires a token and is used by the project.
- Portal. Serves
Siteobjects as websites athttps://<site>.iotastorage.com/.
See the HTTP API.