@0xpolygonid/js-sdk 1.20.1 → 1.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/esm/index.js +348 -328
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +8 -11
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/circuits/atomic-query-sig-v2-on-chain.js +7 -10
- package/dist/node/cjs/iden3comm/handlers/common.js +1 -1
- package/dist/node/esm/circuits/atomic-query-sig-v2-on-chain.js +7 -10
- package/dist/node/esm/iden3comm/handlers/common.js +1 -1
- package/dist/types/iden3comm/handlers/credential-proposal.d.ts +2 -2
- package/dist/types/iden3comm/types/protocol/auth.d.ts +28 -4
- package/dist/types/iden3comm/types/protocol/proposal-request.d.ts +2 -2
- package/package.json +1 -1
|
@@ -50977,6 +50977,9 @@ var PolygonIdSdk = (function (exports) {
|
|
|
50977
50977
|
this.query.valueProof.validate();
|
|
50978
50978
|
}
|
|
50979
50979
|
const valueProof = this.query?.valueProof ?? new ValueProof();
|
|
50980
|
+
const treeState = this.skipClaimRevocationCheck
|
|
50981
|
+
? this.claim.signatureProof?.issuerAuthNonRevProof.treeState
|
|
50982
|
+
: this.claim.nonRevProof?.treeState;
|
|
50980
50983
|
const s = {
|
|
50981
50984
|
requestID: this.requestID.toString(),
|
|
50982
50985
|
userGenesisID: this.id.bigInt().toString(),
|
|
@@ -50984,16 +50987,10 @@ var PolygonIdSdk = (function (exports) {
|
|
|
50984
50987
|
claimSubjectProfileNonce: this.claimSubjectProfileNonce?.toString(),
|
|
50985
50988
|
issuerID: this.claim.issuerID?.bigInt().toString(),
|
|
50986
50989
|
issuerClaim: this.claim.claim?.marshalJson(),
|
|
50987
|
-
issuerClaimNonRevClaimsTreeRoot:
|
|
50988
|
-
|
|
50989
|
-
|
|
50990
|
-
|
|
50991
|
-
?.bigInt()
|
|
50992
|
-
.toString(),
|
|
50993
|
-
issuerClaimNonRevRootsTreeRoot: this.claim.nonRevProof?.treeState?.rootOfRoots
|
|
50994
|
-
?.bigInt()
|
|
50995
|
-
.toString(),
|
|
50996
|
-
issuerClaimNonRevState: this.claim.nonRevProof?.treeState?.state?.bigInt().toString(),
|
|
50990
|
+
issuerClaimNonRevClaimsTreeRoot: treeState?.claimsRoot?.bigInt().toString(),
|
|
50991
|
+
issuerClaimNonRevRevTreeRoot: treeState?.revocationRoot?.bigInt().toString(),
|
|
50992
|
+
issuerClaimNonRevRootsTreeRoot: treeState?.rootOfRoots?.bigInt().toString(),
|
|
50993
|
+
issuerClaimNonRevState: treeState?.state?.bigInt().toString(),
|
|
50997
50994
|
issuerClaimNonRevMtp: this.claim.nonRevProof?.proof &&
|
|
50998
50995
|
prepareSiblingsStr(this.claim.nonRevProof.proof, this.getMTLevel()),
|
|
50999
50996
|
issuerClaimSignatureR8x: this.claim.signatureProof && this.claim.signatureProof.signature.R8[0].toString(),
|
|
@@ -78071,7 +78068,7 @@ var PolygonIdSdk = (function (exports) {
|
|
|
78071
78068
|
* Returns a Map where the key is the groupId and the value is an object containing the query and linkNonce.
|
|
78072
78069
|
*
|
|
78073
78070
|
* @param requestScope - An array of ZeroKnowledgeProofRequest objects.
|
|
78074
|
-
* @returns A Map<number, { query:
|
|
78071
|
+
* @returns A Map<number, { query: ZeroKnowledgeProofQuery; linkNonce: number }> representing the grouped queries.
|
|
78075
78072
|
*/
|
|
78076
78073
|
const getGroupedQueries = (requestScope) => requestScope.reduce((acc, proofReq) => {
|
|
78077
78074
|
const groupId = proofReq.query.groupId;
|