From 60a0c50674fe747047f9da9730fc7947d5ad0e97 Mon Sep 17 00:00:00 2001 From: daveroga Date: Tue, 9 Apr 2024 09:29:11 +0200 Subject: [PATCH] update query proof with v3 --- tests/handlers/auth.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/handlers/auth.test.ts b/tests/handlers/auth.test.ts index a7aa8d15..0ed81c39 100644 --- a/tests/handlers/auth.test.ts +++ b/tests/handlers/auth.test.ts @@ -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(), @@ -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 } };