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

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 cryptocurrency

Président de Xapo: Les plus grandes sociétés Bitcoin pourraient se déplacer vers Bitcoin Cash ou Ethereum

https://steemit.com/@tighilt Xapo intégrera SegWit après tout, après que la fourche dure SegWit2x a été annulée par les principaux partisans, y compris Blockchain, BitGo, ShapeShift, et son développeur principal Jeff Garzik. Mais le président de Xapo, Ted Rogers, a averti l'industrie et la communauté bitcoin que certaines des plus grandes sociétés du marché des bitcoins pourraient adopter des cryptocurrences plus flexibles et supposées évolutives comme Bitcoin Cash ou Ethereum, emportant des millions d'utilisateurs et de gros volumes de transactions. Rogers a déclaré: "Je pense que les plus grandes sociétés [bitcoin] vont acheter Bitcoin Cash ou Ethereum, et vont prendre des millions d'utilisateurs et de transactions avec elles. Supportera toujours bitcoin mais pas un foyer pour leur futur. Xapo Bitcoin encore et va mettre en œuvre SegWit mais ne perdrait pas votre temps à faire pression sur les autres. Possibilité pour les entreprises de passer à Bitcoin Cash

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