@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
|
@@ -57076,7 +57076,10 @@ class AtomicQueryV3OnChainInputs extends BaseConfig {
|
|
|
57076
57076
|
valueProof.value = 0n;
|
|
57077
57077
|
valueProof.mtp = new Proof();
|
|
57078
57078
|
}
|
|
57079
|
-
|
|
57079
|
+
let treeState = this.claim.nonRevProof.treeState;
|
|
57080
|
+
if (this.proofType === ProofType.BJJSignature && this.skipClaimRevocationCheck) {
|
|
57081
|
+
treeState = this.claim.signatureProof?.issuerAuthNonRevProof.treeState;
|
|
57082
|
+
}
|
|
57080
57083
|
if (!treeState) {
|
|
57081
57084
|
throw new Error(CircuitError.EmptyTreeState);
|
|
57082
57085
|
}
|
|
@@ -57132,27 +57135,32 @@ class AtomicQueryV3OnChainInputs extends BaseConfig {
|
|
|
57132
57135
|
s.isRevocationChecked = 0;
|
|
57133
57136
|
}
|
|
57134
57137
|
if (this.proofType === ProofType.BJJSignature) {
|
|
57138
|
+
const sigProof = this.claim.signatureProof;
|
|
57135
57139
|
s.proofType = '1';
|
|
57136
|
-
s.issuerClaimSignatureR8x =
|
|
57137
|
-
s.issuerClaimSignatureR8y =
|
|
57138
|
-
s.issuerClaimSignatureS =
|
|
57139
|
-
s.issuerAuthClaim =
|
|
57140
|
-
s.issuerAuthClaimMtp = prepareSiblingsStr(
|
|
57140
|
+
s.issuerClaimSignatureR8x = sigProof.signature.R8[0].toString();
|
|
57141
|
+
s.issuerClaimSignatureR8y = sigProof.signature.R8[1].toString();
|
|
57142
|
+
s.issuerClaimSignatureS = sigProof.signature.S.toString();
|
|
57143
|
+
s.issuerAuthClaim = sigProof.issuerAuthClaim?.marshalJson();
|
|
57144
|
+
s.issuerAuthClaimMtp = prepareSiblingsStr(sigProof.issuerAuthIncProof.proof, this.getMTLevel());
|
|
57141
57145
|
const issuerAuthTreeState = this.claim.nonRevProof.treeState;
|
|
57142
57146
|
if (!issuerAuthTreeState) {
|
|
57143
57147
|
throw new Error(CircuitError.EmptyTreeState);
|
|
57144
57148
|
}
|
|
57145
|
-
s.issuerAuthClaimsTreeRoot =
|
|
57146
|
-
|
|
57147
|
-
|
|
57148
|
-
s.
|
|
57149
|
-
|
|
57149
|
+
s.issuerAuthClaimsTreeRoot = sigProof.issuerAuthIncProof.treeState?.claimsRoot
|
|
57150
|
+
.bigInt()
|
|
57151
|
+
.toString();
|
|
57152
|
+
s.issuerAuthRevTreeRoot = sigProof.issuerAuthIncProof.treeState?.revocationRoot
|
|
57153
|
+
.bigInt()
|
|
57154
|
+
.toString();
|
|
57155
|
+
s.issuerAuthRootsTreeRoot = sigProof.issuerAuthIncProof.treeState?.rootOfRoots
|
|
57156
|
+
.bigInt()
|
|
57157
|
+
.toString();
|
|
57158
|
+
s.issuerAuthClaimNonRevMtp = prepareSiblingsStr(sigProof.issuerAuthNonRevProof.proof, this.getMTLevel());
|
|
57159
|
+
const nodeAuxIssuerAuthNonRev = getNodeAuxValue(sigProof.issuerAuthNonRevProof.proof);
|
|
57150
57160
|
s.issuerAuthClaimNonRevMtpAuxHi = nodeAuxIssuerAuthNonRev.key.bigInt().toString();
|
|
57151
57161
|
s.issuerAuthClaimNonRevMtpAuxHv = nodeAuxIssuerAuthNonRev.value.bigInt().toString();
|
|
57152
57162
|
s.issuerAuthClaimNonRevMtpNoAux = nodeAuxIssuerAuthNonRev.noAux;
|
|
57153
|
-
s.issuerAuthState =
|
|
57154
|
-
.bigInt()
|
|
57155
|
-
.toString();
|
|
57163
|
+
s.issuerAuthState = sigProof.issuerAuthIncProof.treeState?.state.bigInt().toString();
|
|
57156
57164
|
this.fillMTPProofsWithZero(s);
|
|
57157
57165
|
}
|
|
57158
57166
|
else if (this.proofType === ProofType.Iden3SparseMerkleTreeProof) {
|