Image: Dominic’s Pizza — the AI pizzeria on the Internet Computer
Dominic’s Pizza reached mainnet this week. If you have looked at the market lately, you know what kind of week that is. We shipped anyway, because it was ready.
Dominic’s Pizza was built by one agentic engineer with more than 15 years as a developer, a little at a time, for more than a year.
What it is
Dominic’s Pizza — The AI Pizzeria on ICP. Name a pizza, AI cooks it, slice it on-chain. Some slices hide a big prize. Open your own franchise or play Pizza Vortex free for DOMICP. All on the Internet Computer.
About the name: it is a friendly nod to a famous pizza chain and, openly, to Dominic Williams. It is meant as respect, not parody. This is an independent project. It is not affiliated with or endorsed by DFINITY, by Dominic, or by any pizza brand.
Site: https://dominics.pizza
There are five parts. One at a time.
Pizza Paper
The project’s own document, inside the app: the use cases, how each product works, the supply allocation, the canisters with their IDs, and a roadmap that marks what is live and what is not. It is the long version of this post.
Pizzanomics
DOMICP is the app’s token (ICRC-1/2/3). 1,000,000,000 DOMICP were minted at genesis and that is also the maximum. Minting is locked: the minting account is the ledger’s own principal, so no key can mint, the supply never grows and every burn shrinks it. The allocation: 50% Ecosystem & Game Rewards, 20% DEX Liquidity, 15% Pizza Vortex Airdrop, 10% Development & Team, 5% Charity. Those wallets are public and listed on the Pizzanomics page, which reads the ledger live.
Every slice sold splits into 88% for that pizza’s prize pool, a 10% chef tip (staked into the franchise that baked it) and a 2% protocol fee. What gets burned:
- Weekly burn. Every 7 days
backendburns what has accumulated: that 2%, the prizes of winning slices nobody bought, and franchise rename fees. - Specials Board. Sending a suggestion or a bug report burns DOMICP straight from the user’s wallet; the canister holds no funds. Ranking counts only what was burned.
- Vortex house bots. Whatever they win is burned.
The buyback canister (swap fees paid in other tokens for DOMICP on ICPSwap, then burn it) is deployed and idle: pizzas are paid only in DOMICP today. The limit: DOMICP is not listed yet (see “Next”), so it has no market price today.
The pizzeria
You stake DOMICP to open a franchise and bake pizzas: a name, a template and, if you want, AI art. The art is paid in DOMICP; the payment sits in escrow and is refunded in full if the generation fails (a request blocked by the content filter keeps a 20% penalty). Anyone can buy slices. When sales close the pizza is revealed: the winning slices take the pool and the franchise earns its chef tip.
Screenshot: the house franchise’s menu: each AI pizza with its slice price, prizes and closing time
Prizes are a plain commit-reveal: at bake time the canister shuffles them with Random.blob() and publishes one SHA-256 commitment per slice; at reveal it publishes the salts and the browser recomputes each one with Web Crypto.
What that commit-reveal does not hide
No node can predict the subnet’s randomness (Random.blob()), and since the commitments are published at bake time, nobody can change a prize without it showing. But the prize list and the seed the salts are derived from sit unencrypted in canister memory. No public query returns them before the reveal; that is the seal against players. Every node on the subnet, though, holds a full copy of that memory, and a node provider with access to their own machine could, in theory, read a prize early. They cannot change it or pick it: only see it. vetKeys timelock encryption could hide the list until reveal, but the plaintext still exists inside the canister at bake time, so it narrows the window rather than closing it. The deeper way out is hardware-protected memory: ICP is already rolling out subnets with AMD SEV-SNP, but they are not yet available to a canister like this one.
The slice-index canister keeps the permanent history of every slice (baked, sold, revealed). The Slice Explorer runs on top of it: open a revealed slice and your browser checks the commitment; “Run it yourself” opens the same check in a public online editor, so you do not have to trust our site.
Pizza Vortex
A free real-time multiplayer game. Your pizza absorbs toppings and smaller pizzas, and what it absorbs is worth DOMICP. Prizes come from the 15% Pizza Vortex Airdrop, which tops up the game’s treasury one week at a time.
Why it does not live in a canister
We did try that first. The original pizza-vortex stepped the physics itself on a 1 Hz timer, took input through a set_input update, and served the arena through a get_world query that clients polled. It worked, and it was not a game:
- The contest is decided by who overlapped whom at a given instant. An update call settles in about 2 s, and a subnet finalises roughly one block per second. The simulation needs 60 ticks per second, about 3,600 per round. A per-tick authoritative loop cannot go through consensus.
- A canister answers calls. It does not hold a socket open or push state to players, so clients had to poll.
- One timer firing every second is about 86,400 executions a day, each one persisting 20 pizza positions and up to 150 ingredients, whether or not anyone was playing.
- Any query can be called in replicated mode, and then the canister pays. A fat
get_worldwas a cycle drain waiting for someone to notice.
The game server. The tick moved to a Rust process: authoritative, 60 Hz, over WebSocket, with a WebRTC DataChannel alongside it (Cloudflare Realtime) that delivers a signed copy of each tick sooner; if that channel fails, the game carries on over the WebSocket without a break. The canister kept what it is uniquely good at: it seals the round’s pool before the lobby opens (it publishes the SHA-256 and reveals the amount when the lobby closes), fixes the schedule, and admits players (anti-bot check plus proof of work). While the round is being played it writes nothing: a round costs it a few dozen update calls instead of a timer firing every second.
Determinism and attestation. The same Rust simulation crate runs natively on the server and as wasm in every browser. It uses Q16.16 fixed point and contains no floats, because libm functions, FMA contraction and NaN bits are not guaranteed to match between native and wasm builds. Each tick is chained with SHA-256 over the canonical state and inputs. Players replay the round and attest the final hash, and the canister pays only when two thirds of the non-house seats attest the same one.
The honest limit. That makes a round reproducible, not trustless. The inputs are the ones the server publishes, so the server key is trusted for each round’s pool. What bounds it is a per-round ceiling and a daily budget. Rounds can also include house bots; what they earn is burned.
Pizza Bonds
A bond is a purchase: you pay ICP and receive DOMICP at a discount, released gradually. There is a waiting period first, then six tranches that you claim as they unlock.
The bonds canister pairs that ICP with DOMICP from the 20% DEX Liquidity allocation and deposits it as liquidity in the DOMICP/ICP pool on ICPSwap, in a position the canister itself owns. The lock is the absence of code: there is no method to withdraw that liquidity or to transfer the position. Until the pool exists, bonded ICP waits in the canister.
The limit: that holds for as long as the code does not change, and a canister can be upgraded by its controller. So the page shows the canister’s controllers and the installed module hash, read live from the IC state tree.
The common part: 13 canisters and what runs outside
Thirteen canisters, most of them in Motoko. Each section above covered its own; the table below is the reference. Sign-in is Internet Identity and the app ships in nine languages.
The 13 canisters, one by one
| Canister | What it does |
|---|---|
frontend |
Asset canister with the whole web app |
backend |
The pizzeria: franchises, pizzas, slices, prizes, weekly burn |
slice-index |
Permanent history of every slice |
domicp |
The DOMICP ledger: a Motoko ICRC-1/2/3 ledger (fork of the open-source ICRC_fungible) |
domicp-index |
DFINITY’s ICRC index, for balances and history per account |
pizza-vortex |
Vortex round protocol: seals, admits, settles and pays |
specials-board |
Suggestions and bugs, ranked by DOMICP burned |
bonds |
Pizza Bonds and the protocol-owned liquidity |
buyback |
Buy-back-and-burn. Deployed, idle today |
oracle |
DOMICP price for display only. Nothing economic reads it |
monitoring |
Sweeps every canister’s cycles and forms a verdict |
health |
Public /health HTTP endpoint. Controller of nothing, on purpose |
cycles-keeper |
Tops up the others without controlling any of them |
Today each canister has two human controllers held by the project (one is a backup) and, except health and cycles-keeper, also monitoring, which needs it to read canister_status. No service key is a controller. The plan is to hand them to an SNS (see below).
monitoring and health are split for a reason we learned the hard way: in August, before launch, the game canister ran out of cycles and sat frozen for about ten hours while a health check kept saying all was fine. Now the canister that sees everything has no public HTTP, and the one facing the internet controls nothing.
Two pieces run off-chain, on a Hetzner VPS. Neither holds funds. One is the Vortex game server. The other is the AI image worker: image models need GPUs and are not deterministic, and the model’s API key cannot live in canister memory (every node would see it), so the worker claims paid jobs from backend, gets the image generated, and submits it. Cloudflare provides DNS, the proxy in front of the game server, the Realtime WebRTC relay, and the Turnstile check before a player joins a round.
Next
- Community franchises. The goal is for allied projects and communities across the ecosystem to open their own themed franchises, with their own pizzas, their own look and their own audience, on top of the same on-chain pizzeria. If your community wants one, get in touch.
- Pizzas in several tokens, including ones from other chains. Paying for slices with other ICP tokens that follow the ICRC-2 and ICRC-3 standards, not just DOMICP, is almost ready. After that, the plan is to add tokens from other blockchains, such as Solana.
- The game server tick moves to OpenCloud (planned, no date). It is on a VPS because OpenCloud did not exist when we built it. A sovereign, ICP-native engine that can run a low-latency process is the natural home for that loop.
- SNS. The plan is to hand the canisters to an SNS DAO some months after launch.
- DOMICP is not listed on any swap or exchange yet. Listing is waiting on a fix on ICPSwap’s side. Please do not trust any DOMICP pool until we announce it.
Thanks, and an ask
Much of how we think about software comes from watching Dominic Williams and the DFINITY team build this network in public. This project is our way of saying thank you with working code. If anyone at DFINITY, or Dominic himself, ever has a slice of time to look at it, we would be grateful for whatever you think.
For everyone here, the feedback we want most is the critical kind:
- Is player-quorum attestation plus sealed ceilings a reasonable bound for the Vortex trust model? What would you do differently?
- Has anyone run a real-time loop on a cloud engine yet? What should we expect?
- What confused you in the first two minutes of the app?
- How would you hide a secret like this from node providers as well? Has anyone tried canisters on TEE nodes (AMD SEV-SNP, for example), or do you know a better pattern for keeping a prize drawn on-chain invisible until the reveal?
- If your community had a themed franchise, what would it need to have to be worth it?
Links: dominics.pizza · X dominicspizzaic · Instagram dominics.pizza · TikTok dominicspizzaic
Thanks for reading.