@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.
@@ -50838,6 +50838,9 @@ class AtomicQuerySigV2OnChainInputs extends BaseConfig {
50838
50838
  this.query.valueProof.validate();
50839
50839
  }
50840
50840
  const valueProof = this.query?.valueProof ?? new ValueProof();
50841
+ const treeState = this.skipClaimRevocationCheck
50842
+ ? this.claim.signatureProof?.issuerAuthNonRevProof.treeState
50843
+ : this.claim.nonRevProof?.treeState;
50841
50844
  const s = {
50842
50845
  requestID: this.requestID.toString(),
50843
50846
  userGenesisID: this.id.bigInt().toString(),
@@ -50845,16 +50848,10 @@ class AtomicQuerySigV2OnChainInputs extends BaseConfig {
50845
50848
  claimSubjectProfileNonce: this.claimSubjectProfileNonce?.toString(),
50846
50849
  issuerID: this.claim.issuerID?.bigInt().toString(),
50847
50850
  issuerClaim: this.claim.claim?.marshalJson(),
50848
- issuerClaimNonRevClaimsTreeRoot: this.claim.nonRevProof?.treeState?.claimsRoot
50849
- ?.bigInt()
50850
- .toString(),
50851
- issuerClaimNonRevRevTreeRoot: this.claim.nonRevProof?.treeState?.revocationRoot
50852
- ?.bigInt()
50853
- .toString(),
50854
- issuerClaimNonRevRootsTreeRoot: this.claim.nonRevProof?.treeState?.rootOfRoots
50855
- ?.bigInt()
50856
- .toString(),
50857
- issuerClaimNonRevState: this.claim.nonRevProof?.treeState?.state?.bigInt().toString(),
50851
+ issuerClaimNonRevClaimsTreeRoot: treeState?.claimsRoot?.bigInt().toString(),
50852
+ issuerClaimNonRevRevTreeRoot: treeState?.revocationRoot?.bigInt().toString(),
50853
+ issuerClaimNonRevRootsTreeRoot: treeState?.rootOfRoots?.bigInt().toString(),
50854
+ issuerClaimNonRevState: treeState?.state?.bigInt().toString(),
50858
50855
  issuerClaimNonRevMtp: this.claim.nonRevProof?.proof &&
50859
50856
  prepareSiblingsStr(this.claim.nonRevProof.proof, this.getMTLevel()),
50860
50857
  issuerClaimSignatureR8x: this.claim.signatureProof && this.claim.signatureProof.signature.R8[0].toString(),
@@ -53601,7 +53598,7 @@ class OnChainZKPVerifier {
53601
53598
  });
53602
53599
  }
53603
53600
  }
53604
- const metadata = this.packMetadatas(metadataArr);
53601
+ const metadata = metadataArr.length ? this.packMetadatas(metadataArr) : '0x';
53605
53602
  payload.push({
53606
53603
  requestId: requestID,
53607
53604
  zkProof: zkProofEncoded,