@0xpolygonid/js-sdk 1.21.0 → 1.21.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 +16 -4
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +16 -4
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/proof/provers/inputs-generator.js +16 -4
- package/dist/node/esm/proof/provers/inputs-generator.js +16 -4
- package/package.json +1 -1
|
@@ -58533,11 +58533,25 @@ const v2Operations = [
|
|
|
58533
58533
|
Operators.NIN,
|
|
58534
58534
|
Operators.NE
|
|
58535
58535
|
];
|
|
58536
|
+
const v2OnChainOperations = [
|
|
58537
|
+
Operators.EQ,
|
|
58538
|
+
Operators.LT,
|
|
58539
|
+
Operators.GT,
|
|
58540
|
+
Operators.IN,
|
|
58541
|
+
Operators.NIN,
|
|
58542
|
+
Operators.NE
|
|
58543
|
+
];
|
|
58536
58544
|
const circuitValidator = {
|
|
58537
58545
|
[CircuitId.AtomicQueryMTPV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
58538
|
-
[CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
58546
|
+
[CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
58547
|
+
maxQueriesCount: 1,
|
|
58548
|
+
supportedOperations: v2OnChainOperations
|
|
58549
|
+
},
|
|
58539
58550
|
[CircuitId.AtomicQuerySigV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
58540
|
-
[CircuitId.AtomicQuerySigV2OnChain]: {
|
|
58551
|
+
[CircuitId.AtomicQuerySigV2OnChain]: {
|
|
58552
|
+
maxQueriesCount: 1,
|
|
58553
|
+
supportedOperations: v2OnChainOperations
|
|
58554
|
+
},
|
|
58541
58555
|
[CircuitId.AtomicQueryV3]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
58542
58556
|
[CircuitId.AtomicQueryV3OnChain]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
58543
58557
|
[CircuitId.AuthV2]: { maxQueriesCount: 0, supportedOperations: [] },
|
|
@@ -58604,7 +58618,6 @@ class InputGenerator {
|
|
|
58604
58618
|
circuitInputs.signature = signature;
|
|
58605
58619
|
circuitInputs.challenge = params.challenge;
|
|
58606
58620
|
const query = circuitQueries[0];
|
|
58607
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
58608
58621
|
circuitInputs.query = query;
|
|
58609
58622
|
circuitInputs.claim = {
|
|
58610
58623
|
issuerID: circuitClaimData.issuerId,
|
|
@@ -58663,7 +58676,6 @@ class InputGenerator {
|
|
|
58663
58676
|
circuitInputs.profileNonce = BigInt(params.authProfileNonce);
|
|
58664
58677
|
circuitInputs.skipClaimRevocationCheck = params.skipRevocation;
|
|
58665
58678
|
const query = circuitQueries[0];
|
|
58666
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
58667
58679
|
circuitInputs.query = query;
|
|
58668
58680
|
circuitInputs.currentTimeStamp = getUnixTimestamp(new Date());
|
|
58669
58681
|
if (authClaimData.treeState) {
|