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

generating randomness #58

Closed
4meta5 opened this issue Oct 9, 2019 · 4 comments
Closed

generating randomness #58

4meta5 opened this issue Oct 9, 2019 · 4 comments
Labels
wip recipe⏰ work-in-progress recipe (specify branch)

Comments

@4meta5
Copy link
Contributor

4meta5 commented Oct 9, 2019

Mechanisms for generating randomness offer varying levels of security/cost. Random seed is inexpensive but not very secure; VRFs are more expensive and more secure. Likewise, a recipe on randomness should guide developers based on the requirements of their application to navigate this tradeoff between runtime cost and security requirements...

@4meta5 4meta5 added the wip recipe⏰ work-in-progress recipe (specify branch) label Oct 9, 2019
@JoshOrndorff
Copy link
Owner

When working on the CI, I realized that gen-random didn't compile. I just now realized it's a work in progress. I did a little work fixing compile errors that lives here. https://github.com/substrate-developer-hub/recipes/tree/start-updating-random

There's a cool example of decoupling randomness in paritytech/substrate#3792

@kaichaosun
Copy link
Contributor

The way to generate a random seed seems outdated in recipes.
There is pallet randomness-collective-flip which probably serves this purpose.
cc @JoshOrndorff @jimmychu0807

@JoshOrndorff
Copy link
Owner

Lucky timing to post this @kaichaosun There is a PR open now #182

@JoshOrndorff
Copy link
Owner

Review welcome :)

robamler pushed a commit to robamler/demo-ml-blockchain-node that referenced this issue Aug 5, 2021
* Fixed typo

* Updated image organization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip recipe⏰ work-in-progress recipe (specify branch)
Projects
None yet
Development

No branches or pull requests

3 participants