Skip to content

dhkdao/self-prototype

Repository files navigation

Self Prototype

DHK dao snapshot-self plugin prototype

Snapshot

Getting Celo Alfajores testnet token

Deployment

To test it out yourself, in the Self mobile app, add a Mock passport to scan. As Self contracts on testnet only support mock passport, while contracts on Celo mainnet support real passport.

To generate a mock passport in Self, goto Settings > Manage ID documents > press Add New Document at the bottom, and choose mock passport.

Demo

Verification Flow

The verification flow is as follow:

  1. Showing the Self QR code. The QR Code is configured here.

  2. On-chain verification happens in the smart contract, with the callback function implemented at customVerificationHook(), emitting the VerificationCompleted event.

  3. Front-end listens to VerificationCompleted event. Upon event emitted, it will call backend /api/verify-successful route.

  4. The backend checks the user DHK token balance >= 1, and other logics (e.g. check for subname), and return a JSON corresponding if a user satisfy all the conditions.

About

Prototyping on self.xyz - zk-id technology

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published