Skip to content

Commit 6d52780

Browse files
committed
update query proof with v3
1 parent e6f1187 commit 6d52780

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/handlers/auth.test.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -2068,10 +2068,10 @@ describe('auth', () => {
20682068
expect(token).to.be.a('object');
20692069
});
20702070

2071-
it('key rotation use case', async () => {
2071+
it.only('key rotation use case', async () => {
20722072
const claimReq: CredentialRequest = {
20732073
credentialSchema:
2074-
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/kyc-nonmerklized.json',
2074+
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/KYCAgeCredential-v4.json',
20752075
type: 'KYCAgeCredential',
20762076
credentialSubject: {
20772077
id: userDID.string(),
@@ -2091,18 +2091,19 @@ describe('auth', () => {
20912091

20922092
const proofReq: ZeroKnowledgeProofRequest = {
20932093
id: 1,
2094-
circuitId: CircuitId.AtomicQuerySigV2,
2094+
circuitId: CircuitId.AtomicQueryV3,
20952095
optional: false,
20962096
query: {
20972097
allowedIssuers: ['*'],
20982098
type: claimReq.type,
20992099
context:
2100-
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-nonmerklized.jsonld',
2100+
'https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v4.jsonld',
21012101
credentialSubject: {
21022102
documentType: {
21032103
$eq: 99
21042104
}
2105-
}
2105+
},
2106+
proofType: ProofType.BJJSignature
21062107
}
21072108
};
21082109

0 commit comments

Comments
 (0)