Project Name
CKB-UGAP — Universal Decentralized Game Achievement and Identity Protocol System Based on CKB (UGAP: Universal Game Achievement Protocol)
Team / Personal Profile & Contact Information
- Project Lead: Xiang’ao Liu (Independent Developer)
- Background: Undergraduate student at Wuhan University of Technology (WHUT), Intern at PLCT Lab (ISCAS) and OE-RV. Capable of contributing to large-scale projects; submitted bug-fix patches for
riscv-gnu-toolchainduring the PLCT GNU team stint and published related technical reports. - Contact Information:
- E-mail: [email protected]
- Discord: @hno3miracle
- Telegram: @HNO3Miracle
Industry Pain Points & Core Issues: Web2 Data Silos and Web3 Human-Computer Interaction (HCI) Friction
In the current digital entertainment industry, players invest massive amounts of time generating “Proof of Play,” yet their achievements and honors are trapped within centralized servers. Once a game shuts down, these are wiped out, lacking cross-domain interoperability. To address this, the current Web3 GameFi paradigm attempts to solve the issue through on-chain assets but has fallen into the quagmire of excessive financialization (Play-to-Earn), sparking strong resistance from core gamers. A deeper barrier lies in the massive friction of Human-Computer Interaction (HCI): forcing players to understand seed phrases, manage private keys, and pay fluctuating Gas fees. This counter-intuitive interaction logic directly severs the migration path of traditional gamers to Web3.
Solution: CKB-UGAP Prototype Architecture
Approaching from the perspective of Human Factors in Computing Systems (HCI), this project aims to verify: to what extent can the acceptance threshold of traditional game developers and players be broadened when complex underlying cryptographic verifications are completely concealed? To this end, we propose building the UGAP (Universal Game Achievement Protocol) Testnet MVP.
- Absolute Decoupling for Developers (RESTful API): The game client does not need to integrate heavy Web3 SDKs. When a player unlocks an achievement, the game engine simply sends a minimalist JSON POST request to the relayer gateway.
- Server-Side State Management & Silent Fee Sponsorship (Relayer & Sponsor): The backend Node.js relayer deeply integrates
@ckb-ccc/core, silently callingcompleteFeeByandcompleteInputsByCapacityto fully sponsor the underlying storage rent and transaction fees for the achievement Cell on behalf of the player, folding the technical complexity into the server side. - Account Abstraction & Cross-Domain Identity Aggregation (JoyID): Players senselessly generate a CKB aggregated address via FIDO WebAuthn (Face ID/Touch ID/etc.) and, in the frontend display hall, intuitively receive and aggregate their Spore DOB digital resumes across different games.
Relevance to the CKB Ecosystem
This project perfectly aligns with the practical needs of the CKB ecosystem’s outward expansion (Mass Adoption) and maximizes the unique competitive advantages of its technical foundation:
- Meeting the Practical Needs for CKB Ecosystem Expansion: The CKB ecosystem urgently needs non-financial infrastructure that can bring in real, high-frequency users. Through the emotionally resonant medium of “game achievements,” UGAP introduces traditional gamer communities to CKB and JoyID with zero cognitive burden, exploring how cross-game identity aggregation positively influences player behavior.
- Unleashing the Technical Moat of the CKB Cell Model and Spore Protocol:
- Circumventing Smart Contract Single-Point Risks: Unlike EVM’s dictionary structure (Mapping), CKB’s Cell model grants data true First-class State ownership; achievements are independently locked and controlled by the players.
- Ultimate Value Mapping: UGAP adopts Nervos’ native Spore DOB protocol. Achievement metadata is directly encoded into the immutable Cell (1 Byte = 1 CKB). This mechanism, which directly anchors “digital honors” to the physical space capacity of CKB, demonstrates CKB’s unique technical aesthetics that distinguish it from any sidechain.
Expected Deliverables & Reproducible Verification Standards
The MVP will be deployed on the CKB Testnet, providing comprehensive open-source code and independently reproducible verification paths:
- Open-Source Code Repository & API Specifications
- Deliverables: Full source code for the Relayer (server-side), Frontend (cross-game hall), and API integration documentation.
- Verification Standard: Reviewers can clone the repository, execute
npm installandnpm run startto successfully launch the local service without fatal errors.
- Testnet Relayer Sponsorship Logic (Relayer MVP)
- Deliverables: An API node deployed on an independent server to process on-chain achievements and complete fee sponsorship.
- Verification Standard: Reviewers send a test request containing a
game_uuidto the provided API via Postman. The system must return an HTTP 200 status code and a Testnettx_hashwithin 3 seconds. Observing this hash in the CKB explorer must verify the successful minting of a Spore DOB, with the underlying capacity fee sponsored by the server-side Sponsor pool.
- Web-Based Cross-Game Achievement Hall (Frontend MVP)
- Deliverables: A responsive webpage integrating JoyID login and CKB Indexer reverse parsing.
- Verification Standard: Reviewers use the JoyID (WebAuthn) test environment for one-click login to the hall. The frontend must correctly read the on-chain state on the Testnet, parse the
dob_metadata, and visually render the cross-domain achievement badge minted in the previous step.
Budget Breakdown
The total funding requested for this project is $1,000 USD . As this phase focuses on verifying the HCI experience and establishing the Testnet infrastructure, the budget excludes Mainnet infrastructure costs, allocating resources most efficiently to core technical breakthroughs and testing infrastructure:
- $500 - Core Architecture & Smart Sponsorship Logic Development: Subsidizes developer hours for overcoming technical difficulties within a short cycle. Focuses on resolving UTXO Cell State Contention under high concurrency and deeply encapsulating the CCC SDK to assemble complex transactions involving the Spore protocol and Capacity sponsorship.
- $350 - Account Abstraction Integration & Frontend Parsing Engine: Allocated for developing the cross-domain display hall. The core difficulties lie in the deep integration of
@joyid/ckband integrating the Indexer to achieve real-time decoding of the on-chain DOB binary data (Decoder) and frontend visual rendering. This is crucial for verifying the ultimate seamless user experience. - $150 - Testnet Infrastructure & RPC Leasing: Leasing an independent cloud server to deploy a highly available Relayer node, configuring the test environment database, and covering the RPC request costs required for high-frequency API testing and frontend state fetching (covering at least 3 months of operation and demonstration).
Estimated Completion Time & Agile Roadmap
The development cycle for this project is estimated to be 8 weeks (approx. 2 months). It focuses on agile iteration within a very short period to bridge the gap between traditional clients and the Web3 infrastructure.
- Weeks 1-2 (Communication Layer Setup): Finalize the JSON Payload API specification; build the Node.js backend gateway to handle concurrent external requests and queue lock management.
- Weeks 3-4 (On-Chain Logic Integration): Deeply integrate the
@ckb-ccc/coreSDK into the backend; fully run the core transaction flow of Spore DOB/0 protocol minting andcompleteFeeBy(sponsorship) on the CKB Testnet. - Weeks 5-6 (Identity & Presentation Layer): Develop the frontend hall UI; implement the binding authorization of “Game UUID” and JoyID aggregated address based on
@joyid/ckb; develop a data parser to read on-chaindob_metadata. - Weeks 7-8 (Delivery & Consolidation): End-to-end full-link stress testing and integration; organize code and architecture whitepaper; record a one-take demonstration video, and submit the project completion and reproduction instructions to the Committee.
Clear To-Do List
Backend (Relayer API Development)
- Define the strict data payload (JSON Schema) for
/api/v1/achievement/mint. - Build a high-performance relay backend and basic authentication mechanism based on Node.js/TypeScript.
- Integrate CKB CCC SDK and encapsulate the
createSporetransaction logic. - Configure the Testnet Sponsor key to achieve the closed loop of
completeInputsByCapacityand silent miner fee sponsorship. - Establish a lightweight database mapping table to persistently store the association between
Game_UUID <-> JoyID_CKB_Address.
Frontend (Web Hall Development)
- Initialize the React/Next.js frontend project and configure responsive UI.
- Integrate the JoyID SDK and complete the FIDO passwordless login process in the test environment.
- Connect to CKB GraphQL or a third-party RPC to implement Spore asset queries for the current JoyID address.
- Develop the data rendering module: reverse parse the on-chain DOB/0 protocol and render the attributes into achievement cards.
Testing & Delivery
- Conduct automated script packet-sending simulations on the CKB Testnet to resolve potential UTXO conflict errors.
- Write open-source technical documentation (
README.md) including interface examples, local startup instructions, and testing steps.
项目名称
CKB-UGAP —— 基于 CKB 的通用去中心化游戏成就与身份协议系统
(UGAP: Universal Game Achievement Protocol)
团队 / 个人简介及联系方式
- 负责人:刘向奥(独立开发者)
- 背景简介:武汉理工大学本科生,中科院软研所 PLCT 、OERV 实习生。有贡献大型项目的能力,在 PLCT GNU小队期间为 riscv-gnu-toolchain 提交 bug 修复 patch,并完成相关公开技术报告。
- 联系方式:
- E-mail: [email protected]
- Discord: @hno3miracle
- Telegram: @HNO3Miracle
行业痛点与核心议题:Web2 的数据孤岛与 Web3 的人机交互 (HCI) 摩擦
在当前的数字娱乐产业中,玩家投入海量时间产生“游戏工作量证明”,但成就与荣誉被困于中心化服务器,一旦停服便灰飞烟灭,缺乏跨域互操作性。 面对这一问题,当前的 Web3 GameFi 范式试图用资产上链来解决,却陷入了过度金融化(P2E)的泥沼,引发了核心玩家的强烈抵触。更深层次的壁垒在于人机交互(HCI)的巨大摩擦力:强制要求玩家理解助记词、管理私钥以及支付波动的 Gas 费,这种反直觉的交互逻辑直接切断了传统玩家向 Web3 迁移的路径。
解决方案:CKB-UGAP 原型架构
本项目从 Human Factors in Computing Systems (HCI) 的视角出发,旨在验证:当底层复杂的密码学验证被完全隐匿后,传统游戏开发者与玩家的接受阈值能被拓宽到何种程度。 为此,我们提出构建 UGAP (Universal Game Achievement Protocol) 测试网 MVP。
- 对开发者绝对解耦 (RESTful API):游戏端无需集成沉重的 Web3 SDK。当玩家达成成就时,游戏引擎仅需发送一个极简的 JSON POST 请求至中继网关。
- 服务端状态管理与静默代付 (Relayer & Sponsor):后端的 Node.js 中继器深度集成
@ckb-ccc/core,静默调用completeFeeBy和completeInputsByCapacity,为玩家全额垫付成就 Cell 的底层存储租金与手续费,将技术复杂性折叠在服务端。 - 账户抽象与跨域身份聚合 (JoyID):玩家通过 FIDO WebAuthn(面容/指纹)无感生成 CKB 聚合地址,并在前端展示大厅中,直观地查收和聚合跨越不同游戏的 Spore DOB 数字履历。
与 CKB 生态的关联性
本项目精确对齐 CKB 生态向外扩张(Mass Adoption)的实际需求,并将其技术底座的独特竞争优势发挥到了极致:
- 满足 CKB 生态破圈的实际需求:CKB 生态迫切需要非金融属性的、能带来真实高频用户的基建。UGAP 通过“游戏成就”这一具有情感认同的媒介,以零心智负担的方式为 CKB 和 JoyID 引入传统玩家群体,探索跨游戏身份聚合如何正向影响玩家行为。
- 释放 CKB Cell 模型与 Spore 协议的技术护城河:
- 规避智能合约单点风险:不同于 EVM 的字典结构(Mapping),CKB 的 Cell 模型赋予了数据真正的一等公民所有权(First-class State),成就归玩家独立锁仓控制。
- 极致的价值映射:UGAP 采用 Nervos 原生的 Spore DOB 协议。成就元数据直接编码在不可篡改的 Cell 中(1 Byte = 1 CKB)。这种将“数字荣誉”直接锚定 CKB 物理空间容量的机制,展示了 CKB 区别于任何侧链的独特技术美学。
预期交付成果与可复现验收标准
MVP 将部署于 CKB Testnet (测试网),并提供详尽的开源代码与可独立复现的验证路径:
- 开源代码仓库与 API 规范
- 交付内容:包含完整的 Relayer(服务端中继器)源码、Frontend(跨游戏大厅)源码与 API 接入文档。
- 验收标准:评审员可 clone 仓库,执行
npm install与npm run start成功拉起本地服务,无致命报错。
- 测试网中继代付逻辑 (Relayer MVP)
- 交付内容:部署于独立服务器的 API 节点,处理成就上链并完成代付。
- 验收标准:评审员通过 Postman 向提供的 API 发送包含
game_uuid的测试请求。系统需在 3 秒内返回 HTTP 200 及测试网tx_hash。在 CKB 浏览器中观测该哈希,需验证 Spore DOB 成功铸造,且底层占用费由服务端 Sponsor 资金池代付。
- Web 端跨游戏成就大厅 (Frontend MVP)
- 交付内容:集成 JoyID 登录与 CKB Indexer 逆向解析的响应式网页。
- 验收标准:评审员通过 JoyID (WebAuthn) 测试环境一键登录大厅,前端能正确读取测试网链上状态,解析
dob_metadata并可视化渲染出上一步铸造的跨域成就徽章。
所需资金 (Budget Breakdown)
本项目申请总资金为 $1,000 美元。由于本阶段聚焦于验证 HCI 体验与跑通测试网底层架构,预算剔除了主网基建开销,将资源最高效地分配给核心技术攻坚与测试基础设施:
- $500 - 核心架构与智能代付逻辑研发:补贴开发者在短周期内攻克技术难点的工时。重点解决高并发下的 UTXO Cell 状态冲突(State Contention)、深度封装 CCC SDK 组装包含 Spore 协议和 Capacity 代付的复杂交易逻辑。
- $350 - 账户抽象集成与前端解析引擎:用于开发跨域展示大厅。核心难点在于深度接入
@joyid/ckb,以及集成 Indexer 实现链上 DOB 二进制数据的实时解码(Decoder)与前端视觉渲染,这是验证用户最终无感体验的关键一环。 - $150 - 测试网基础设施与 RPC 租赁:租赁独立的云服务器部署高可用 Relayer 节点,配置测试环境数据库,并覆盖高频 API 测试及前端抓取状态所需的 RPC 请求开销(覆盖至少 3 个月的运行与演示期)。
预计完成时间与敏捷路线图
本项目开发周期预计为 8 周 (约 2 个月)。聚焦于短周期内的敏捷迭代,打通从传统端到 Web3 底层的通路。
- 第 1-2 周(通信层搭建):敲定 JSON Payload API 规范;搭建 Node.js 后端网关,实现对外部并发请求的接收与队列锁管理。
- 第 3-4 周(链上逻辑联调):在后端深度集成
@ckb-ccc/coreSDK;在 CKB Testnet 上彻底跑通 Spore DOB/0 协议铸造及completeFeeBy(垫付)的核心交易流。 - 第 5-6 周(身份与展现层):开发前端大厅 UI;基于
@joyid/ckb实现“游戏 UUID”与 JoyID 聚合地址的绑定授权;开发数据解析器读取链上dob_metadata。 - 第 7-8 周(交付与沉淀):全链路端到端压测联调;整理代码与架构白皮书;录制一镜到底演示 Demo,向 Committee 提交结项与复现说明。
清晰的 To-do List
Backend (Relayer API 研发)
- 定义
/api/v1/achievement/mint的严格数据载荷 (JSON Schema)。 - 基于 Node.js/TypeScript 搭建高性能中继后端与基础鉴权机制。
- 集成 CKB CCC SDK,封装
createSpore交易逻辑。 - 配置测试网 Sponsor 密钥,实现
completeInputsByCapacity和矿工费静默代付闭环。 - 建立轻量级数据库映射表,持久化存储
Game_UUID <-> JoyID_CKB_Address的关联。
Frontend (Web Hall 开发)
- 初始化 React/Next.js 前端工程,配置响应式 UI。
- 集成 JoyID SDK,跑通测试环境的 FIDO 免密登录流程。
- 接入 CKB GraphQL 或第三方 RPC,实现针对当前 JoyID 地址的 Spore 资产查询。
- 开发数据渲染模块:逆向解析链上 DOB/0 协议,将属性渲染为成就卡片。
测试与交付
- 在 CKB Testnet 进行自动化脚本发包模拟,解决潜在的 UTXO 冲突报错。
- 撰写包含接口示例、本地拉起说明与测试步骤的开源技术文档 (README.md)。