On-chain proof
of who won.

VRE is a Solana program and SDK for verifiable draws. Rules are committed before the randomness exists; anyone recomputes the winner from the transaction signature.

$ npm i verifiable-outcome-sdk
raffle · weighted_random   7 participants   sig MVE6v5…FAy5H
rules committed
participantweight
replay from public RPCpending
+8 · +16 · +24
future slots fixed at prepare
0 oracles
entropy from SlotHashes
1.9 s
replay from public RPC
10,001
participants, tested on devnet

Commit, prepare, settle, replay.

The rules go on-chain first; the randomness comes from blocks that do not exist yet. The operator cannot change the rules after the commit or know the winner before the target slots exist.

Commit

Participants, weights and formula are stored on-chain under a SHA-256 artifact hash and bound to a runtime.

finalize_compiled_artifact

Prepare

Opens the draw and fixes three target slots 8, 16 and 24 ahead, in three different leader groups.

prepare_rng_v2 · +8 · +16 · +24

Settle

Reads the three slot hashes from SlotHashes, hashes them with the rules into a seed and writes the winners.

settle_rng_v2

Replay

Anyone rebuilds the artifact from chain data, recomputes the seed from the recorded slot hashes and gets the same winners.

vre verify --sig …

What your users see.

VRE runs behind your app. Every result arrives with a transaction signature, and one tap opens the proof.

  1. Entries close

    The participant list and the formula are committed on-chain. From here nobody can edit them.

    artifact 11d30b3b… · 7 entries
  2. Future blocks decide

    The draw waits for slots +8, +16 and +24. Their hashes do not exist yet, so nobody knows the winner.

    slots 156 · 172 · 173 (164 had no block)
  3. A winner, with a signature

    Your app shows the winner and the transaction that recorded it.

    MVE6v5…FAy5H
  4. Anyone checks

    One tap replays the draw from public RPC data. No account, and no need to trust you.

    MATCH / OK
Example app. Draw data: devnet signature MVE6v5…FAy5H

Four formulas.
One replay.

Each tile is a real devnet draw from 14 September 2026. Every one replays to MATCH. More runnable scenarios are on Examples.

Weighted random raffle

One winner from seven wallets of equal weight: 3nafSu…TMFR9.

Multiple winners rewards

Three distinct recipients from the same seven wallets, in a fixed order.

Highest score rank_desc

Top committed score wins; ties go to input order. Winner: trader-carol.

Closest to target closest_to

Nearest guesses win. Alice and Carol are one away each; both take a place.

Verify from anywhere.

The same check from a terminal, your own code or HTTP. No key, no wallet, no sign-up.


        
MATCH / OK
program 6QtLot…CP6B
artifact 11d30b3b…b032
formula weighted_random
slots 498395156 · 172 · 173
hashes F7JaN3cs… · EWiiX8op… · CEUi62U4…
winner 3nafSu…TMFR9

Draws you can check today.

Showcase draws on the canonical devnet program. Open any one in the verifier; all signatures are on Demo.

drawformulasignaturewinnerreplay
Raffleweighted_randomMVE6v5…FAy5H3nafSu…TMFR9MATCH
Rewardsweighted_random ×3KQdZCB…56QfkABKKER…dHZqY +2MATCH
Competitionrank_desc3GEUW1…kYAD8trader-carolMATCH
Predictionclosest_to4XywhA…xXmqzalice, carolMATCH

What a MATCH proves.

And what it does not. The full boundary for every path is in the spec.

Proves

  • The rules did not change: participants, weights, formula and winner count are the exact bytes committed on-chain.
  • The winners follow from the rules and the recorded randomness, in the same order.
  • Event, resolution account and replay agree on inputs, outputs and winner ids.

Does not prove

  • That the list was fair or complete when committed, only that it did not change after.
  • That the operator could not foresee the result on every path. That depends on the randomness source.
  • That a prize was paid. Payout is the integrator’s step.

Run a draw on devnet.

Partner keys come from the team. Verifying needs nothing. Mainnet is planned for this year.