LarzCourt — Staked-Jury Dispute Resolution, Built in Larzscript
Jurors don't just vote — they stake their own money on being right. resolve() decides the direction of several payments at once: the majority splits the minority's slashed stake, proportional to how much each juror staked. Stay silent and you're treated exactly like a wrong vote.
What LarzCourt actually does
Each juror's stake is real money on the line, not a reputation score. resolve() tallies the votes, decides the ruling, and redistributes every losing juror's stake to the winners in a single call — not one require gating one transaction, but a payout direction computed for everyone at once.
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. Alice and bob voted plaintiff; carol voted defendant, alone.
court.vote(case1, alice, "plaintiff") # staked $20 court.vote(case1, bob, "plaintiff") # staked $30 court.vote(case1, carol, "defendant") # staked $10, alone court.resolve(case1)
ruling: plaintiff alice: $104 bob: $106 carol: $90 (whole $10 stake redistributed to alice and bob)
Carol voted alone against alice and bob, so her entire $10 stake is redistributed to them — proportional to each winner's own stake, not split evenly. Bob staked more than alice, so bob's share of carol's slashed stake is bigger.
court.resolve(case2) # bob never voted at all court.resolve(case3) # alice vs carol, split evenly
ruling: plaintiff alice: $114 bob: $96 ruling: tie - all stakes refunded alice: $114 carol: $90
Bob simply never voted — there's no exemption for silence, so his stake is slashed exactly like a wrong vote. And when alice and carol split evenly, there's no majority to reward and no minority to slash, so resolve() just refunds every stake, dollar for dollar.
Why it matters
Every project before this one in the series checks a single require gating a single transaction. LarzCourt's resolve() is the first to decide the direction of several payments at once — a majority's winnings and a minority's losses computed together, in the same call, the same way the course's error-handling lesson covers refusal logic. wallet, pay, and require are the same money-native core the course's Money-Native Basics lesson teaches — composed here into a Schelling-point mechanism where voting honestly is the profitable choice.