Skip to content

darshit2308/Decentralised-Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VeilPad

Description

VeilPad is a privacy-focused launchpad that enables users to participate in token sales anonymously and securely using zero-knowledge proofs (ZKPs) and Merkle trees. By leveraging cutting-edge cryptographic techniques, VeilPad ensures that users can prove their eligibility and contributions without revealing sensitive data, making token launches safer, fairer, and more decentralized.

Workflow

1. Whitelist Phase

  • Users contribute to the whitelist contract.
  • Their addresses are hashed and added to a Merkle tree.
  • The Merkle root is updated off-chain and stored on-chain to maintain a decentralized record.

2. Contribution Phase

  • After the whitelisting period ends, users contribute to the marketplace contract.
  • Their address and contribution amount are hashed and added to another Merkle tree.
  • The updated Merkle root is stored on-chain, allowing contributions to be verified without exposing individual details.

3. Claiming Phase

  • After the sale period ends, users generate a ZK proof to verify their contribution.
  • The proof includes their hashed address, contribution amount, and necessary data.
  • If the proof is valid, the token transfer function is called off-chain, ensuring privacy and security.

4. ZKVerify Integration

  • VeilPad integrates ZKVerify to enhance verification and security of zero-knowledge proofs.
  • The zkverifyjs library is used to seamlessly integrate ZKVerify with the dApp.
  • Ensures that all ZK proofs are validated efficiently before token distribution.

Key Features

  • Zero-Knowledge Proofs (ZKPs): Users can prove eligibility and contributions without revealing their identity.
  • Merkle Tree Storage: Both the Merkle root and individual leaves are stored on-chain for maximum decentralization.
  • Privacy-Preserving Token Transfers: Contributions remain hidden until the sale ends, preventing front-running.
  • Secure Whitelisting: Participants prove eligibility via cryptographic proofs rather than public lists.
  • Decentralized & Trustless: All proofs are verified on-chain, eliminating centralized identity verification.
  • ZKVerify Integration: Ensures secure and efficient validation of zero-knowledge proofs.

Technology Stack

  • Smart Contracts: Solidity
  • ZK Proofs: Circom, SnarkJS
  • Backend: TypeScript, Node.js
  • Database: MongoDB (for off-chain operations)
  • Frontend: React (Vite-based UI)
  • Blockchain: Ethereum-compatible networks
  • ZK Verification: ZKVerify, zkverifyjs

License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors