@0xpolygonid/js-sdk 1.20.0 → 1.20.2
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 +8 -11
- 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/storage/blockchain/onchain-zkp-verifier.js +1 -1
- package/dist/node/esm/circuits/atomic-query-sig-v2-on-chain.js +7 -10
- package/dist/node/esm/storage/blockchain/onchain-zkp-verifier.js +1 -1
- 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(),
|
|
@@ -53740,7 +53737,7 @@ var PolygonIdSdk = (function (exports) {
|
|
|
53740
53737
|
});
|
|
53741
53738
|
}
|
|
53742
53739
|
}
|
|
53743
|
-
const metadata = this.packMetadatas(metadataArr);
|
|
53740
|
+
const metadata = metadataArr.length ? this.packMetadatas(metadataArr) : '0x';
|
|
53744
53741
|
payload.push({
|
|
53745
53742
|
requestId: requestID,
|
|
53746
53743
|
zkProof: zkProofEncoded,
|