Skip to content

AnonMarket is a mobile-first prediction market that guarantees the confidentiality of its users' bets.

Notifications You must be signed in to change notification settings

mathisrgt/AnonMarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

91 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”— AnonMarket (Eth Global Bangkok 2024) ๐ŸŒ


๐ŸŒŸ The Vision

AnonMarket aims to revolutionize predictive markets by introducing privacy-first decentralized betting. Our platform empowers users to predict real-world outcomes, such as:
๐ŸŽฏ Will Bitcoin hit $100,000 in the next two months?
๐Ÿ‡บ๐Ÿ‡ธ Who will be the next U.S. president?

These markets help participants gauge trends, assess probabilities, and even shape outcomes, all while preserving privacy through cutting-edge cryptographic techniques like Alice ring signatures.


๐Ÿ” What Makes AnonMarket Unique?

AnonMarket combines privacy, reliability, and accessibility to redefine predictive markets:

๐Ÿ›ก๏ธ Privacy Beyond Limits

  • ๐Ÿ•ต๏ธโ€โ™‚๏ธ With ring signatures, user identities remain anonymous while maintaining blockchain transparency.
  • ๐Ÿ”’ Ensures users can participate freely without compromising personal information.

๐Ÿ”— Accurate and Trustworthy Resolutions

  • ๐ŸŒ Integrates Chainlink and Pyth oracles for reliable, real-time external data.
  • ๐Ÿ“Š Provides unbiased and verifiable outcomes for market settlements.

๐ŸŽฏ Seamless Onboarding

  • Web3Auth ensures a smooth experience with wallet abstraction for both blockchain novices and experts.
  • ๐Ÿ”„ Easy account creation and integration without prior crypto knowledge.

๐Ÿ†” Decentralized Identity

  • Powered by Worldcoinโ€™s World ID, ensuring participants are legitimate while keeping their identities private.

๐Ÿ’ฐ Stable Payments, Cross-Chain Power

  • ๐Ÿ’ต Bets are placed and resolved using USDC, a stable, widely recognized currency.
  • ๐ŸŒ‰ Fusion+ from 1Inch facilitates cross-chain interoperability, bridging funds between Bitcoin, Ethereum, and Solana seamlessly.

๐Ÿ› ๏ธ Technical Innovations

AnonMarket leverages state-of-the-art technologies to create a seamless and efficient platform:

Sequence Diagram - AnonMarket

๐Ÿ”’ Backend

AnonMarketโ€™s backend leverages a multi-chain architecture to deliver scalability, transparency, and reliability across various blockchain ecosystems. Each chain serves a unique purpose, ensuring seamless functionality and a tailored experience for users.

๐Ÿš€ Core Components

  • Escrow Mechanism
    Secure and transparent escrow services powered by immutable smart contracts.

  • Automated Market Maker (AMM)
    Efficiently manages liquidity and trades using optimized algorithms for low-cost transactions.

  • Oracle Integration
    Ensures accurate, real-time data resolution for markets via trusted oracles.


๐ŸŒ Blockchain Deployments

  • Base
    A scalable and cost-efficient Layer 2 solution designed to lower entry barriers for users.

  • Rootstock (RSK)
    Combining Bitcoinโ€™s security with smart contract capabilities, enabling seamless integration for Bitcoin-native users.

  • Zircuit
    Focused on privacy-first solutions, Zircuit enhances anonymity through advanced cryptographic methods like zero-knowledge proofs.

  • Chiliz
    Tailored for sports and entertainment, facilitating prediction markets for global events and tournaments.

  • Linea
    A Layer 2 scaling solution offering reduced gas fees and faster transactions while leveraging Ethereumโ€™s robust security.

  • Scroll
    A zkEVM-compatible Layer 2 designed for high-throughput scenarios, ensuring low-latency and robust security.


๐Ÿ› ๏ธ Optimizations

Custom-built smart contracts ensure low gas fees through batching mechanisms and advanced optimizations.

๐Ÿ‘‰ Explore Smart Contract Deployment

AnonMarketโ€™s backend architecture guarantees strong security, low costs, and high performance, enabling a seamless user experience across multiple chains.

๐Ÿ“ก Oracles

  • Uses Chainlink and Pyth for trusted event data, ensuring accurate market resolutions.

๐Ÿงฉ Seamless Integration

  • Web3Auth powers account abstraction for streamlined onboarding.
  • Decentralized identity verification with Worldcoinโ€™s World ID ensures authenticity without sacrificing privacy.

๐Ÿ’ต Transactions and Interoperability

  • Circle's USDC offers a stable currency for platform transactions.
  • Fusion+ by 1Inch bridges assets efficiently across multiple blockchains, ensuring a smooth user experience for cross-chain bets.

๐ŸŒ Frontend

  • Built using React and Next.js, delivering a responsive, intuitive, and lightning-fast user interface.

๐Ÿ”Ž What Are Ring Signatures?

Ring signatures are at the heart of AnonMarketโ€™s privacy features.

๐Ÿง  How They Work

A ring signature allows a user to sign a transaction within a group while keeping their identity anonymous.

  • Ambiguity: Itโ€™s impossible to trace the exact signer, enhancing privacy.
  • Untraceable Transactions: Widely used in privacy coins (e.g., Monero) and secure voting systems.

๐Ÿค” Why Ring Signatures?

  • Efficiency: Lightweight compared to computationally intense alternatives like Fully Homomorphic Encryption (FHE).
  • Transparency: Unlike Zero-Knowledge Proofs (ZK), which can be opaque to developers, ring signatures are simple and accessible.
  • Applications: Ideal for anonymous payments, secure voting systems, and predictive markets like AnonMarket.

๐Ÿงฉ Ring Signature Use Cases

Ring signatures provide privacy for many applications beyond AnonMarket. Here are some key use cases:

  1. Private Governance Voting
    Enable hidden or anonymous voting for DAOs and community governance, allowing secure decision-making without exposing individual preferences.

  2. Privacy-Preserving Surveys and Polls
    Gather honest feedback or opinions on sensitive topics while protecting the privacy of participants, useful for market research or community sentiment polling.

  3. DeFi Risk Pools
    Users can anonymously participate in decentralized risk-sharing pools, such as insurance platforms, where privacy is essential for payouts and claims.

  4. Private Betting Platforms
    Create betting platforms for sports, elections, or other outcomes where usersโ€™ identities and transaction histories remain concealed.

  5. Confidential Donations and Funding
    Enable anonymous donations to causes, non-profits, or content creators while maintaining transparency in fund allocation and usage.

  6. Identity Verification without Exposure
    Use technologies like zero-knowledge proofs or Worldcoinโ€™s World ID to verify users' identities without revealing personal details.

  7. Gamified Learning and Competitions
    Create platforms for educational games or competitions where participants' identities and scores are kept private, adding fairness and mystery.

  8. Confidential Escrow Services
    Offer secure and anonymous escrow services for transactions, where neither party's identity or agreement details are exposed.

  9. Encrypted Messaging Markets
    Build messaging platforms that ensure private communications for markets or competitive environments while keeping user identities protected.


๐Ÿ’ก Challenges and Solutions

๐Ÿšง Optimizing Gas Costs:
We implemented batching mechanisms in our smart contracts, significantly reducing gas costs for users.

๐Ÿšง Onboarding Non-Crypto Users:
Using Web3Auth, we simplified the wallet setup process, enabling a frictionless entry for users new to blockchain.

๐Ÿšง Ensuring Cross-Chain Efficiency:
Incorporating Fusion+ from 1Inch solved interoperability challenges, creating a truly multi-chain experience.


๐ŸŽจ Explore More

๐Ÿ“‘ See Slide Deck
๐ŸŒ Project Demo Coming Soon


๐Ÿ‘ฅ Meet the Team

Weโ€™re a group of passionate developers with a shared love for blockchain innovation:

  • ๐Ÿ‘จโ€๐Ÿ’ป Mathis Sergent
    Backend Developer | 4+ years of experience | Passionate about scalable architectures | 10+ hackathons worldwide.

  • ๐Ÿ‘จโ€๐Ÿ’ป Mathieu Laruelle
    FullStack Developer | 3+ years of experience | Expert in creating intuitive interfaces | Hackathon veteran.

  • ๐ŸŽจ Marc Bertholat
    UI/UX Designer | 3+ years of experience | Focused on delivering seamless user experiences | Hackathon enthusiast.

  • ๐Ÿ‘จโ€๐Ÿ’ป Charles-Andrรฉ Goichot
    Blockchain Developer | 4+ years of experience | Skilled in optimizing performance | Skilled problem solver.

  • ๐Ÿ‘จโ€๐Ÿ’ป Ewan Hamon
    Frontend Developer | 4+ years of experience | Specialized in Rust & Smart Contracts | 10+ hackathons globally.


๐Ÿค Feedback and Support

๐Ÿ“ง Weโ€™d love to hear from you!

If you have any suggestions or encounter issues while exploring AnonMarket, donโ€™t hesitate to reach out. Together, we can build the future of predictive markets.

About

AnonMarket is a mobile-first prediction market that guarantees the confidentiality of its users' bets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published