@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/cjs/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/cjs/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const utils_3 = require("@noble/hashes/utils");
|
|
|
13
13
|
const ZKPassportVerifier_json_1 = tslib_1.__importDefault(require("./assets/abi/ZKPassportVerifier.json"));
|
|
14
14
|
const registry_1 = require("@zkpassport/registry");
|
|
15
15
|
const bridge_1 = require("@obsidion/bridge");
|
|
16
|
-
const VERSION = "0.5.
|
|
16
|
+
const VERSION = "0.5.5";
|
|
17
17
|
const DEFAULT_DATE_VALUE = new Date(1111, 10, 11);
|
|
18
18
|
// If Buffer is not defined, then we use the Buffer from the buffer package
|
|
19
19
|
if (typeof globalThis.Buffer === "undefined") {
|
|
@@ -2145,7 +2145,7 @@ class ZKPassport {
|
|
|
2145
2145
|
if (network === "ethereum_sepolia") {
|
|
2146
2146
|
return {
|
|
2147
2147
|
...baseConfig,
|
|
2148
|
-
address: "
|
|
2148
|
+
address: "0xDDeFf76024052D26B78A7Fac66FFbd6fbc5bd9Ad",
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
else if (network === "local_anvil") {
|
|
@@ -2290,8 +2290,8 @@ class ZKPassport {
|
|
|
2290
2290
|
committedInputs: `0x${compressedCommittedInputs}`,
|
|
2291
2291
|
committedInputCounts: committedInputCountsArray,
|
|
2292
2292
|
validityPeriodInDays,
|
|
2293
|
-
|
|
2294
|
-
|
|
2293
|
+
domain: domain ?? this.domain,
|
|
2294
|
+
scope: scope ?? "",
|
|
2295
2295
|
devMode,
|
|
2296
2296
|
};
|
|
2297
2297
|
return params;
|