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

How to implement a VRF like ChainLink? #520

Open
akegaviar opened this issue Jul 8, 2024 · 0 comments
Open

How to implement a VRF like ChainLink? #520

akegaviar opened this issue Jul 8, 2024 · 0 comments

Comments

@akegaviar
Copy link
Owner

Is there any implementation of VRF like what Chainlink brought to work in The Open Network?If there is no such contract working in mainnet can anybody help me implment my own VRF on-chain?

Answer

I have created elliptic curve VRF for TON: https://github.com/ProgramCrafter/ecvrf-coordinator-contract.

Its coordinator contract in testnet is kQAkRQPZL7siQjoc26FFXRGgb/r/ZzmdP4P+anwZfcwvkWkh, accepting messages from users according to the following TL-B:

op::subscribe_random#AB4C4859 consumer:MsgAddressInt = InMsgBody;
op::provide_random#069CECA8 rnd:u256 = OutMsgBody;

Script calculating the random values and sending them to blockchain is private but it's not needed for validating that they are indeed unpredictable and deterministically based on challenge.


Original

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

1 participant