@0xpolygonid/js-sdk 1.20.1 → 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.
@@ -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: this.claim.nonRevProof?.treeState?.claimsRoot
50988
- ?.bigInt()
50989
- .toString(),
50990
- issuerClaimNonRevRevTreeRoot: this.claim.nonRevProof?.treeState?.revocationRoot
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(),