Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How to implement a VRF like ChainLink?

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?

1
1
Posted 28 days ago
Votes Newest

Answers


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.

1
1
Posted 28 days ago
2K Views
1 Answer
28 days ago
28 days ago
Tags