Skip to main content
Version: 1.0.1

User Identity

  • Semaphore is a zero-knowledge gadget which allows users to prove their membership of a set without revealing their original identity.
  • We use Semaphore here to generate users' identity and the identity commitment. Users can send their identity commitment instead of their Semaphore identity to sign up.
  • Only a user has the Semaphore identity and the identity commitment has signed up on the Unirep contract, the user can perform actions in the Unirep protocol.
info

This function does not require users connect to an Ethereum provider.

genUnirepIdentity

npx ts-node cli/index.ts genUnirepIdentity [-h]
  • base64url encoded identity and identity commitment will be printed
  • A string with Unirep.identity prefix is user's Semaphore identity
  • A string with Unirep.identityCommitment prefix is user's Semaphore identity commitment

Options inherited from parent commands

  -h, --help            Show this help message and exit.