Skip to content

selfxyz/self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self Developers horizontal

Monorepo for Self.

Self is an identity wallet that lets users generate privacy-preserving proofs from government-issued IDs such as passports and ID cards. By scanning the NFC chip in their ID document, users can prove their validity while only revealing specific attributes such as age, nationality or simply humanity. Under the hood, Self uses zk-SNARKs to make sure personal data is redacted, but the document is verified.

Use cases unlocked include:

  • Airdrop protection: Protect a token distribution from bots
  • Social media: Add humanity checks to user's profiles
  • Quadratic funding: Prevent farmers from skewing rewards
  • Wallet recovery: Safeguard assets using IDs as recovery sources
  • Compliance: Check a user is not part of a sanctioned entity list

Currently, Self supports electronic passports and biometric ID cards following the ICAO standards. Support for new identity documents is on the way!

Checkout the docs to add Self to your project.

FAQ

Is my passport supported?

Biometric passports have the biometric passport logo on their front cover. Checkout our coverage map here.

What can I request/prove with Self?

When a country issues a passport or a compliant ID document, they sign datagroups that include at least:

  • First and last name
  • Nationality
  • Date of birth
  • Gender
  • Expiration date
  • Passport number
  • Photo

Applications are able to request each of those data points.

What is the signature algorithm ?

Countries use different signature algorithms to sign ID documents. Check out our coverage map to see which.

Where can I find the countries' public keys ?

The main list of public keys can be downloaded from the ICAO website. We use multiple lists published by different ICAO members.

What's the ICAO ?

The International Civil Aviation Organization (ICAO) is a specialized agency of the United Nations. Among other things, they establish the specifications for passports, that have to be followed by all countries. The full passport specs are available here.

Project Ideas

  • Combine Self with other identification mechanisms as in Vitalik's pluralistic identity regime.
  • Help adding support for other identity documents to Self, such as Aadhaar, Japan's my number cards or Taiwan DID.
  • Build a social network/anonymous message board for people from one specific country.
  • Create a sybil-resistance tool to protect social networks against spambots.
  • Build an airdrop farming protection tool.
  • Allow DeFi protocols to check if the nationality of a user is included in a set of forbidden states.
  • Gate an adult content website to a specific age.
  • Create a petition system or a survey portal.
  • Passport Wallet: use active authentication to build a wallet, a multisig or a recovery module using passport signatures

We provide bounties for new and interesting applications using Self.

Development Setup

This project requires Node.js 22.x. Use the included .nvmrc to match the version.

Run yarn install to bootstrap dependencies and husky hooks. Gitleaks will scan staged changes on each commit via yarn gitleaks.

Development Documentation

For detailed development patterns and conventions, see:

  • Development Patterns - React Native architecture, navigation, state management, and code organization
  • Testing Guide - Jest configuration, mock patterns, testing strategies, and E2E testing

These guides provide comprehensive context for AI-assisted development with ChatGPT Codex, Cursor, and CodeRabbit AI.

Contributing

We are actively looking for contributors. Please check the open issues if you don't know where to start! We offer bounties for significant contributions.

Important: Please open your pull request from the staging branch. Pull requests from other branches will be automatically closed.

Contact us

Contact us on telegram for feedback or questions.

Thanks Rémi, Florent, Ayman, Justin, Seshanth, Nico and all other contributors for building Self.

Thanks Aayush, Vivek, Andy and Vitalik for contributing ideas and inspiring us to build this technology, and PSE for supporting the initial work through grants!

About

Prove your self

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 37