scroll down

Subspace: Archiving Kusama with OnFinality

Subspace Labs has completed its first milestone as part of the Substrate Builders Program , bringing us one step closer to a permanent…

Parity Technologies
November 30, 2021
3 Min Read

Subspace Labs has completed its first milestone as part of the Substrate Builders Program, bringing us one step closer to a permanent decentralized storage solution for Polkadot and Kusama.

As part of this milestone, the archival history of the entire Kusama Network, including the Relay Chain and all parachains, is now stored on the Subspace Aries Test Network through an integration with OnFinality's Public API service.

image2-1.png

Storage-Based Consensus

Subspace is a new Substrate-based chain powered by proof-of-archival-storage (PoAS) consensus, comprising proofs of storing the blockchain history itself. PoAS resolves several incentive challenges that lead to centralization in proof-of-space blockchains like Chia or Filecoin. In Subspace, farmers (not miners) store as many unique segments of the blockchain history as their disk space allows. Since this consensus is based on storage, it is eco-friendly and accessible to anyone with available hard disk space.

image3-1.png

Distributed Archival Storage

PoAS consensus also allows Subspace to provide permanent decentralized storage for protocol and application developers at a previously unimaginable scale. This is possible because farmers store the blockchain history collectively, allowing them to operate as a single distributed archival node. Data may be permanently stored on the network by simply embedding it within a Subspace storage transaction and later retrieving it from the farmer network. As more farmers join, network capacity grows, and storage costs go down.

Subspace will support the Polkadot and Kusama ecosystems in the following ways:

  1. Ensuring the shared history of all parachains - Subspace provides a standard archival storage layer to ensure the history of each parachain is retained indefinitely and remains accessible under a common retrieval API.

  2. Providing simple off-parachain storage - Parachains may offload non-essential contract state, such as a video or image file associated with an NFT, to Subspace while retaining the same guarantees of persistence, immutability, and availability, at a fraction of the cost.

  3. Allowing for asynchronous cross-parachain storage - Using XCMP, parachains may snapshot and offload the state of any smart contract to Subspace and later retrieve the contract state when it is needed for computation.

![image4 (1).png](https://storage.googleapis.com/parity-io-parity-prod/image4 (1).png)

Substrate Builders Program: Milestone 1

Web3 Foundation Grant funded the initial implementation of Subspace. The output of this grant was Spartan, a simpler proof-of-space consensus blockchain, which began as a fork of BABE consensus. Since then, the team has been working hard on the next iteration of the protocol and recently completed their next major milestone as part of the Substrate Builders Program, including the following key deliverables.

  1. Implemented consensus based on Proofs-of-Archival-Storage, completing the upgrade from Spartan, a proof-of-*useless-*space, to Subspace, a proof-of-*useful-*storage.

  2. Created an Object Storage API, allowing developers to add data to the Subspace blockchain by embedding it within a special transaction and later fetching the data from farmers.

  3. Launched the Aries Test Network while exposing it over a public RPC endpoint accessible within the Polkadot-JS apps UI, which hosts their first storage dapp, the Kusama Relayer.

Leveraging OnFinality for Subspace Relayers

As part of this milestone, Subspace has launched the Kusama Relayer, a decentralized storage application that archives the entire history of the Kusama Relay Chain and all parachains on the Aries Test Network.

By integrating OnFinality's Enhanced API Service, Subspace Relayer nodes can subscribe to new finalized blocks of the Kusama Relay Chain and all live parachains. Relayer nodes then bundle each new set of blocks into a storage transaction before submitting to the Subspace Storage API. For more details on the relayer architecture, read the recent medium post from Subspace Labs.

OnFinality is also a graduate of the Substrate Builders Program who provides core infrastructure services to developers primarily on Polkadot and Substrate-based networks. Its API Service allows developers to access high-performance managed shared nodes without any setup and minimal cost.

Next Steps

In their next Substrate Builders Program milestone, Subspace Labs plans to provide the following key deliverables.

  1. Implement a decoupling of consensus and computation between farmer and executor nodes, as described in their technical whitepaper, based on a fork of Cumulus.

  2. Extend the Object Storage API to include a dynamic cost-of-storage and expose the API over a simple Javascript Developer SDK based on Polkadot-JS

  3. Launch the Gemini Incentivized Test Network to begin onboarding farmers and building storage capacity.


Have an idea or project built for or on Substrate? The Substrate Builders program can support your project up to launch and will continue to offer longer-term support depending on the project's needs. Learn more and apply now.