@zkproofport-app/sdk 0.5.0-beta.0 → 0.5.0-beta.2
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 +22 -15
- package/dist/ProofportSDK.d.ts +29 -8
- package/dist/constants.d.ts +43 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +177 -39
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +183 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +177 -39
- package/dist/index.mjs.map +1 -1
- package/dist/offChainVerifier.d.ts +4 -0
- package/dist/types.d.ts +8 -0
- package/package.json +2 -2
|
@@ -55,6 +55,10 @@ export interface OffChainVerifyOptions {
|
|
|
55
55
|
* Needs no setup from the caller: the verifier ships with this SDK and is
|
|
56
56
|
* loaded on first use.
|
|
57
57
|
*
|
|
58
|
+
* For `oidc_domain_attestation` it first checks the proof's RSA key against the
|
|
59
|
+
* provider's published JWKS (core's `checkOidcProviderKey`); a key the provider
|
|
60
|
+
* does not publish, or a JWKS that cannot be fetched, is `{ valid: false }`.
|
|
61
|
+
*
|
|
58
62
|
* @param circuit - Canonical circuit identifier
|
|
59
63
|
* @param proof - Proof bytes as hex, WITHOUT public inputs (as the relay sends it)
|
|
60
64
|
* @param publicInputs - Public inputs as hex strings, in circuit order
|
package/dist/types.d.ts
CHANGED
|
@@ -350,6 +350,14 @@ export interface ProofportConfig {
|
|
|
350
350
|
relayUrl?: string;
|
|
351
351
|
/** Custom verifier contract addresses per circuit type (overrides defaults) */
|
|
352
352
|
verifiers?: Partial<Record<CircuitType, VerifierContract>>;
|
|
353
|
+
/**
|
|
354
|
+
* @internal Which environment's chains a circuit with no configured
|
|
355
|
+
* verifier is verified on (the pinned verifier on that chain).
|
|
356
|
+
* `ProofportSDK.create(env)` sets it; set it yourself only alongside a custom
|
|
357
|
+
* `relayUrl`, e.g. a local relay on a LAN address. Without it, and without a
|
|
358
|
+
* configured verifier, verification fails rather than guessing.
|
|
359
|
+
*/
|
|
360
|
+
environment?: SDKEnvironment;
|
|
353
361
|
}
|
|
354
362
|
/**
|
|
355
363
|
* Parsed deep link URL components.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkproofport-app/sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.2",
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"buffer": "^6.0.3",
|
|
43
43
|
"qrcode": "^1.5.3",
|
|
44
44
|
"socket.io-client": "^4.8.0",
|
|
45
|
-
"@zkproofport-app/core": "0.
|
|
45
|
+
"@zkproofport-app/core": "0.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@rollup/plugin-commonjs": "^25.0.7",
|