Self Docs
  • Self Protocol
  • Use Self
    • Quickstart
    • Disclosures
    • Use deeplinking
    • Using mock passports
  • SDK Reference
    • SelfAppBuilder
    • SelfBackendVerifier
    • SelfQRcodeWrapper
  • Contract Integration
    • Basic Integration
    • Frontend Configuration
    • Deployed Contracts
    • Airdrop Example
    • Happy Birthday Example
    • Utilize Passport Attributes
  • Verification in the IdentityVerificationHub
  • Technical Docs
    • Overview
    • Architecture
Powered by GitBook
On this page
  1. Use Self

Using mock passports

PreviousUse deeplinkingNextSelfAppBuilder

Last updated 14 days ago

To create a mock passport, on the first screen, tap 5 times with 2 fingers on the Self card.

This will show a screen to create a mock passport. To try it out, use instead of

When using offchain verification, pass mockPassport to the Self verifier as explained .

To stop using a mock passport, go in Settings, then tap 5 times with 2 fingers on the empty space below the options. This will show additional options, including the Debug menu that allows going back to the first screen and scanning a new passport.

Two passports registered with the same private key will give the same disclosure nullifier, thus won't be able to e.g. claim an airdrop twice.

If you want to use two passports in prod, you should backup your seed phrase then tap "Delete keychain secrets" before loading a new passport. If later you rescan the previous passport, you'll be able to pass your recovery phrase to recover the corresponding Self identity.

The next versions will support multiple IDs natively.

When using onchain verification, use the .

Alfajores contracts
https://playground.staging.self.xyz/
https://playground.self.xyz/
here