Accéder au contenu principal

Really random oracles on Chainlink



In the Ethereum ecosystem, smart contracts are king. Unfortunately, their possibilities are limited and in many cases, the use of an off-chain resource is necessary. This is particularly the case when generating a random number, a problem that Chainlink wishes to solve with Chainlink VRF.

The hell of the random

Those who are familiar with computers know this: generating a random number in a computer way is a real headache. 
Indeed, random numbers fall into two categories:
  • Pure random numbers , derived from the observation of a physical event ( throw from right away, throw from coin, etc. )
  • The so-called pseudo-random numbers , from a computer operation.
Unfortunately for developers, the use of pseudorandom numbers can have serious consequences for the security of the application . This is all the more important in the context of blockchains, where dapps must manage funds.
Until now, developers of decentralized applications had two possibilities to generate random numbers:
  • Use on-chain information like the hash of the last block;
  • Use an off-chain random generator and communicate its on-chain value.
However, neither of these two solutions is optimal. On the one hand, the first opens a potential attack vector in which malicious actors could modulate on-chain information in order to force the generation of a particular number. On the other hand, the second solution does not make it possible to verify the validity of the data recovered off-chain , thus joining the problem of Oracles .

The solution: ChainLink VRF

After having studied these problems at length, ChainLink has just unveiled ChainLink VRF ( On-chain Verifiable Randomness ) a solution allowing to generate pure random numbers which can be verified on-chain .
"Thanks to Chainlink VRF, you can establish reliable smart contracts for all applications that require unpredictable results  "  rules the announcement publication. 
To use the system, a smart contract must send a request to Chainlink, accompanied by a seed . This is used by the Oracle to generate a random number, which will be returned on-chain once generated, along with cryptographic evidence to verify the reliability of the random number.

Presentation of the functioning of Chainlink VRF.

Integration with PoolTogether

Proof that the solution has a real interest, ChainLink presents the example of the implementation of VRF on PoolTogether .
As a reminder, PoolTogether is a lossless lottery . Each participant deposits funds on a smart contract, these are pledged to generate interest on decentralized lending platforms At the end of a defined time, a winner among the participants is drawn and wins the interest managed. Once the draw has been completed, each participant recovers his basic stake, hence the lossless nature of the lottery.
In this case, the winner's draw requires the use of a pure random number . PoolTogether has chosen to integrate ChainLink VRF, in order to be able to prove to its users the veracity of the draws.
Once again, ChainLink offers an extremely useful product for decentralizing Ethereum and its decentralized applications. It now remains to wait for the finalization of the test phases on the testnet before publication on the mainnet. 

Commentaires

Posts les plus consultés de ce blog

Get 2 Free NeoConnect Coins

NeoConnect is yet another bitconnect clone, and this one is giving you 2 free tokens just for registering on the system. Well worth your time, if this coin does well you could probably make a few bucks, especially if you lend those coins into the system and get the daily compounded interest. Register through this link to get 2 free NeoConnect coins: http://neoconnect.io/u/tighilt

SCRAP A: STARTUP CONFIDO HAS BLEEDED WITH 380 000 EUROS WHICH IT WAS ABOUT TO LEVER

Confido, a startup at the origin of a recent ICO, whose name means in Italian "I trust", seems to have ended its activities, having managed to raise 1,235 Ethers (the equivalent of 382 850 euros according to current prices). The company was supposed to develop a "trustless" payment system - in other words, a system that does not require, through the use of smart contracts, the presence of a trusted third party to carry out value trading. This scam comes as many voices rise to denounce the lack of regulation around the markets of ICOs. "I trust" Logo of confidoVoice what can be read in an article published on Medium by Confido (the article has since been deleted): "Confido goes through the barrier of trust in trade involving crypto-currencies, while remaining decentralized and not requiring trustless third parties" After talking about "legal problems" this weekend, the startup seems to have sought to erase a lot of inform...

Bitcoin: a mysterious Chinese mining pool appears after the halving…

The occurrence  of Bitcoin halving  was the big topic of conversation this week in the cryptosphere.  While one could expect this division by two of the mining awards of BTC to make miners reluctant, it appears on the contrary that a new  mining  pool  has chosen this timing to reveal itself! A mysterious pool called "Lubian.com" According to statistics from  BTC.com  , a new  Bitcoin  mining pool  has  risen to 6th place  in the BTC network's  hashrate  (its computing power). Spotted and listed only since May 12, the  Lubian.com  pool  -  obviously of  Chinese origin  according to its site  - would have started production  just two weeks before the halving  , by mining a first block on  April 27  (the block N ° 627 441 to be precise). As we can see below, this pool contributed  6% of the  total  hashrate  of consensus by Proof...