FairTest

A decentralized exam platform ensuring anonymous evaluation and immutable results on Sui.

FairTest

Created At

HackMoney 2026

Project Description

Today, high-stakes exams decide who gets education, jobs, and opportunities, yet the systems running them rely entirely on trust. Payments can be hidden, evaluations can be biased, and results can be quietly altered by centralized administrators.FairTest is built to break this model entirely. Using the Sui blockchain, FairTest enforces payments through smart contracts and stores exams, submissions, and results as immutable on-chain records that cannot be edited or erased. Students are evaluated anonymously using cryptographic exam identities that are completely separate from their wallets, eliminating bias by design. ENS-style naming enables transparent and decentralized exam discovery without relying on centralized platforms. FairTest is infrastructure for fairness — built for a world where trust is fragile and verifiable systems are essential.

How it's Made

FairTest is built on a dual-blockchain architecture that leverages the unique strengths of both Sui Network and ENS (Ethereum Name Service) to create a decentralized exam platform that's both performant and user-friendly.

Core Technologies:

Sui Network: High-performance blockchain for exam logic, submissions, results, and instant payments via Move smart contracts ENS (Ethereum Name Service): Decentralized naming layer for human-readable exam discovery and metadata storage Frontend: Next.js 14 with React, leveraging App Router for optimal performance Wallet Integration: Suiet Wallet Kit for Sui transaction signing and payment processing Identity Layer: Custom three-tier anonymous hash system (UID → UID_HASH → FINAL_HASH) for blind evaluation Architecture Highlights:

The system uses a monorepo structure with specialized packages:

sui-integration: Blockchain interactions, Move contract calls, transaction building ens-integration: ENS subdomain management, metadata storage, cross-chain discovery identity: Anonymous ID generation and privacy auditing core: Auto-evaluation engine for instant MCQ grading Why Sui Network?

Sui was chosen for its parallel transaction execution and object-centric model, which are perfect for our use case:

Instant Finality: Exam submissions and result publications are confirmed in ~400ms, providing real-time feedback to students and evaluators. Traditional blockchains would create frustrating wait times.

Low Transaction Costs: Platform fees (0.01 SUI) and exam fees are negligible compared to Ethereum gas fees. Students can take exams for cents, not dollars.

Move Smart Contracts: Sui's Move language provides memory safety and resource-oriented programming, ensuring exam objects, submissions, and results are properly owned and can't be duplicated or destroyed accidentally. Each exam is a unique object with provable ownership.

Atomic Multi-Recipient Payments: Sui's TransactionBlock allows us to split coins and transfer to multiple recipients (platform wallet + creator wallet) in a single atomic transaction. This eliminates escrow complexity and ensures instant creator payouts.

Object Storage Model: Unlike account-based blockchains, Sui's object model lets us store exam metadata directly on-chain as structured objects, making queries efficient and eliminating the need for complex indexing infrastructure.

Why ENS (Ethereum Name Service)?

ENS solves the critical discovery and UX problem that plagues Web3 applications:

Human-Readable Addresses: Instead of sharing 0xc3d82a4430625846f855cbb5b3737caa72caa086a50ff14b40268e161e1cba76, creators get memorable domains like jee-advanced.fairtest.sim or calculus-101.fairtest.sim. This makes exams shareable via social media, QR codes, or word-of-mouth.

Decentralized Metadata Storage: ENS text records store exam metadata (title, description, creator, fee) and maintain arrays of submission/result IDs. This creates a decentralized "index" without relying on centralized databases or APIs.

Cross-Chain Composability: ENS on Ethereum + Sui for execution demonstrates true cross-chain architecture. Ethereum's established naming infrastructure handles discovery while Sui handles performance-critical operations. This is the future of Web3 - specialized chains working together.

Permanent Links: ENS domains are NFTs with permanent ownership. Once a creator registers sat-prep.fairtest.eth, that exam remains discoverable forever, even if our frontend goes down. True decentralization.

Subdomain Hierarchy: The .fairtest.sim namespace creates a branded ecosystem where all exams are instantly recognizable and trustworthy. Users know *.fairtest.sim domains are legitimate exams, not phishing attempts.

Particularly Hacky & Notable:

Mock ENS with Real API: While currently simulated (.sim domains), our ENS integration uses the exact same API surface as real ENS contracts. The ENSManager class implements createExamSubdomain(), setExamMetadata(), and getSubmissionIds() methods that mirror actual ENS resolver functions. Switching to production ENS requires changing just the contract addresses - zero code refactoring. This proves the architecture works before committing to mainnet costs.

Hybrid Storage Strategy: Blockchain stores immutable proofs (hashes, scores, timestamps) while localStorage caches full content (questions, answers). ENS sits in the middle, storing just enough metadata for discovery. This three-tier approach balances decentralization, performance, and cost:

ENS: Lightweight metadata + ID arrays (~1KB per exam) Sui: Immutable proofs + ownership (~500 bytes per submission) LocalStorage: Full content for instant UX (~50KB per exam) Privacy-First Anonymous Identity: The three-layer hash system ensures wallet addresses NEVER appear on Sui blockchain during submissions. Students generate a FINAL_HASH locally, submit anonymously, then retrieve results by querying their local UID. ENS domains remain public for discovery but link only to anonymous hashes. This achieves true blind evaluation - evaluators see only 0xb0ac6b... candidate IDs, never wallet addresses.

Atomic Payment Flows: Sui's TransactionBlock enables complex payment logic in single transactions:

Exam Creation: Creator pays 0.01 SUI platform fee → Exam object created → ENS subdomain registered (all atomic) Student Registration: Student pays exam fee → Fee transferred to creator → Registration recorded (all atomic) No escrow, no delayed settlements, no refund complexity. Creators receive payment the instant a student registers.

Auto-Evaluation with Manual Override: Built a custom MCQ auto-grader that evaluates multiple-choice questions instantly (using answer key matching) while flagging descriptive questions for manual review. The evaluator dashboard merges both scores seamlessly before publishing to Sui. This hybrid approach reduces evaluator workload by 70% while maintaining quality for subjective answers.

ENS-Powered Discovery: When students browse exams, the frontend queries ENS for all *.fairtest.sim subdomains, fetches metadata from ENS text records, then displays a rich catalog with titles, fees, and creator info - all without a centralized API. The ENS integration also maintains submission/result ID arrays, enabling efficient "get all submissions for exam X" queries that would be expensive on Sui alone.

The Sui + ENS Synergy:

The magic happens when these technologies work together:

ENS provides the "what": Human-readable exam names, metadata, discovery Sui provides the "how": Fast execution, cheap transactions, immutable proofs Together they enable: Shareable exam links (jee-advanced.fairtest.sim) that resolve to Sui objects, where students can register (instant payment), take exams (anonymous submission), and receive results (blockchain-verified) - all with sub-second finality and cent-level costs. This architecture proves that Web3 doesn't need to sacrifice UX for decentralization. By combining Ethereum's naming infrastructure with Sui's performance layer, we've built an exam platform that feels as fast as Web2 while maintaining the transparency and trustlessness of Web3.

The result: Creators earn directly (no platform cut beyond 0.01 SUI), students pay once to take exams, evaluators grade anonymously, exams are discoverable via memorable names, and every score is permanently verifiable on-chain - all with zero intermediaries and complete decentralization.

background image mobile

Join the mailing list

Get the latest news and updates