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 safe random numbers (VDF related) #88

Open
exander77 opened this issue May 5, 2021 · 7 comments
Open

Generating safe random numbers (VDF related) #88

exander77 opened this issue May 5, 2021 · 7 comments

Comments

@exander77
Copy link

Is there a way to generate safe random number securely in Chialisp?
Can this functionality be implemented based on VDF?

@exander77
Copy link
Author

Hello, can I get some info about this. I would like to build a project which needs safe random number generation and I was waiting for the Chia as a possible platform because it has VDF.

@exander77
Copy link
Author

I am looking through codes and I am not sure if I can access VDF results inside the contract code.

@arvidn
Copy link
Contributor

arvidn commented May 19, 2021

It depends on how you defined random. Clearly you can only write deterministic programs, so at best you'll have pseudo random numbers. The question then is what you seed them with.

@exander77
Copy link
Author

@arvidn I was reading through VDF and if I understand it correctly, VDF basically generates a random number that can anybody can verify, but nobody can arrive at it sooner. It is still deterministic, but because the result of the function is delayed nobody can know it beforehand. I would like to use it inside the smart contract to evaluate an event.

@tommy4111
Copy link

Any progress on this?

@arvidn
Copy link
Contributor

arvidn commented Aug 8, 2021

I don't imagine there will be any progress on this until someone makes a concrete proposal. It would be challenging, because the consensus is already set in stone, and blocks/spend bundles can be validated "in a vacuum", i.e. the clvm program can be executed and validated without knowing which block it might end up in.

@fkornel
Copy link

fkornel commented Jan 20, 2022

Yep, I am also interested in a solution or in a solution proposal.
It would be awesome to have some similar functionality in chia like: https://chain.link/chainlink-vrf

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

No branches or pull requests

4 participants