User Identity
Create a user identity with semaphore
Last updated
Was this helpful?
Create a user identity with semaphore
Last updated
Was this helpful?
Semaphore is a zero-knowledge gadget which allows users to prove their membership of a set without revealing their original identity.
We use 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.
genUnirepIdentity
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