PoolTogether 3.0
HomeAppBuilder
v3.3.0
v3.3.0
  • ✨Introduction
  • Resources
    • πŸ“‘Contracts
      • Ethereum
      • Matic
      • Tokens
    • πŸ•ΉοΈ Apps
    • πŸ“ˆSubgraphs
  • Protocol
    • 🌐Overview
    • πŸ†Prize Pools
      • βš–οΈ Fairness
      • πŸ₯©Stake Prize Pool
      • πŸ“ˆYield Source Prize Pool
    • πŸ’ΈPrize Strategies
      • πŸ€‘Multiple Winners
    • πŸ‘¨β€πŸŒΎ Yield Sources
    • 🎟️ Tokens
      • 🎟️ Ticket
      • 🎁Sponsorship
    • 🎲Random Number Generator
      • Blockhash
      • Chainlink VRF
    • πŸ΄β€β˜ οΈ Loot Box
    • πŸ‹Pods
  • Governance
    • πŸ›οΈ Overview
    • πŸ•ΉοΈ Controls
    • πŸ—³οΈ Example Proposals
  • Contributing
    • πŸ“Smart Contract Guidelines
  • Security
    • Risks
    • Audits & Testing
    • Bounties
Powered by GitBook
On this page

Was this helpful?

  1. Protocol
  2. Random Number Generator

Chainlink VRF

PreviousBlockhashNextπŸ΄β€β˜ οΈ Loot Box

Last updated 4 years ago

Was this helpful?

A verifiable random function is a pseudo-random function whose output is unique and can be publicly verified.

ChainLink has implemented their VRF using public key cryptography. It works like so:

  1. The user creates a β€œseed” value

  2. A ChainLink operator, who has publicly committed to a keypair, uses their secret to sign the seed value.

  3. The user is able to verify that the operator has signed the seed value, and consume the signature as the β€œrandom number”.

ChainLink VRF Documentation:

This approach has some benefits in that the operator cannot β€œlie”: they must sign the seed using the secret they have committed to. The algorithm is also instantaneous: there is no delay or waiting period to get the answer.

Usage

To use the RNG service, create a new prize pool using the service or set it on an existing pool.

🚨🚨🚨 Chainlink RNG requires 2 LINK tokens per RNG request 🚨🚨🚨

🚨🚨🚨 You must deposit LINK into the PRIZE STRATEGY 🚨🚨🚨

🎲
https://docs.chain.link/docs/chainlink-vrf
RNGChainlink