Storage

S P A C E for Data

Encrypting customer data from end-to-end protects their digital assets and privacy. Storing customer data on the network enables your customers to access it no matter where they are, or what device they are using, as long as they have a connection. Storing redundant copies of customer data in multiple geographic regions, with multiple registrars ensures it is resilient to the unexpected.

But what if you don't want to think about all these things, and would prefer to focus on the core features unique to your app? Well then, let S P A C E handle storage for you.

S P A C E

S P A C E is a Digital Storage Marketplace which enables your app to offer secure and private storage of your customer's data without requiring you to setup, maintain, and operate your own storage infrastructure.

S P A C E is built on top of BC and stores documents as metadata and a sequence of deltas all of which are stored by the customer's choice of registrars.

This post will use S P A C E to provide storage inside a Fyne app called S P A C E O U T. This simple app consists of a list populated with the customer's documents, an action so that when one document is selected it gets displayed in a new window, and a toolbar containing options to add a new document, refresh the list, configure their registrars, and manage their account.

A Fyne S P A C E App

List & Search

The documents stored in S P A C E can be listed or searched with a given filter.

Listing & Searching Documents in S P A C E

Add & Amend

Any document can be added to S P A C E for future retrieval, the toolkit also includes viewers for some common document types such as images and plain text.

Blockchains are immutable, however documents are frequently updated. To support this S P A C E provides a mutable system on top of an immutable system by storing each document as a sequence of deltas. Each delta once added to the blockchain is immutable, however the contents of the document can be changed by appending more deltas.

Adding & Amending Documents in S P A C E

Read & Write

When a document is read, all of its deltas are loaded and applied sequentially, resulting in the latest version of the document.

When a document is written, the new data is compared with the old data and a sequence of deltas is calculated (similar to git) and stored in S P A C E.

Reading & Writing Documents in S P A C E

Watch

A document can be watched so that an action, such as reloading a UI, is triggered when it updates.

Watching Documents in S P A C E

If you have any questions, or encounter any issues get in contact.