> For the complete documentation index, see [llms.txt](https://docs.tproof.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tproof.io/technical-section/smart-contracts-overview/storage-type.md).

# Storage Type

The concept of Storage Type has been introduced to make sure our protocol does **not rely only on one storage** but is flexible to accept URLs from different storages.

Each storage type is defined by:

* **ID** (*uint16*) - a number representing the storage type in our memory
* **Name** - an identifier
* **ProvidedUrl** (*string*) - the structure of the url that needs to be passed

Each StorageType must be compliant with `ItProofHashRegistryStorageTypeInterface.sol`. When retrieving the URL, you can specify a `_version` parameter (*uint256*), that tells the contract how you want back the URL. Typically

* **0**: the version sent with ProvidedUrl
* **1**: the URL ready to be accessed

## Currently accepted storage types

### Arweave V1

Storage that uses Arweave chain (see <https://www.arweave.org/>). Each file is identified by a 43 characters string, that is also the identification of the transaction on their chain.

**ID:** 0\
**ProvidedUrl**: 43 characters identifying the URL

Returned URLs based on `_version` parameter:

* **0** - the 43 chars passed as ProvidedUrl
* **1** - the full URL in the form of `https://arweave.net/{ProvidedUrl}`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tproof.io/technical-section/smart-contracts-overview/storage-type.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
