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

5 things to know when the bitcoin crash

Investment in cryptocurrency is considered a risky investment, you can as well make a big gain quickly than lose everything in no time. In short, there is no guarantee. This has been proven a few days ago when the price of bitcoin dropped from $ 20,000 to around $ 11,000, a drop of almost 50%. We take advantage of this "crash" to give you some points to know about this investment. However, we want to make it clear from the beginning that it is not a matter of advice to make a success of your crypto-investment, nor to influence your decision-making. Beware of reviews on Facebook or Reddit When we go through a difficult period, like the bitcoin crash, for example, it is normal to go to social networks to find help, or at least see what people do in your area. situation. Unfortunately, Facebook, Twitter or Reddit are full of malicious people who will not hesitate to give bad advice, like selling bitcoins hastily after a fall in price ... Some will tell you that they predi...

24h on the crypto planet # 28: all the news about cryptocurrency

Hello everyone, and welcome to this new episode of 24 hours on the crypto planet! The markets are shaking, the temperature is going down, and  @tighilt  will accompany you all the holidays, Happy reading! Crypto companies could be banned from the Israeli Stock Exchange. The president of the Israeli Securities Regulatory Authority (ISA) - Shmuel Hauser - said at a conference that he was going to put an ISA review on the proposal to ban the Israeli stock exchange. set of businesses based on cryptocurrency. "Investors need to know what our position is. Shmuel Hauser A Christmas tree Ethereum for charity At the end of the year, a crypto-enthusiastic group based in Toronto created a charity project: the Merry Merkle Tree. This program, initially supposed to raise $ 25,000, has finally brought back more than $ 90,000 in ETH, for the cause of homeless youth. Robbie Bent, the organizer of the action, said the idea came to him when he realized the extent to which cryptocurre...

Crypto Analysis: Ethereum - Bitcoin

Hello to all my crypto! The trend continues to rise on Bitcoin but goes down on the altcoins. Our yesterday's trades have passed, as expected bitcoin has joined its bullish channel. This is not without reason, the return of B2X fork attracts speculators. To enjoy it, you must Hold your Bitcoins in a Wallet where you hold the private key! You will receive 1 B2X for every BTC you have at the time of the snapshot! Our analyzes are entirely made on the Binance chart with the Coinigy analysis platform! Bitcoin The trend is starting to rise again on Bitcoin. We managed to leave our bullish channel and hit the lower band of Bollinger. Logically, we should see prices go up a little bit in the next few days. The fork is not for nothing, it attracts speculators. The current rise is thus lined with irrationality, this detail must attract our attention. Indeed, a massive dump could intervene after the snapshot BTC. For now, the trend is on the rise and we are evolving in a major c...