Holdova
$HOLDOVA

Fair draws

Check any draw

Founding grants, stimulus, public works and the lottery are drawn from a published list of citizens, weighted by minutes held (at most 1440). The seed is a Solana block 50 slots after the list is fixed, so nobody knows it in advance.

Draws

  1. The first draw is a founding grant, a few minutes after the founding.

Draw

Pick a draw

State
—
Citizens in the list
—
Total weight
—
List hash
—
Seed slot
—
Blockhash
—

    The list (JSON)

    The rule

    listHash = sha256 of the rows sorted by address, each "addr:w", joined by a newline. Pick i = sha256(blockhash + ":" + listHash + ":" + n + ":" + i) as a big-endian integer, mod the remaining total weight; walk the remaining rows in address order adding w; the first row whose running sum is above it wins and leaves the list. Repeat for each pick.

    The same file picks the winners on the server, runs here in your browser and runs in node: fair.js.