Giter VIP home page Giter VIP logo

chainlink-vrf's Introduction

Random Number Game (using Chainlink VRF for randomness)

WAGMI, Keep Buidling!

About

logo

When dealing with computers, randomness is an important but difficult issue to handle due to a computer's deterministic nature. This is true even more so when speaking of blockchain because not only is the computer deterministic, but it is also transparent. As a result, trusted random numbers cannot be generated natively in Solidity because randomness will be calculated on-chain which is public info to all the miners and the users.

So we can use some web2 technologies to generate the randomness and then use them on-chain.

Stack

Hardhat (Solidity)

Polygon (Mumbai testnet)

Chainlink VRF

Oracles

  • An oracle sends data from the outside world to a blockchain's smart contract and vice-verca.
  • Smart contract can then use this data to make a decision and change its state.
  • They act as bridges between blockchains and the external world.
  • However it is important to note that the blockchain oracle is not itself the data source but its job is to query, verify and authenticate the outside data and then futher pass it to the smart contract.

Let's start building ๐Ÿš€

Intro:

Chainlink VRF's are oracles which used to generate random values. These values are verified using cryptographic proofs. These proofs prove that the results weren't tampered or manipulated by oracle operators, users, miners etc. Proofs are published on-chain so that they can be verified. After there verification is successful they are used by smart contracts which requested randomness.

Usage example

Complete track for learning Web3 and make these amazing projects

For more examples and usage, please refer to the Wiki.

Development setup

Follow the above link for complete setup!

chainlink-vrf's People

Contributors

0xwick avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.