Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,22 @@ World ID QR URL:

When valid, the simulator will auto-select an identity and open the existing
verification modal flow. Invalid URLs show a toast and are ignored.

## 🪪 Identity Check testing

The simulator supports IDKit's
[Identity Check preview](https://docs.world.org/world-id/idkit/credentials#identity-check-preview).
Open an identity's settings to configure its simulated document type, document
number, issuing country, full name, age, and nationality.

Identity Check requests are handled through the World ID 4.0 sidecar. Passport
and eID personas use the ICAO-9303 credential, while MNC personas use the MNC
credential. When every requested attribute matches, the simulator returns
IDKit's attested response envelope with `identity_attested: true`. A mismatch
returns `identity_attributes_not_matched`.

The example sidecar config uses the public simulator's signed document proof
fixture through `identity_check_proof_url`. The local sidecar validates all
requested attributes against the selected simulator persona before requesting
the proof, and verifies that the returned credential schema matches that
persona before attesting it.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"format": "next lint --fix && prettier --write src/**",
"typecheck": "tsc --noEmit --emitDeclarationOnly false --declaration false",
"spellcheck": "cspell **/*.{md,ts,tsx}",
"test:identity-check": "tsx --test test/identity-check-*.test.ts",
"prepare": "husky install",
"prebuild": "node -e \"const fs = require('fs'); const pkg = require('./package.json'); fs.writeFileSync('./public/version.json', JSON.stringify({ version: pkg.version }));\""
},
Expand Down Expand Up @@ -62,6 +63,7 @@
"prettier-plugin-organize-imports": "^2.3.4",
"prettier-plugin-tailwindcss": "0.1.10",
"tailwindcss": "^3.3.6",
"tsx": "^4.22.4",
"typescript": "5.0.4",
"workbox-cli": "^6.6.1",
"workbox-expiration": "^7.0.0",
Expand Down
Loading
Loading