LarzVault — A Tamper-Evident Idle Game, Built in Larzscript
Every browser idle game is trivially cheatable — open devtools, set a variable, done. In LarzVault, no code path can create money from nothing, because wallet and pay are real language primitives, not application logic — and the save file itself is cryptographically signed, so even editing it by hand gets caught.
What LarzVault actually does
A single-file terminal idle game: buy from 8 upgrades to raise your passive income rate, each purchase a real require-guarded pay that's refused outright if you can't afford it — no partial charge, no silent clamp. Even idle income is a real pay, sourced from one large-but-finite "World Reserve" wallet declared once at genesis, so "free" money still goes through the same enforcement as every purchase. The save file is HMAC-SHA256 signed with a secret generated on first run — casual tampering is caught, stated honestly as the real scope of that guarantee.
Every line below is the real output of a fresh run against the actual interpreter — re-run fresh for this page, not copied from documentation.
larzscript larzvault.lz status larzscript larzvault.lz buy solar
Balance: $5.00 Income: $0.02/s | Solar Panel | $10.00 | +$0.05/s | Not enough for Solar Panel - need $10.00, have $5.04.
$5.04 isn't enough for a $10.00 panel, and require refuses the purchase outright — the same mechanism the course's error-handling lesson covers, here guarding a game economy instead of a bank transfer.
sed -i 's/"player_cents":[0-9]*/"player_cents":999999999/' ~/.larzvault/save.json larzscript larzvault.lz status
This save's signature doesn't match its contents - been in the file, have you? Refusing to load a tampered/corrupted save. (~/.larzvault/save.json)
A real sed edit to the save file, with no knowledge of the per-install secret — the HMAC signature no longer matches the contents, and the game refuses to load it. This is the one flagship project in the series protecting data at rest, not just a transaction in flight.
Why it matters
require gating a purchase is the same shape as LarzBank's overdraft check — but LarzVault adds something none of the others do: real cryptographic integrity on the save file itself, built on the Larz Stack's crypto package. Stated honestly in the project's own README: this catches casual tampering, not a determined local attacker who reads their own secret file — an honest security claim is more useful than an overstated one.