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.
