GameFi
  • General Intro
  • 📃R & D
  • 💻Workshop
    • 🏎️NFT Web App Integration
      • 📄Prerequirements
      • Decentralized Storage
      • Smart Contract NFTs
      • Creating the React Dapp
      • Updating Startup File, Wallet Connect & Main Menu
      • Fetching NFTs, Stacks and Hiro API
      • Rendering NFTs owned
      • Selecting an NFT
      • Mapping Scenes
      • Creating the playable game
  • 🪙Trustless Rewards - M1
    • General idea
    • Flow Lobbies
    • Smart Contract
  • 🎨Customizable NFTs - M2
    • General Idea
    • Flow Customizable NFTs
    • Smart Contracts
      • Component
      • Customizable Wrapper
  • 🎁Lootbox on Chain - M3
    • General Idea
    • Tech Explained
    • Smart Contracts
      • Item
      • Lootbox
      • Lootbox Manager
  • 📝Message Signing
    • General Idea
    • GameFi Use Cases
    • App Explained
  • 🪵SFTs
    • General Idea & Base SFTs Static Deployments
    • Metadata Structure
    • Static Flow and Smart Contracts
    • Advanced SFTs Dynamic Deployments
    • Dynamic Flow and Smart Contracts
    • Dapp Integrating SFTs
      • Front End
      • Back End
    • Resources
  • ⚡Subnets
    • Overall for subnets
  • Roadmap
  • 💾Decentralized Storage
    • Gaia
    • Pinata
    • Host SFTs and NFTs into Pinata
    • Gaia integration to host game resources
  • 🔗External Knowledge
    • Getting Started
    • Hiro API
    • Stacks Docs
    • Clarity Book
    • Hiro Tutorials
Powered by GitBook
On this page

Was this helpful?

  1. Lootbox on Chain - M3

General Idea

PreviousCustomizable WrapperNextTech Explained

Last updated 2 years ago

Was this helpful?

This on-chain smart contract establishes a framework for the incorporation of lootboxes into the user-owned gaming experience. The lootboxes are consumable items that, when consumed, yield a random chance for players to earn different in-game items with varying rarity levels. Lootboxes have significant importance in gaming. Using the Stacks VRF, the creator can offer the user an honest and decentralized fashion for receiving his earnings/bonuses. In our opinion, they are the most sustainable way of rewarding users long term.

Security Though True Randomness

Interestingly, in 2020 researchers proposed a VRF that uses lattice-based cryptography that’s secure enough to protect against attacks from a quantum computer, suggesting that VRF can remain an important technology long into the future. -

VRF Use Cases in different Fields

Most RNGs don’t produce a random number that can be cryptographically verified, leaving them vulnerable to manipulation and thereby limiting their use cases. By guaranteeing the security of a random number, VRFs unlock a number of important use cases such as:

  • Internet security—VRF is used to help secure domain name system (DNS) messages.

  • Zero-knowledge technology—VRF is used in the protocol design for zero-knowledge proofs and zero-knowledge databases.

  • Non-interactive lottery systems—VRF enables provably fair and efficient outcomes for lotteries.

  • Verifiable transaction escrow schemes—VRF can help support automated escrow services that preserve user anonymity.

  • Blockchains and smart contracts—VRF has become an important part of decentralized protocols and applications.

-

🎁
https://blog.chain.link/verifiable-random-function-vrf/
https://blog.chain.link/verifiable-random-function-vrf/