-
Notifications
You must be signed in to change notification settings - Fork 4
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
Complete end-to-end walkthrough #1
Labels
Comments
Thanks for creating this new repo. I was wondering where does the PRG contract itself live (in case it already exists)? Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Complete an end-to-end walkthrough demonstrating onchain randomness and PRG implementation building on the RandomBeaconHistory contract & heartbeat.
Dependency
The current CoinToss contract depends on the existence of a blockwise source of randomness in the RandomBeaconHistory contract. In order to test the application level contract, we need a way to commit that source of randomness at every block; however, the emulator increments the block height with every transaction submission.
This means that end-to-end testing of the CoinToss contract, demonstrating a commit-reveal mechanic along with PRG implementation, is dependent on the RandomBeaconHistory heartbeat submission being embedded in at least a preview version of the emulator.
The text was updated successfully, but these errors were encountered: