The Shark Mob Integrates Chainlink VRF to Randomize NFT Mining and Host Fair Giveaways
We’re excited to announce that The Shark Mob has integrated Chainlink Verifiable Random Function (VRF) on Ethereum mainnet. The Shark Mob is an NFT project created for community development, featuring 7,777 unique gangster Sharks that emphasize utility and opportunity. By integrating Chainlink’s industry-leading decentralized oracle network, we now have access to a tamper-proof and auditable source of randomness needed to randomize the rarity of NFTs issued during the minting process, as well as to host fairer giveaways. Ultimately this creates a more exciting, transparent, and fraud-proof user experience, as users can verify that no entity manipulated the randomness process to unfairly mint the rarest NFTs or tamper with platform giveaways.
To mint NFTs, Chainlink VRF is integrated within our smart contract, which we call the BelphegorShuffle. This is a commercial open source license.
In demonology, Belphegor (or Beelphegor) is a demon.
The creature is one of the seven princes of Hell
and helps people make discoveries.
In John Milton’s Paradise Lost,
Belphegor is one of the “Principalities of the Prime.”
In hell, Belphegor is the demon of inventiveness.
is a palindromic prime number,
with 666 hiding among the zeros.
We need a prime number to shuffle our NFTs during minting and use the following formula:
Given two integers a and b which are coprime, then (a*x+b)%n will visit all integers from 0 to n-1 exactly once
You can check the code on our GitHub: https://github.com/TheSharkMob, or more specifically at https://github.com/TheSharkMob/smart_contracts/blob/main/BelphegorShuffle.sol
The Shark Mob NFTs offer users access to a smart growth and sustainable community featuring multiple benefits such as giveaways and raffles, limited edition comics, and exclusive merch, all while owning a unique piece of art. The Shark Mob members will also be able to stake their NFTs and have voting rights on all future projects sustained by our community wallet.
In order to generate truly random attributes as part of the NFT metadata, we needed access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions derived from blockchain data like block hashes can be exploited by miners/validators, while off-chain RNG solutions derived from off-chain APIs are opaque and don’t provide users with definitive proof about the integrity of the process.
After reviewing various solutions, we selected Chainlink VRF because it’s based on cutting-edge academic research, supported by time-tested oracle infrastructure, and secured through the generation and on-chain verification of cryptographic proofs that prove the integrity of each random number supplied to smart contracts.
Chainlink VRF works by combining block data that is still unknown when the request is made with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. The Shark Mob smart contract will only accept the random number input if it has a valid cryptographic proof, and the cryptographic proof can only be generated if the VRF process is tamper-proof. This provides our users with automated and verifiable assurances directly on-chain that The Shark Mob’s randomized processes are provably fair and were not tampered with by the oracle, outside entities, or The Shark Mob team.
We are also exploring ways to leverage Chainlink in the future to enable novel NFT use cases, including using Chainlink Keepers and Chainlink Data Feeds to create dynamic, updateable NFTs that automatically change according to real-world data inputs from any API.
“To help ensure that our NFTs were verifiably random, we needed to integrate a secure and tamper-proof source of on-chain randomness. We were really impressed by the integrity and professionalism of the Chainlink Labs team and the open-source, time-tested technology of Chainlink. In the end, we never considered other solutions, we just went with the best.”
— KG, Co-Founder and Creative Developer of The Shark Mob
Chainlink is the industry standard for building, accessing, and selling oracle services needed to power hybrid smart contracts on any blockchain. Chainlink oracle networks provide smart contracts with a way to reliably connect to any external API and leverage secure off-chain computations for enabling feature-rich applications. Chainlink currently secures tens of billions of dollars across DeFi, insurance, gaming, and other major industries, and offers global enterprises and leading data providers a universal gateway to all blockchains.
About The Shark Mob
The Shark Mob is a limited collection of 7,777 unique gangster Sharks randomly generated from over 170+ possible attributes and traits. Owning a Shark will grant you access to our framework offering exclusive rewards and multiple benefits both in the Metaverse and the real world.