@zkpassport/sdk 0.9.0 → 0.10.0
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/constants.cjs +10 -4
- package/dist/cjs/constants.d.cts +5 -3
- package/dist/cjs/index.cjs +765 -737
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/public-input-checker.cjs +59 -58
- package/dist/cjs/solidity-verifier.cjs +692 -667
- package/dist/cjs/types.d.cts +11 -2
- package/dist/esm/chunk-I7PGO4XY.js +2567 -0
- package/dist/esm/chunk-JG37KYXW.js +18 -0
- package/dist/esm/{chunk-BUYJZSHP.js → chunk-O7ZONMCQ.js} +60 -59
- package/dist/esm/constants.d.ts +5 -3
- package/dist/esm/constants.js +7 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +16 -14
- package/dist/esm/public-input-checker.js +2 -2
- package/dist/esm/solidity-verifier.js +2 -2
- package/dist/esm/types.d.ts +11 -2
- package/package.json +4 -4
- package/dist/esm/chunk-JITNXEQS.js +0 -2542
- package/dist/esm/chunk-XOQW7AOQ.js +0 -14
package/dist/cjs/types.d.cts
CHANGED
|
@@ -21,17 +21,26 @@ type QueryResultErrors = {
|
|
|
21
21
|
scope?: QueryResultError<string>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
type
|
|
24
|
+
type SolidityProofVerificationData = {
|
|
25
25
|
vkeyHash: string;
|
|
26
26
|
proof: string;
|
|
27
27
|
publicInputs: string[];
|
|
28
|
+
};
|
|
29
|
+
type SolidityCommitments = {
|
|
28
30
|
committedInputs: string;
|
|
29
31
|
committedInputCounts: number[];
|
|
32
|
+
};
|
|
33
|
+
type SolidityServiceConfig = {
|
|
30
34
|
validityPeriodInSeconds: number;
|
|
31
35
|
domain: string;
|
|
32
36
|
scope: string;
|
|
33
37
|
devMode: boolean;
|
|
34
38
|
};
|
|
39
|
+
type SolidityVerifierParameters = {
|
|
40
|
+
proofVerificationData: SolidityProofVerificationData;
|
|
41
|
+
commitments: SolidityCommitments;
|
|
42
|
+
serviceConfig: SolidityServiceConfig;
|
|
43
|
+
};
|
|
35
44
|
type QueryBuilderResult = {
|
|
36
45
|
/**
|
|
37
46
|
* The URL of the request.
|
|
@@ -188,4 +197,4 @@ type QueryBuilder = {
|
|
|
188
197
|
done: () => QueryBuilderResult;
|
|
189
198
|
};
|
|
190
199
|
|
|
191
|
-
export type { QueryBuilder, QueryBuilderResult, QueryResultError, QueryResultErrors, SolidityVerifierParameters };
|
|
200
|
+
export type { QueryBuilder, QueryBuilderResult, QueryResultError, QueryResultErrors, SolidityCommitments, SolidityProofVerificationData, SolidityServiceConfig, SolidityVerifierParameters };
|