Skip to content

Commit

Permalink
update query proof with v3
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Apr 9, 2024
1 parent e6f1187 commit 60a0c50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/handlers/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ describe('auth', () => {
it('key rotation use case', async () => {
const claimReq: CredentialRequest = {
credentialSchema:
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/kyc-nonmerklized.json',
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/KYCAgeCredential-v4.json',
type: 'KYCAgeCredential',
credentialSubject: {
id: userDID.string(),
Expand All @@ -2091,18 +2091,19 @@ describe('auth', () => {

const proofReq: ZeroKnowledgeProofRequest = {
id: 1,
circuitId: CircuitId.AtomicQuerySigV2,
circuitId: CircuitId.AtomicQueryV3,
optional: false,
query: {
allowedIssuers: ['*'],
type: claimReq.type,
context:
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-nonmerklized.jsonld',
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
credentialSubject: {
documentType: {
$eq: 99
}
}
},
proofType: ProofType.BJJSignature
}
};

Expand Down

0 comments on commit 60a0c50

Please sign in to comment.