Skip to content

Commit 79ce6c8

Browse files
Pulkit MittalPulkit Mittal
authored andcommitted
fixes
1 parent 4da050a commit 79ce6c8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/verifier/circuits.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The following is the overview of the most important `circom` circuits used in Pr
2626
## 1. stateTransition
2727

2828
**Circuit Purpose:**
29-
Validates an identity state transition from an `oldUserState` to a `newUserState`, ensuring the identity owner is the one making the update.
29+
Validates an identity state transition from an old user state to the new one, ensuring the identity owner is the one making the update.
3030

3131
**Usage Notes:**
3232

@@ -67,15 +67,14 @@ Same as `credentialAtomicQueryMTPV2`, but with support for output optimizations,
6767
**Usage Notes:**
6868

6969
- Designed for on-chain verifiers.
70-
- Relies on a trusted setup (typical of v2 circuits).
7170

7271
## 5. credentialAtomicQuerySigV2
7372

7473
**Circuit Purpose:**
7574
Similar to `credentialAtomicQueryMTPV2` but for credentials that are signed by the issuer's BabyJubJub key rather than being included in the issuer’s Merkle Tree. It:
7675

7776
- Verifies the issuer’s signature over the core claim representation of a W3C credential (including the Merkle root of the JSON-LD document).
78-
- Checks that the BabyJubJub key is included in the issuer state (which is either at genesis or published on-chain).
77+
- Checks that the BabyJubJub key is included in the issuer state (which is either at genesis or published on-chain) and that key is not revoked in the latest issuer state.
7978

8079
**Usage Notes:**
8180

@@ -131,7 +130,7 @@ Designed for smart contract verifiers, this circuit builds on `credentialAtomicQ
131130
- If authentication is enabled, the Prover must demonstrate identity ownership in the same way as `authV2` before the proof is accepted.
132131
- The reduced set of public inputs lowers the overhead for smart contract verification, making it more efficient for complex or frequent credential proofs on Ethereum.
133132

134-
## 9. linkedMultiQuery10.circom
133+
## 9. linkedMultiQuery10-beta.1
135134

136135
**Circuit Purpose:**
137136
Generates a single proof capable of verifying up to **10 parameters** in a single query. This allows multiple credential attributes or conditions (e.g., age, location, graduation) to be checked together, simplifying and streamlining multi-parameter verifications.

docs/verifier/verification-library/zk-query-language.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,20 +997,21 @@ This request includes a LinkedMultiQuery (for multiple fields) and a V3 Atomic Q
997997
"typ": "application/iden3comm-plain-json",
998998
"type": "https://iden3-communication.io/authorization/1.0/request",
999999
"thid": "f8aee09d-f592-4fcc-8d2a-8938aa26676c",
1000-
"from": "did:polygonid:polygon:amoy:2qFroxB5kwgCxgVrNGUM6EW3khJgCdHHnKTr3VnTcp",
1000+
"from": "did:iden3:polygon:amoy:2qFroxB5kwgCxgVrNGUM6EW3khJgCdHHnKTr3VnTcp",
10011001
"body": {
10021002
"callbackUrl": "https://test.com/callback",
10031003
"reason": "Employee verification",
10041004
"message": "test message",
10051005
"scope": [
10061006
{
10071007
"id": "1",
1008-
"circuitId": "LinkedMultiQuery10",
1008+
"circuitId": "linkedMultiQuery10-beta.1",
10091009
"query": {
10101010
"groupId": 1,
10111011
"proofType": "BJJSignature",
10121012
"allowedIssuers": ["*"],
10131013
"type": "KYCEmployee",
1014+
"context": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v101.json-ld",
10141015
"credentialSubject": {
10151016
"documentType": { "$eq": 1 },
10161017
"position": { "$eq": "boss", "$ne": "employee" }
@@ -1019,12 +1020,13 @@ This request includes a LinkedMultiQuery (for multiple fields) and a V3 Atomic Q
10191020
},
10201021
{
10211022
"id": "2",
1022-
"circuitId": "AtomicQueryV3",
1023+
"circuitId": "credentialAtomicQueryV3-beta.1",
10231024
"query": {
10241025
"groupId": 1,
10251026
"proofType": "BJJSignature",
10261027
"allowedIssuers": ["*"],
10271028
"type": "KYCEmployee",
1029+
"context": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v101.json-ld",
10281030
"credentialSubject": {
10291031
"hireDate": { "$eq": "2023-12-11" }
10301032
}

0 commit comments

Comments
 (0)