@zkpassport/sdk 0.5.4 → 0.5.5
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/assets/abi/ZKPassportVerifier.json +17 -17
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/esm/assets/abi/ZKPassportVerifier.json +17 -17
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +4 -4
- package/package.json +2 -2
- package/src/assets/abi/ZKPassportVerifier.json +17 -17
- package/src/index.ts +5 -5
package/dist/esm/index.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export type SolidityVerifierParameters = {
|
|
|
27
27
|
committedInputs: string;
|
|
28
28
|
committedInputCounts: number[];
|
|
29
29
|
validityPeriodInDays: number;
|
|
30
|
+
domain: string;
|
|
30
31
|
scope: string;
|
|
31
|
-
subscope: string;
|
|
32
32
|
devMode: boolean;
|
|
33
33
|
};
|
|
34
34
|
export type EVMChain = "ethereum_sepolia" | "local_anvil";
|
package/dist/esm/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { hexToBytes } from "@noble/hashes/utils";
|
|
|
9
9
|
import ZKPassportVerifierAbi from "./assets/abi/ZKPassportVerifier.json";
|
|
10
10
|
import { RegistryClient } from "@zkpassport/registry";
|
|
11
11
|
import { Bridge } from "@obsidion/bridge";
|
|
12
|
-
const VERSION = "0.5.
|
|
12
|
+
const VERSION = "0.5.5";
|
|
13
13
|
const DEFAULT_DATE_VALUE = new Date(1111, 10, 11);
|
|
14
14
|
// If Buffer is not defined, then we use the Buffer from the buffer package
|
|
15
15
|
if (typeof globalThis.Buffer === "undefined") {
|
|
@@ -2135,7 +2135,7 @@ export class ZKPassport {
|
|
|
2135
2135
|
if (network === "ethereum_sepolia") {
|
|
2136
2136
|
return {
|
|
2137
2137
|
...baseConfig,
|
|
2138
|
-
address: "
|
|
2138
|
+
address: "0xDDeFf76024052D26B78A7Fac66FFbd6fbc5bd9Ad",
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
else if (network === "local_anvil") {
|
|
@@ -2280,8 +2280,8 @@ export class ZKPassport {
|
|
|
2280
2280
|
committedInputs: `0x${compressedCommittedInputs}`,
|
|
2281
2281
|
committedInputCounts: committedInputCountsArray,
|
|
2282
2282
|
validityPeriodInDays,
|
|
2283
|
-
|
|
2284
|
-
|
|
2283
|
+
domain: domain ?? this.domain,
|
|
2284
|
+
scope: scope ?? "",
|
|
2285
2285
|
devMode,
|
|
2286
2286
|
};
|
|
2287
2287
|
return params;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkpassport/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@noble/secp256k1": "^2.2.3",
|
|
45
45
|
"@obsidion/bridge": "^0.10.2",
|
|
46
46
|
"@zkpassport/registry": "^0.5.2",
|
|
47
|
-
"@zkpassport/utils": "^0.
|
|
47
|
+
"@zkpassport/utils": "^0.15.3",
|
|
48
48
|
"buffer": "^6.0.3",
|
|
49
49
|
"i18n-iso-countries": "^7.12.0",
|
|
50
50
|
"pako": "^2.1.0",
|