Coder Social home page Coder Social logo

world-id-lens's Introduction

Human verification for Lens

Assert your Lens profile belongs to an actual human through Worldcoin's World ID protocol.

ℹ️ About

This repository contains the smart contract that enables verification of Lens Protocol profiles as owned by a unique human.

  • The verification is always exposed on-chain.
  • Human verification is done via the World ID protocol.
  • A single human can only have one verified Lens profile. Verifying a new profile will remove the verification from the previous profile.

🚀 Deployment

The official World ID <> Lens smart contract can be found at 0x8f9b3A2Eb1dfa6D90dEE7C6373f9C0088FeEebAB on the Polygon Network. To deploy your own version of this contract, follow these instructions.

  1. Get an App ID and action from Worldcoin's Developer Portal.
  2. Run Foundry's forge create command.

🧑‍💻 Development

  1. Install Foundry.
  2. Install dependencies & build smart contracts
    make

Using the contract

To test the contract with your own deployment, we recommend you use World ID's Staging network,

  1. Point your smart contract to the World ID's Staging network contract, which can be found at https://docs.worldcoin.org/reference/address-book.
  2. Register an identity as "verified" using Worldcoin's Simulator.
  3. Use the hosted IDKit's widget & the Simulator to generate a World ID proof to execute the humanity check.
    • Easiest way is to use the Try it out page on the Worldcoin Docs.
    • After going through the process on the Simulator, you'll get the proof, nullifier hash & Merkle root.
  4. Call HumanCheck.verify(PROFILE_ID, merkle_root, nullifier_hash, proof) in your contract. The last three parameters are obtained on step 6.
  5. You can now check your profile is verified by calling HumanCheck.isVerified(PROFILE_ID).

world-id-lens's People

Contributors

m1guelpf avatar paolodamico 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.