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 #183

Closed
wants to merge 7 commits into from
Closed

Conversation

okhaimie-dev
Copy link
Contributor

@okhaimie-dev okhaimie-dev commented May 14, 2024

Issue(s): #128

Description

Added code for Dice Game VRF application.

Checklist

  • CI Verifier: Run ./scripts/cairo_programs_verifier.sh successfully
  • Contract Tests: Added tests to cover the changes

Comment on lines 3 to 4
This code provides an implementation of a Dice Game contract that utilizes a [Pragma Verifiable Random Function (VRF)](https://docs.pragma.build/Resources/Cairo%201/randomness/randomness) to generate random numbers on-chain.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about explaining a bit more about randomness in the context of blockchain before jumping directly in the implementation? Especially to outline where the entropy comes from and potential risks with it. You can then just link to Pragma - Randomness

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entropy sources:

  • Blockchain: block hashes, timestamps, ...
  • External Sources: Oracles

Risks: Predictability/Manipulation/Centralization-trust

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. I'll make an update to this week

@julio4
Copy link
Contributor

julio4 commented May 31, 2024

@okhaimie-dev Hello! Let me know if you need any help on finishing this

@0xNeshi 0xNeshi mentioned this pull request Jul 26, 2024
3 tasks
@julio4
Copy link
Contributor

julio4 commented Oct 3, 2024

Done in #238

@julio4 julio4 closed this Oct 3, 2024
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.

2 participants