VITALSBLOGbuilder updates, as published
Vitals World · Crypto World's Fair

Day 6: what the chain actually does

· first published as builder update #256 on Colosseum

Day 6. People keep asking what the chain actually does in a medical simulator, so here it is. Each patient is one account on Solana. It holds her state, who has her right now, and one hash: her last shift. That's it. Her chart isn't stored anywhere. When you open her, your browser pulls every shift ever anchored on her, replays the tapes through the same physics engine, and that's the chart. If our server lied, your replay wouldn't match. A shift is four small transactions. Commit (which case, without saying which). TakeShift (a ten-minute lease). You play in the browser, nothing on chain. AnchorShift, one leaf, and it becomes her new head. It carries the head you think you're extending. If someone anchored before you, the program says StaleHead and writes nothing. That rule caught our own demo driver before it caught anyone else. Costs: 10,000 lamports a shift, two signatures. Our relay pays. Nobody makes a wallet. What the chain doesn't do: judge the medicine. That's the rubric, replayable from the tape, shown separately. 32-second walkthrough attached. https://world.vitals.academy/?src=colosseum

One native program on devnet: a patient is an account holding the hash of her last shift
One native program on devnet: a patient is an account holding the hash of her last shift
Four instructions make a shift: commit, take, anchor, free
Four instructions make a shift: commit, take, anchor, free
The next stranger's browser rebuilds her chart from every leaf
The next stranger's browser rebuilds her chart from every leaf
The relay pays; every number the ward shows is re-countable from the chain
The relay pays; every number the ward shows is re-countable from the chain
Correction, 3 October: we wrote that a shift costs 10,000 lamports. That is the fee for one of its transactions, each signed twice. A shift is three transactions, 30,000 lamports, plus one more the first time a player's account is opened. Our relay pays all of them.