1/ #Chainlink VRF v2 is now live on mainnet, serving as an upgrade for the ecosystem’s most widely adopted verifiable randomness solution

The result? Five significant improvements in cost-efficiency and configurability

Let’s break it down 🧵👇
2/ For context, Chainlink Verifiable Random Function (VRF) is a secure random number generator (RNG) purpose-built for smart contract applications

Each RNG value is backed by a cryptographic proof that is verified on-chain, preventing manipulation from oracles, users, and miners
3/ Since its release, Chainlink VRF v1 has fulfilled over 3M requests for randomness and now serves over 2,300 smart contracts across multiple blockchains

Use cases include:
- Fair NFT minting
- Loot box drops
- Lotteries/raffles
- On-chain gaming dApps

Now onto the upgrades
4/ Pay-As-You-Go At Scale:

VRF v2 introduces a subscription management contract that allows smart contracts to pre-fund multiple requests using a single $LINK balance, rather than transferring $LINK each time

This reduces the gas costs of VRF requests by up to 60% 🤯
5/ Furthermore, with this new subscription contract, VRF requests are no longer priced in static amounts of $LINK

Rather, the amount of $LINK paid scales depending on the gas costs of the fulfillment transaction plus a static fee on-top (similar to the Keepers billing model)
7/ Variable Callback Gas Limit:

Users can now adjust how much gas is spent when a VRF response is delivered, allowing for more complex logic in the same transaction as the RNG value is received

Critical tasks using RNG can be completed right away, even during network congestion
8/ This parameter can now be set to a maximum of 2M gas on Ethereum, which is 10x higher than the previous limit!

This functionality is made possible by the subscription contract offering dynamic pricing based on gas consumed

This max parameter will vary by blockchain
9/ Custom Block Confirmations:

Users can can define how many block confirmations must pass since request before verifiable randomness is generated & delivered on-chain

This can range from a 3-block minimum to a 200-block maximum

In comparison v1 was fixed at 10 blocks on Eth
10/ Providing the ability to configure the block confirmation number allows users to strike their own balance between security (protection against chain re-orgs) and the latency of response

A safe value will vary on different chains
docs.chain.link/docs/vrf-secur…
11/ More Randomness Per Request:

An improved Coordinator contract allows users to request multiple random numbers in a single request transaction

The fulfillment of all of the RNG values is also delivered in a single transaction back to the user contract
12/ By batching request and delivery of RNG into singular transactions, significant gas cost savings is achieved (slightly akin to OCR for price feeds)

This is particularly useful for high frequency applications on blockchains with higher gas fees
13/ Unified Billing:

VRF v2 enables multiple smart contracts (up to a max of 100) to fund their RNG requests from a single $LINK subscription contract balance managed by the developer
14/ This allows developers who manage many contracts that each need randomness to reduce gas costs and simplify fund management for more complex use cases and situations

Now easier than ever to use VRF across many different dApps offered by the same developers
15/ The above five improvements introduced by #Chainlink VRF v2 provides developers access to even cheaper and more flexible randomness

All while retaining the same security properties that make VRF so useful and versatile for dApps
16/ Learn more about the #Chainlink VRF v2 release in the release blog post below
blog.chain.link/vrf-v2-mainnet…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with ChainLinkGod.eth

ChainLinkGod.eth Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ChainLinkGod

Dec 20, 2021
1/ When people think about cross-chain interoperability, it's usually in reference to token bridges

But that's just the initial version of the multi-chain ecosystem

Cross-chain state synchronization and automation will enable a new generation of cross-chain smart contracts
2/ Token bridging has allowed the multi-chain ecosystem to flourish as user can switch environments

But ironically, in many ways, this has lead to greater isolation

If your assets are on chainA, you can only use your assets within dApps on chainA
3/ Sure you can manually bridge tokens to another environment, interact with dApps there, and then bridge your tokens back

But this involves a lot of friction, higher fees, and is generally not an ideal UX

Interacting across chains needs to be seamless
Read 18 tweets
Dec 13, 2021
1/ Congrats to the #Chainlink Fall 2021 Hackathon Winners!

- Grand Prize: NUSIC
- DAO Prize: Governor C
- Off-Chain Compute Prize: NFT Meltdown
- DeFi Prize: Tradeboard & Krypton
- Chainlink Services: Kotal, Adapter.js, & Iris
- Social Impact: Soleil
- NFT & Gaming: SpaceTombo
2/ Chainlink Grand Prize ($30k): NUSIC

"Royalty-bearing NFT music bonds, powered by a streaming data oracle network."
devpost.com/software/nusic…
3/ Chainlink DAO Prize ($15k): Governor C

"Fair election is important for DAOs. However, the most developed system, Quadratic Voting, is exposed to the Sybil attack. We developed Governor C which is Sybil resistant QV based on Chainlink-VRF."
devpost.com/software/gover…
Read 11 tweets
Dec 13, 2021
Oracle Data Feeds on zkRollups are a complete game changer economics wise

A Data Feed with hundreds of nodes posting thousands of updates per batch has the same L1 gas cost footprint as a price feed with 1 node posting 1 update per batch
How?

zkRollups like @dydxprotocol don't post the raw tx data on-chain, rather they post compressed state diffs (state differences from batch n and batch n+1)

A Data Feed is an on-chain reference contract with a variable that holds an aggregated value that's updated by oracles
So no matter how many oracle nodes or updates there are, there will only ever be at most 1 state diff per batch for a Data Feed, since updates always touch the same state variable

Signature verification and data aggregation is succinctly proven within the validity proof
Read 4 tweets
Dec 13, 2021
1/ I want to give some perspective on the economics of #Chainlink services, both in their existing form today and how it will evolve into the future

This includes many nuances regarding user fees, cost-efficiency, network subsidies, economies of scale, and sustainability

🧵
2/ The ultimate long term goal is that all Chainlink services become self-sustaining through user paid fees

Many services already achieve this today, but how pricing is determined and the role of $LINK in terms of demand for these services is a common question
3/ I'll start with Chainlink Any API as it's the easiest to conceptualize

Any API enables smart contracts to fetch data from any off-chain data source via Chainlink nodes, which can be operated either by DevOps teams or the data providers themselves
Read 38 tweets
Dec 10, 2021
The closing ceremony for the Fall 2021 #Chainlink Hackathon is just about to begin!

Jump in now 👇
Fall 2021 #Chainlink Hackathon stats 💪

More than double than the Spring 2021 hackathon Image
Sponsors of the Hackathon Image
Read 19 tweets
Nov 21, 2021
1/ A thread on blockchain scalability, decentralization, throughput, gas, and modular blockchains
2/ Blockchains are decentralized computers that execute transactions and maintain a global ledger across a network of nodes

Decentralization is important because it removes central points of control as well as prevents manipulation and arbitrary protocol changes
3/ There's block-producing nodes and non-block producing nodes

The former extends the chain with new blocks of transactions (ensuring liveness)

Both types or nodes execute and validate transactions and blocks

A misconception is that the former type of nodes control the network
Read 25 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(