← Projects

Mystery Gift randomness app showing execution controls, network selection, and request pricing
Public randomness app showing the execution surface, $0.01 request pricing, network selection, and wallet-gated flow.

Mystery Gift

TEE-backed verifiable randomness infrastructure for giveaways and gachapon systems without on-chain costs.

Verifiable randomness infrastructure · Public product site, writeup, open source, and live RNG API (healthy)

Intel TDXPhala CloudArweavex402TypeScript
API status
Healthy / live
rng.mysterygift.fun returns attested randomness from Intel TDX (health check ok; tee_type tdx).
Modeled cost
~$0.01 / pull
Writeup model for TEE + Arweave offchain randomness — not a live billed SLA.
Modeled savings
96%+ vs VRF
Modeled against Switchboard-style VRF at 1,000 daily pulls in the writeup; treat as analysis, not production telemetry.

Overview

Mystery Gift needed verifiable randomness for gacha-style rewards without paying on-chain VRF prices on every pull. The result is an offchain randomness API that runs inside Intel TDX, returns an attested result, and stores proof material on Arweave.

Problem

Gacha, loot, and any random reward that involves real money needs fairness evidence. Chainlink-style VRF is the wrong cost model for thousands of offchain pulls a day.

What I built

  • A client requests randomness.
  • The service generates the value inside Intel TDX.
  • The response includes hardware attestation that the expected code ran.
  • Proof material is written to Arweave so anyone can inspect later.

Hard parts

This is not a smart-contract VRF replacement. It is for offchain game systems that need public fairness evidence without EVM consumption on every pull. Getting that distinction right in the API and the writeup mattered as much as the TEE wiring.

Result

The writeup models 1,000 daily pulls against Switchboard and Chainlink-style VRF. Product site: mysterygift.fun. Source: Forgejo / GitHub. The live API at rng.mysterygift.fun is healthy (Intel TDX TEE, attested randomness). Full argument: Hardware Over Oracles.

# tee# cryptography# infrastructure# games