@0xpolygonid/js-sdk 1.8.0 → 1.8.1
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 +22 -14
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +22 -14
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/circuits/atomic-query-v3-on-chain.js +22 -14
- package/dist/node/esm/circuits/atomic-query-v3-on-chain.js +22 -14
- package/package.json +1 -1
|
@@ -57215,7 +57215,10 @@ var PolygonIdSdk = (function (exports) {
|
|
|
57215
57215
|
valueProof.value = 0n;
|
|
57216
57216
|
valueProof.mtp = new Kt$1();
|
|
57217
57217
|
}
|
|
57218
|
-
|
|
57218
|
+
let treeState = this.claim.nonRevProof.treeState;
|
|
57219
|
+
if (this.proofType === exports.ProofType.BJJSignature && this.skipClaimRevocationCheck) {
|
|
57220
|
+
treeState = this.claim.signatureProof?.issuerAuthNonRevProof.treeState;
|
|
57221
|
+
}
|
|
57219
57222
|
if (!treeState) {
|
|
57220
57223
|
throw new Error(exports.CircuitError.EmptyTreeState);
|
|
57221
57224
|
}
|
|
@@ -57271,27 +57274,32 @@ var PolygonIdSdk = (function (exports) {
|
|
|
57271
57274
|
s.isRevocationChecked = 0;
|
|
57272
57275
|
}
|
|
57273
57276
|
if (this.proofType === exports.ProofType.BJJSignature) {
|
|
57277
|
+
const sigProof = this.claim.signatureProof;
|
|
57274
57278
|
s.proofType = '1';
|
|
57275
|
-
s.issuerClaimSignatureR8x =
|
|
57276
|
-
s.issuerClaimSignatureR8y =
|
|
57277
|
-
s.issuerClaimSignatureS =
|
|
57278
|
-
s.issuerAuthClaim =
|
|
57279
|
-
s.issuerAuthClaimMtp = prepareSiblingsStr(
|
|
57279
|
+
s.issuerClaimSignatureR8x = sigProof.signature.R8[0].toString();
|
|
57280
|
+
s.issuerClaimSignatureR8y = sigProof.signature.R8[1].toString();
|
|
57281
|
+
s.issuerClaimSignatureS = sigProof.signature.S.toString();
|
|
57282
|
+
s.issuerAuthClaim = sigProof.issuerAuthClaim?.marshalJson();
|
|
57283
|
+
s.issuerAuthClaimMtp = prepareSiblingsStr(sigProof.issuerAuthIncProof.proof, this.getMTLevel());
|
|
57280
57284
|
const issuerAuthTreeState = this.claim.nonRevProof.treeState;
|
|
57281
57285
|
if (!issuerAuthTreeState) {
|
|
57282
57286
|
throw new Error(exports.CircuitError.EmptyTreeState);
|
|
57283
57287
|
}
|
|
57284
|
-
s.issuerAuthClaimsTreeRoot =
|
|
57285
|
-
|
|
57286
|
-
|
|
57287
|
-
s.
|
|
57288
|
-
|
|
57288
|
+
s.issuerAuthClaimsTreeRoot = sigProof.issuerAuthIncProof.treeState?.claimsRoot
|
|
57289
|
+
.bigInt()
|
|
57290
|
+
.toString();
|
|
57291
|
+
s.issuerAuthRevTreeRoot = sigProof.issuerAuthIncProof.treeState?.revocationRoot
|
|
57292
|
+
.bigInt()
|
|
57293
|
+
.toString();
|
|
57294
|
+
s.issuerAuthRootsTreeRoot = sigProof.issuerAuthIncProof.treeState?.rootOfRoots
|
|
57295
|
+
.bigInt()
|
|
57296
|
+
.toString();
|
|
57297
|
+
s.issuerAuthClaimNonRevMtp = prepareSiblingsStr(sigProof.issuerAuthNonRevProof.proof, this.getMTLevel());
|
|
57298
|
+
const nodeAuxIssuerAuthNonRev = getNodeAuxValue(sigProof.issuerAuthNonRevProof.proof);
|
|
57289
57299
|
s.issuerAuthClaimNonRevMtpAuxHi = nodeAuxIssuerAuthNonRev.key.bigInt().toString();
|
|
57290
57300
|
s.issuerAuthClaimNonRevMtpAuxHv = nodeAuxIssuerAuthNonRev.value.bigInt().toString();
|
|
57291
57301
|
s.issuerAuthClaimNonRevMtpNoAux = nodeAuxIssuerAuthNonRev.noAux;
|
|
57292
|
-
s.issuerAuthState =
|
|
57293
|
-
.bigInt()
|
|
57294
|
-
.toString();
|
|
57302
|
+
s.issuerAuthState = sigProof.issuerAuthIncProof.treeState?.state.bigInt().toString();
|
|
57295
57303
|
this.fillMTPProofsWithZero(s);
|
|
57296
57304
|
}
|
|
57297
57305
|
else if (this.proofType === exports.ProofType.Iden3SparseMerkleTreeProof) {
|