Technical overview

Shaga - Decentralized Gaming Ecosystem: Architecture & Specifications

Overview

Shaga operates as a peer-to-peer (P2P) gaming server lending platform, anchored on the Solana blockchain. It establishes direct connections between gamers and server lenders, creating an innovative and dynamic ecosystem. Users' identities are associated with their Solana public key addresses, facilitating a decentralized and secure way of managing identities. The system employs smart contracts for service level agreements (SLAs) and uses Solana's decentralized storage for storing non-sensitive data related to the Shaga system. Moreover, each gaming session is represented as a compressed NFT, providing a transparent and immutable record for dispute resolution.

Key components:

Shaga-Sunshine (Game Hosting Application): This component is responsible for the host-side operations including game hosting, user session management, NFT minting and verification, and interaction with the staking mechanism.

Shaga-Moonlight (Game Client Application): The client-side application is responsible for user authentication, game discovery, connection to the Sunshine host, handling payment transactions, renting of NFTs, and interaction with the reputation and rating system.

Solana Blockchain Integration: The blockchain component is integral to Shaga's operation, handling transaction initiation and processing, completion and verification, and dispute resolution.

Distributed Hash Table (DHT) Mechanism: This component provides the underlying network infrastructure that allows for efficient, scalable peer discovery and connection.

How these components interact:

Shaga-Sunshine to Shaga-Moonlight: Shaga-Sunshine hosts a game and mints a corresponding NFT. Shaga-Moonlight discovers the game and requests to rent the NFT. Upon successful rental, Shaga-Moonlight connects to Shaga-Sunshine and begins streaming the game.

Shaga-Sunshine/Moonlight to Solana: Shaga-Sunshine and Shaga-Moonlight interact with Solana for all financial transactions including minting NFTs, renting NFTs, and paying for game sessions.

Shaga-Sunshine/Moonlight to DHT: Both Shaga-Sunshine and Shaga-Moonlight use the DHT for peer discovery and connection. Shaga-Sunshine advertises its available games on the DHT, and Shaga-Moonlight queries the DHT to discover games and connect to hosts.

As for the system architecture, it's crucial to adopt a modular, decentralized design to align with the nature of Shaga as a peer-to-peer game streaming platform.

Auxiliary Services

Reputation System (possible Gum Integration): Enables users to rate hosts and informs future users about host performance, enhancing trust in the platform.

Staking Mechanism: Allows users to stake tokens and receive rewards, incentivizing user participation.