@zkproofport-app/sdk 0.2.10 → 0.2.12
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/README.md +131 -31
- package/dist/ProofportSDK.d.ts +22 -8
- package/dist/circuits.d.ts +144 -0
- package/dist/circuits.esm.js +148 -0
- package/dist/circuits.esm.js.map +1 -0
- package/dist/circuits.js +157 -0
- package/dist/circuits.js.map +1 -0
- package/dist/circuits.mjs +148 -0
- package/dist/circuits.mjs.map +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/deeplink.d.ts +70 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +302 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +309 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +302 -22
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +16 -3
- package/package.json +8 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ZKProofport SDK Types
|
|
3
3
|
*/
|
|
4
|
+
import type { CircuitId } from './circuits';
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* Zero-knowledge circuit identifiers.
|
|
6
7
|
* Uses canonical circuit names matching Nargo.toml circuit definitions.
|
|
7
8
|
*
|
|
9
|
+
* Alias of {@link CircuitId}, which is defined in `./circuits` — the single
|
|
10
|
+
* source of truth for circuit identifiers. Adding a circuit there widens this
|
|
11
|
+
* type automatically, so the two can never disagree.
|
|
12
|
+
*
|
|
13
|
+
* Note that this union includes circuits marked `planned` in
|
|
14
|
+
* `CIRCUIT_SUPPORT_STATUS`; being assignable is not a support guarantee.
|
|
15
|
+
*
|
|
8
16
|
* @example
|
|
9
17
|
* ```typescript
|
|
10
18
|
* const circuit: CircuitType = 'coinbase_attestation';
|
|
11
19
|
* ```
|
|
12
20
|
*/
|
|
13
|
-
export type CircuitType =
|
|
21
|
+
export type CircuitType = CircuitId;
|
|
14
22
|
/**
|
|
15
23
|
* Proof request lifecycle status.
|
|
16
24
|
*
|
|
@@ -199,7 +207,12 @@ export interface ProofRequest {
|
|
|
199
207
|
dappIcon?: string;
|
|
200
208
|
/**
|
|
201
209
|
* Optional: which app the ZKProofport app should bring back to the foreground
|
|
202
|
-
* once it has finished
|
|
210
|
+
* once it has finished — a bare custom scheme such as `mydapp://`.
|
|
211
|
+
*
|
|
212
|
+
* Not a URL, and an https origin is not accepted: opening one launches a new
|
|
213
|
+
* browser tab on a fresh page instead of returning the user to the tab they
|
|
214
|
+
* started from. A web requester therefore has nothing valid to put here and
|
|
215
|
+
* omits the field. See {@link ProofportSDK.createRelayRequest}.
|
|
203
216
|
*/
|
|
204
217
|
returnScheme?: string;
|
|
205
218
|
/** Unix timestamp (ms) when request was created */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkproofport-app/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "ZKProofport SDK for requesting zero-knowledge proofs from the ZKProofport mobile app and verifying them on-chain",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
"import": "./dist/index.esm.js",
|
|
11
11
|
"require": "./dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./circuits": {
|
|
15
|
+
"types": "./dist/circuits.d.ts",
|
|
16
|
+
"import": "./dist/circuits.esm.js",
|
|
17
|
+
"require": "./dist/circuits.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
14
20
|
},
|
|
15
21
|
"files": [
|
|
16
22
|
"dist",
|