βοΈDesign
Last updated
Last updated
Viper Network is a robust RPC relay protocol designed specifically for web3 applications. It leverages the power of two key technologies:
to provide a secure and scalable framework for decentralized communication and consensus.
The Cosmos SDK, an open-source framework, forms the foundation of Viper Network. Built using the popular Go programming language, it offers developers a flexible and user-friendly environment for constructing modular blockchain applications. By harnessing the capabilities of the Cosmos SDK, Viper Network ensures seamless integration with existing web3 infrastructures, enabling efficient data transfer and interaction.
At the heart of Viper Network's decentralized architecture lies Tendermint Core. This battle-tested communication and consensus platform enables the construction of applications with exceptional speed and security. Widely recognized and adopted in the blockchain industry, Tendermint Core facilitates trustless interactions between nodes, ensuring the integrity and reliability of the network.
Viper Network acts as a reliable RPC layer, facilitating the read and write operations on blockchains. The pairing of nodes and applications, as well as the minting and distribution of rewards, are all executed on-chain, ensuring transparency and accountability. Additionally, Viper Network optimizes performance by handling requests peer-to-peer off-chain, further enhancing efficiency and scalability.
The Viper Network protocol involves four key actors:
Servicers (Nodes): Servicers are the nodes responsible for providing decentralized infrastructure services within the network. To register as a Servicer, they must stake a certain amount of the native token. This stake serves as a commitment to participate in the network and ensures the quality and reliability of their services.
Validators: Validators play a crucial role in verifying relay proofs submitted by Servicers. They validate the volume and report card scores, ensuring the accuracy and integrity of the network.
Requestors (Clients): On the other hand, Requestors, also known as clients, are entities seeking to utilize decentralized infrastructure services. To register for these services, a requestor needs to stake the native token, demonstrating their commitment to the network. The amount staked by the requestor determines the level of throughput they are entitled to access.
Fishermen: The Quality of Service (QoS) provided by the Servicer is measured by Fishermen. Fishermen are actors on the network who act as shadow clients, sending sample relays to the Servicers. They measure various metrics, including availability and latency, to evaluate the performance of the Servicers. Based on the QoS measurements, Servicers are rewarded with an amount of the native token proportional to the throughput they have served and the quality of their performance.
Each actor plays a crucial role in the decentralized infrastructure ecosystem, contributing to its operation and maintaining the network's integrity.
Requestors: Entities seeking decentralized infrastructure services stake the native token to access services, determining their throughput level.
Servicers: Nodes offering services stake the native token, committing to network participation and ensuring service quality.
After successful staking, Requestors and Servicers are dynamically paired, creating a session for service interactions.
The servicers are monitored by Fishermen, acting as shadow clients within a session.
During the session, Servicers fulfil service requests from Requestors through peer-to-peer (P2P) interactions.
These interactions form the core of decentralized infrastructure services, ensuring responsiveness and reliability.
Proof Submission:
At the session's conclusion, Servicers submit relay proofs (Commit Tx) and Fishermen submit the report cards of the services in that particular session (ReportCard Tx) to the blockchain.
This submission encapsulates the essence of the service interactions and the quality of service provided.
Validation by Validators:
Validators verify the submitted proofs and the report card(Verify Tx) evaluating both the volume of relays served and the Servicer's performance quality.
This stage ensures the accuracy and integrity of the transactions and interactions within the network.
Servicers are rewarded with an amount of the native token, directly proportional to the volume of service provided and the quality of their performance.
This incentivization model drives Servicers to consistently deliver high-quality services to Requestors.
Session Renewal:
After each session, a new one is dynamically generated, perpetuating network activity and maintaining an ever-active ecosystem.
This cyclical renewal ensures the continual availability of decentralized infrastructure services within the Viper Network.
Withdrawal and Conclusion:
Requestors or Servicers, upon deciding to withdraw from the Viper Network, initiate the unstaking process.
Unstaking effectively unregisters them from the network, and the staked tokens are returned to their respective accounts.