Platform Architecture

Zing Protocol is a creator monetization platform built on the Sui blockchain that enables creators to own their content, monetize through memberships and donations, and leverage decentralized storage. This page dives into the technical architecture that makes this possible.

System Overview

The Zing Protocol platform consists of several integrated layers:

  • Sui Blockchain - Core transaction and ownership layer
  • Walrus Protocol - Decentralized storage for content blobs
  • SEAL Protocol - Encryption for tiered content access
  • Knowledge Graph - RDF triple extraction for AI agent queries
  • zkLogin - Web2-style authentication without seed phrases

Architecture Diagram

┌─────────────────────────────────────────────────────────────────┐
│                        Client Applications                       │
│              (Web App, Mobile, API Clients)                     │
└───────────────────────────┬─────────────────────────────────────┘


┌─────────────────────────────────────────────────────────────────┐
│                      Sui Blockchain Layer                        │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────────┐ │
│  │   zkLogin   │  │ Memberships  │  │     Wallet (USDC)       │ │
│  │   (Auth)    │  │ & Donations │  │   Balance & Transfers   │ │
│  └─────────────┘  └─────────────┘  └─────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────┘

        ┌───────────────────┼───────────────────┐
        ▼                   ▼                   ▼
┌───────────────┐  ┌───────────────┐  ┌───────────────┐
│ Walrus Storage│  │SEAL Encryption│  │Knowledge Graph│
│  (Content)    │  │ (Access Ctrl) │  │  (RDF Triples)│
└───────────────┘  └───────────────┘  └───────────────┘

Core Components

zkLogin Authentication

zkLogin enables Web2-style authentication using Google OAuth. No seed phrases required.

// Authentication flow
const login = useWalletStore((s) => s.login)
await login('google') // Triggers Google OAuth

// Session persisted via zkloginStorage (Zustand)
// Contains: jwt, suiAddress, maxEpoch, ephemeralSecretKey, zkProof

Walrus Protocol Storage

Content is stored on Walrus, a decentralized storage system on Sui. Each blob is identified by a unique ID.

// Storage cost calculation
const { encodedSize, writeCost } = storageCost(
  walrusSystemState,
  totalSize,
  epochs, // Default 2 epochs
)

// Storage tiers
// Basic: ~5 GB (Free)
// Premium: ~20 GB ($X/month)
// Premium+: ~100 GB ($XX/month)

SEAL Protocol Encryption

Content access is controlled via SEAL Protocol encryption. Members receive decryption keys based on their membership tier.

// Access tiers
Public    → No encryption (anyone can read)
Basic     → Basic members only
Premium   → Premium members only
Ultra     → Ultra members only

Knowledge Graph Extraction

Knowledge triples (Subject → Predicate → Object) are extracted from content via LLM processing.

// Example Knowledge Triple
{
  subject: "0x123...creator",
  predicate: "published",
  object: "0x456...article",
  blob_id: "walrus_blob_id"
}

Storage Tiers (Creator Energy)

TierStorage LimitPricePurpose
Basic~5 GBFreeCasual creators
Premium~20 GB$X/monthActive creators
Premium+~100 GB$XX/monthHigh-volume professionals

API Integration

The Zing API is built on the Sui blockchain with RESTful endpoints:

# Base URL
https://api.zing.protocol/v1

# Key endpoints
GET  /articles          # List articles
POST /articles          # Create article
GET  /memberships       # List memberships
POST /subscribe         # Subscribe to creator
POST /donate            # Donate to creator
GET  /wallet/balance    # Get USDC balance
POST /wallet/topup      # Top up wallet
POST /wallet/payout     # Withdraw funds

Data Flow: Content Creation

Creator → Write Content (TipTap Editor) → Configure Access Tier

Calculate Storage Cost (Walrus) → Encrypt with SEAL

Publish Transaction (Sui) → Upload to Walrus → Get Blob ID

Content Available → Members can access based on tier

Data Flow: Membership

Member → Browse Creator → View Locked Content

Click Subscribe → Select Tier → Sign Transaction

Payment (USDC) → Update Membership Status (Sui)

Grant Access → Decryption Key Provided → Content Accessible

Technology Stack

LayerTechnology
BlockchainSui (Mainnet/Testnet)
SDK@mysten/sui, @mysten/walrus, @mysten/seal
AuthzkLogin (Google OAuth)
StorageWalrus Protocol
EncryptionSEAL Protocol
FrontendReact 19, Next.js 16, Tailwind CSS v4
StateTanStack Query, Zustand

Next Steps

Was this page helpful?