@zkpassport/sdk 0.5.3 → 0.5.4
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/cjs/index.js +4 -2
- package/dist/esm/index.js +4 -2
- package/package.json +2 -2
- package/src/index.ts +6 -2
package/dist/cjs/index.js
CHANGED
|
@@ -2064,8 +2064,10 @@ class ZKPassport {
|
|
|
2064
2064
|
uniqueIdentifier = uniqueIdentifierFromPublicInputs;
|
|
2065
2065
|
verified = isCorrect;
|
|
2066
2066
|
queryResultErrors = isCorrect ? undefined : queryResultErrorsFromPublicInputs;
|
|
2067
|
-
if (uniqueIdentifier &&
|
|
2068
|
-
|
|
2067
|
+
if (uniqueIdentifier &&
|
|
2068
|
+
(BigInt(uniqueIdentifier) === BigInt(1) || BigInt(uniqueIdentifier) === BigInt(0)) &&
|
|
2069
|
+
!devMode) {
|
|
2070
|
+
// If the unique identifier is 0 (old ZKR proofs) or 1 (new ZKR proofs) and it is not in dev mode,
|
|
2069
2071
|
// the proofs are considered invalid as these are mock proofs only meant
|
|
2070
2072
|
// for testing purposes
|
|
2071
2073
|
verified = false;
|
package/dist/esm/index.js
CHANGED
|
@@ -2054,8 +2054,10 @@ export class ZKPassport {
|
|
|
2054
2054
|
uniqueIdentifier = uniqueIdentifierFromPublicInputs;
|
|
2055
2055
|
verified = isCorrect;
|
|
2056
2056
|
queryResultErrors = isCorrect ? undefined : queryResultErrorsFromPublicInputs;
|
|
2057
|
-
if (uniqueIdentifier &&
|
|
2058
|
-
|
|
2057
|
+
if (uniqueIdentifier &&
|
|
2058
|
+
(BigInt(uniqueIdentifier) === BigInt(1) || BigInt(uniqueIdentifier) === BigInt(0)) &&
|
|
2059
|
+
!devMode) {
|
|
2060
|
+
// If the unique identifier is 0 (old ZKR proofs) or 1 (new ZKR proofs) and it is not in dev mode,
|
|
2059
2061
|
// the proofs are considered invalid as these are mock proofs only meant
|
|
2060
2062
|
// for testing purposes
|
|
2061
2063
|
verified = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkpassport/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Privacy-preserving identity verification using passports and ID cards",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@noble/hashes": "^1.7.2",
|
|
44
44
|
"@noble/secp256k1": "^2.2.3",
|
|
45
45
|
"@obsidion/bridge": "^0.10.2",
|
|
46
|
-
"@zkpassport/registry": "^0.5.
|
|
46
|
+
"@zkpassport/registry": "^0.5.2",
|
|
47
47
|
"@zkpassport/utils": "^0.13.1",
|
|
48
48
|
"buffer": "^6.0.3",
|
|
49
49
|
"i18n-iso-countries": "^7.12.0",
|
package/src/index.ts
CHANGED
|
@@ -2850,8 +2850,12 @@ export class ZKPassport {
|
|
|
2850
2850
|
uniqueIdentifier = uniqueIdentifierFromPublicInputs
|
|
2851
2851
|
verified = isCorrect
|
|
2852
2852
|
queryResultErrors = isCorrect ? undefined : queryResultErrorsFromPublicInputs
|
|
2853
|
-
if (
|
|
2854
|
-
|
|
2853
|
+
if (
|
|
2854
|
+
uniqueIdentifier &&
|
|
2855
|
+
(BigInt(uniqueIdentifier) === BigInt(1) || BigInt(uniqueIdentifier) === BigInt(0)) &&
|
|
2856
|
+
!devMode
|
|
2857
|
+
) {
|
|
2858
|
+
// If the unique identifier is 0 (old ZKR proofs) or 1 (new ZKR proofs) and it is not in dev mode,
|
|
2855
2859
|
// the proofs are considered invalid as these are mock proofs only meant
|
|
2856
2860
|
// for testing purposes
|
|
2857
2861
|
verified = false
|