Git Product home page Git Product logo

merkle-root-generator's Introduction

Merkle Root Generator for NFT Allowlists

summary

A Merkle Root is a hash value that is used to summarize a set of data, such as a list of addresses in an NFT (Non-Fungible Token) Allowlist. An Allowlist is a list of addresses that are allowed to participate in a specific NFT sale or auction. Merkle Roots are often used in conjunction with Allowlists to ensure the integrity and security of the NFT sale or auction process.

Why is a Merkle Root needed for NFT Allowlists?

In an NFT sale or auction, the Allowlist is used to determine who is eligible to participate. The Allowlist is typically stored in a CSV file, which can be easily manipulated or tampered with. This creates a potential security risk, as someone could add or remove addresses from the Allowlist to gain an unfair advantage in the sale or auction process.

To address this issue, a Merkle Root is generated from the CSV file. The Merkle Root serves as a summary of the data in the Allowlist, and is included in the smart contract that governs the NFT sale or auction. When a user wants to participate in the sale or auction, they must provide a proof that their address is included in the Merkle Root. This proof is generated by hashing the user's address and several other addresses from the Merkle tree, until the Merkle Root is reached. This ensures that only addresses that are included in the original Allowlist can participate in the NFT sale or auction.

How to generate a Merkle Root from a file of CSV addresses?

  1. Select a csv file that contains only addresses.
  2. If invalid addresses are present you will be prompted to fix the addresses and retry merkle generation.
  3. Once valid, you will be able to copy the merkle root and the array of addresses.

Once the Merkle Root is generated, it can be included in the smart contract that governs the NFT sale or auction, along with the necessary code to verify user participation.

merkle-root-generator's People

Contributors

passandscore 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.