Weighted random raffle
One winner from seven wallets of equal weight: 3nafSu…TMFR9.
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.
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.
Participants, weights and formula are stored on-chain under a SHA-256 artifact hash and bound to a runtime.
finalize_compiled_artifactOpens the draw and fixes three target slots 8, 16 and 24 ahead, in three different leader groups.
prepare_rng_v2 · +8 · +16 · +24Reads the three slot hashes from SlotHashes, hashes them with the rules into a seed and writes the winners.
settle_rng_v2Anyone rebuilds the artifact from chain data, recomputes the seed from the recorded slot hashes and gets the same winners.
vre verify --sig …VRE runs behind your app. Every result arrives with a transaction signature, and one tap opens the proof.
The participant list and the formula are committed on-chain. From here nobody can edit them.
artifact 11d30b3b… · 7 entriesThe 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)Your app shows the winner and the transaction that recorded it.
MVE6v5…FAy5HOne tap replays the draw from public RPC data. No account, and no need to trust you.
MATCH / OKEach tile is a real devnet draw from 14 September 2026. Every one replays to MATCH. More runnable scenarios are on Examples.
One winner from seven wallets of equal weight: 3nafSu…TMFR9.
Three distinct recipients from the same seven wallets, in a fixed order.
Top committed score wins; ties go to input order. Winner: trader-carol.
Nearest guesses win. Alice and Carol are one away each; both take a place.
The same check from a terminal, your own code or HTTP. No key, no wallet, no sign-up.
Showcase draws on the canonical devnet program. Open any one in the verifier; all signatures are on Demo.
| draw | signature | replay |
|---|---|---|
| Raffle | MVE6v5…FAy5H | MATCH |
| Rewards | KQdZCB…56Qfk | MATCH |
| Competition | 3GEUW1…kYAD8 | MATCH |
| Prediction | 4XywhA…xXmqz | MATCH |
And what it does not. The full boundary for every path is in the spec.
Partner keys come from the team. Verifying needs nothing. Mainnet is planned for this year.