Subspace: Archiving Kusama with OnFinality
Powering the decentralized Web @ Parity Technologies
November 30, 2021 in
3 min read
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.
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.
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:
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.
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.
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.
Substrate Builders Program: Milestone 1
A 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.
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.
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.
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.
In their next Substrate Builders Program milestone, Subspace Labs plans to provide the following key deliverables.
Implement a decoupling of consensus and computation between farmer and executor nodes, as described in their technical whitepaper, based on a fork of Cumulus.
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.