Please describe your proposed solution.
This proposal is a continuation of the funded Catalyst F9 proposal Spectrum.Network | Layer 2 for DeFi.
Spectrum aims to enable ultimate interoperability on Cardano. The protocol serves as a programmable cross-chain layer that allows cross-chain messaging between Cardano and any other connected blockchain or general data source.
At its core Spectrum solves the “Oracle problem” which the “Interoperability problem” always boils down to. There are many solutions to this problem out there, some of them even offer programmable cross-chain layers. Nevertheless, ALL of them fail to provide a scalable solution to the problem. Can we really call a PBFT (Practical Byzantine Fault Tolerance) network where a fixed committee of only 8-16 nodes decides what's valid and what's not decentralized? There is no decentralization without scalability.
During the last year, we at Spectrum put an enormous amount of effort into designing a scalable protocol that solves “Oracles” and hence “Interoperability” in a trustless and decentralized way. The protocol has 2 layers. On the upper layer there are independent local committees, each dedicated to one particular data source, be it an external blockchain system or exchange rate of some fiat currency. Each committee runs a scalable collective signature protocol that we have designed and tested specifically for cryptographic primitives that are available on Cardano, Ergo, and many other blockchains RIGHT NOW. The aggregation is performed in logarithmic time, thanks to this each committee can scale up to thousands of nodes. Committees are also continuously rotated thanks to the Roll-dPoS consensus on the lower (master) layer. The master layer enables programmability and serves as a synchronization layer for simultaneous streams of events coming from external systems and served by local committees.
Notable improvements were done in the ledger design towards developers’ experience based on our own experience with dApp building on Cardano and Ergo. dApp builders on Spectrum can vary the amount of on-chain computations, e.g. choosing to perform a bit more computations on-chain for cases where a shared UTxO is involved (such as AMM Liquidity Pool, or Stablecoin Bank). This dramatically reduces the complexity of on-chain code required to implement complex DeFi dApps, while keeping the determinacy of the eUTxO approach.
The design of Spectrum makes it an ultimate platform for decentralized cross-chain applications serving Cardano (and other layer-1 platforms). DeFi apps built on Spectrum have full potential to replace centralized services like CEXes.
To sum up, we have conducted core research, evaluated protocol design and implemented the core of the protocol. There are still some vital things left to be completed to make Spectrum ready for production.
What our previous proposal didn't cover is:
- Default mode. The protocol relies on dynamic committees of independent validators in order to operate. When a committee is rotated it has to explicitly pass its “responsibilities” to the next committee. In the early days of the mainnet while the number of validators (decentralization factor) is not high enough there will still be a small probability that some committee fails. To handle this case we have outlined a design of the “Default Mode” — a helper subsystem of Spectrum's consensus that will ensure the network preserves safety in critical situations. That would save the protocol in the worst scenario. It requires research and implementation. (this proposal)
- Programmability layer. Spectrum needs a virtual machine and a language that fits its hybrid ledger design. Just adopting Ergoscript or Plutus is not an option. One of the possible options is MoveVM and Move, which provides safety, and convenience has a more-or-less mature ecosystem and provides formal verification capabilities. But it has to be modified to fit Spectrum's design. (this proposal)
- Upgradability. Initially Spectrum will support Cardano, Ergo and Ethereum, but thanks to committee sharding the system scales linearly in the number of supported chains. So the community will likely be willing to plug-in new blockchains with time. We envision this process as a routine, where developers implement a connector for a new chain, users create a configuration and vote for activation. Thus an upgradability framework should be developed. (this proposal)
- Testing at scale. Spectrum Node is not a lightweight software by any means and the protocol itself is intended to serve a network of thousands of nodes. To prepare the reference implementation for production usage, we have to test it at scale, this means we need hundreds of servers. (separate proposal: “Spectrum Network | Testing Protocol at Scale”)
- Security audit. The essential complexity of Spectrum is high and it has to be carefully audited. (separate proposal: “Spectrum Network | Security Audit”)
This proposal is about only the Default mode and Programmability layer. The rest are covered in related proposals.
— — —
We provided a high-level overview of our interoperability solution, focusing on its overarching aspects. To delve into the technical details of the project, we invite you to refer to our White Paper for more in-depth information.
How does your proposed solution address the challenge and what benefits will this bring to the Cardano ecosystem?
The proposed Spectrum Network solution addresses the following aims of the challenge:
- Increasing the number or quality of tools and software: Spectrum Network provides developers with a comprehensive set of tools to facilitate cross-chain application development. This empowers them to enhance their skills in running nodes for Stake Pool Operators (SPOs), ecosystem development, and native asset development within the Cardano ecosystem.
- Increasing the scalability of Cardano: Spectrum Network introduces a solution for increased scalability through its implementation of an interoperable protocol. This allows for research and integrations of existing solutions, thereby contributing to the overall scalability and efficiency of the Cardano network.
- Increase in standards, resources, and research: By providing a robust framework for decentralized cross-chain interactions, Spectrum Network contributes to the improvement of standards and research in the Cardano ecosystem.
Spectrum Network provides benefits to three key groups within the Cardano community:
- Stake Pool Operators
We previously discussed that Spectrum Network implements an open Proof-of-Stake (PoS) consensus protocol. Cardano Stake Pool Operators (SPOs) are already familiar with the process of configuring and launching a PoS node for transaction validation. From the perspective of SPOs, launching a Spectrum Network Node is essentially similar to launching a Cardano Node. Thus, our solution offers SPOs an additional avenue to generate income by validating cross-chain operations.
- Developers
Spectrum Network empowers developers, development teams, and organizations with the necessary tools to build borderless cross-chain services and protocols. This spans from straightforward functionalities such as native token transfers between chains to the creation of sophisticated, natively cross-chain applications like cross-chain decentralized exchanges (DEXs), cross-chain lending protocols, and beyond.
Possible applications on top of Spectrum Network
- ADA holders and DeFi users
This category of users benefit from various natively cross-chain products and services delivered by developers accessing borderless liquidity without a centralized party. Refer to the “Value for money” section for a concrete example for the end users.
How do you intend to measure the success of your project?
The success of the project will look like the following:
Right after the mainnet launch:
- Protocol works and does what it should do: solves interoperability problem.
- Critical vulnerabilities in the protocol = 0.
- Number of up-and-running nodes ≥ 200.
- Development teams building on top of the protocol = 1-2.
Short-term (1-year perspective):
- Number of up-and-running nodes ≥ 1000.
- dApps on top of the protocol = 7-10.
- USD value TVL = $100m.
Long-term (5-year perspective):
- Number of up-and-running nodes:
- Year 2: ≥ 1500
- Year 3: ≥ 2000
- Year 4: ≥ 2500
- Year 5: ≥ 3000
- Development teams in the protocol:
- Year 2: 20-25 teams
- Year 3: 35-45 teams
- Year 4: 60-45 teams
- Year 5: 250-300 teams
- Total USD value locked in the protocol:
- Year 2: $400m
- Year 3: $1b
- Year 4: $3b
- Year 5: $10b
Please describe your plans to share the outputs and results of your project?
Code
- The source code of the Spectrum Network reference node is open and accessible to everyone in this repository.
Mediums
- Website: Provides high-level information that describes what Spectrum Network is and what opportunities it provides will be placed.
- Documentation: Provides in-depth information on how to set up, run and maintain Spectrum Network node. Also provides information on how to develop dApps on top of Spectrum Network.
- Whitepaper: Provides information on the technical design and features of the protocol. Whitepaper V1 is available here. We do not exclude that in the process of finalizing the main components of the protocol, we will need to add or remove something from the White Paper. All White Paper updates will be broadcast via our communication channels (Twitter, Discord, Telegram, Reddit).
Education (Platform — YouTube)
- 1 online workshop with the team “How to set up and run Spectrum Network node”.
- 1 online workshop with the team “How to build simple cross-chain dApp on top of Spectrum Network”.
We will regularly share updates on the progress of our work across our Twitter and other social media platforms.