Skip to content

Commit 8767f37

Browse files
authored
Merge pull request #38 from rarimo/feature/docs
Updated readme docs
2 parents 57de5f9 + 1fc61c6 commit 8767f37

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,39 @@ The query circuit allows you to prove arbitrary data from a passport.
246246

247247
If date input is **NOT** used, put “0x303030303030” (52983525027888 - decimal). This is equal to “000000” in UTF-8 encoding, which is used to encode date in the passport. Otherwise date verification constraints will fail.
248248

249-
Public signals (example for selector = 39)
249+
#### Query circuit public signals
250+
251+
TD3 (default, biometric passport) query
252+
253+
```json
254+
[
255+
"20925303098627062266630214635967906856225360340756326562498326001746719100911", // 0 - nullifier
256+
"52992115355956", // 1 - birthDate
257+
"55216908480563", // 2 - expirationDate
258+
"0", // 3 - name
259+
"0", // 4 - nameResidual
260+
"0", // 5 - nationality
261+
"5589842", // 6 - citizenship
262+
"0", // 7 - sex
263+
"0", // 8 - documentNumber
264+
"304358862882731539112827930982999386691702727710421481944329166126417129570", // 9 - eventID
265+
"1217571210886365587192326979343136122389414675532", // 10 - eventData
266+
"5904469035765435216409767735512782299719282306270684213646687525744667841608", // 11 - idStateRoot
267+
"39", // 12 - selector
268+
"52983525027888", // 13 - currentDate
269+
"0", // 14 - timestampLowerbound
270+
"0", // 15 - timestampUpperbound
271+
"1", // 16 - identityCounterLowerbound
272+
"0", // 17 - identityCounterUpperbound
273+
"52983525027888", // 18 - birthDateLowerbound
274+
"52983525027888", // 19 - birthDateUpperbound
275+
"52983525027888", // 20 - expirationDateLowerbound
276+
"5298352502788", // 21 - expirationDateUpperbound
277+
"0" // 22 - citizenshipMask
278+
]
279+
```
280+
281+
TD1 query (example for selector = 39)
250282

251283
```json
252284
[

0 commit comments

Comments
 (0)