Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomness on demand lesson as an update for Verifiable Randomness function lesson #494

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kmadorin
Copy link

Problem

The "Verifiable Randomness Functions" lesson currently uses the switchboard-v2 library, which is deprecated. Developers following this lesson may encounter outdated methods for generating randomness in Solana applications. The switchboard-on-demand library is now the recommended method for on-demand randomness, and there is no existing lesson covering this updated approach.

Summary of Changes

  • Added a new lesson titled "Randomness On-Demand," which demonstrates the following:
    • How Randomness On-Demand works and how to set up and use the switchboard-on-demand library for requesting randomness in Solana smart contracts.
    • A practical example integrating on-demand randomness into Solana programs, reflecting the updates made to the burry-escrow program, which now uses the switchboard-on-demand library for randomness generation.

Fixes #

  • randomness_on_demand.md file added to connecting-to-offchain-data courses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant