@zkproofport-app/sdk 0.5.0-beta.4 → 0.5.0-beta.6

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.
@@ -35,7 +35,7 @@
35
35
  * two pieces, so nothing is joined back here.
36
36
  */
37
37
  import { type CircuitId } from './circuits';
38
- import { type OidcRequestContext } from '@zkproofport-app/core';
38
+ import { type CountryCondition, type OidcRequestContext } from '@zkproofport-app/core';
39
39
  export interface OffChainVerifyResult {
40
40
  valid: boolean;
41
41
  error?: string;
@@ -62,6 +62,13 @@ export interface OffChainVerifyOptions {
62
62
  * is given).
63
63
  */
64
64
  signerVariant?: string;
65
+ /**
66
+ * For `coinbase_country_attestation`: the country list and direction the
67
+ * request asked for. The proof's list is a public input the prover chose, so
68
+ * a proof is refused unless it was made against exactly this condition. See
69
+ * core's `checkCountryListMatches`.
70
+ */
71
+ countryCondition?: CountryCondition;
65
72
  }
66
73
  /**
67
74
  * Verify a proof off-chain, against its verification key.
package/dist/types.d.ts CHANGED
@@ -46,6 +46,8 @@ export interface CoinbaseKycInputs {
46
46
  * @property countryList - List of ISO 3166-1 alpha-2 country codes (e.g., ['US', 'KR']) (required)
47
47
  * @property isIncluded - If true, proves user IS from countries; if false, proves user is NOT from countries (required)
48
48
  * @property scope - Application-specific identifier for proof uniqueness
49
+ * @property action - Optional EIP-712 action the wallet signs instead of the signal hash;
50
+ * the proof's public inputs then carry its domain separator and struct hash
49
51
  *
50
52
  * @example
51
53
  * ```typescript
@@ -63,6 +65,11 @@ export interface CoinbaseCountryInputs {
63
65
  countryList: string[];
64
66
  isIncluded: boolean;
65
67
  scope: string;
68
+ /**
69
+ * The EIP-712 action this proof authorizes. Optional: without one the wallet
70
+ * personal_signs the request's signal hash (Coinbase Country v2, like KYC v2).
71
+ */
72
+ action?: TypedAction;
66
73
  }
67
74
  /**
68
75
  * Input parameters for OIDC Domain attestation circuit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkproofport-app/sdk",
3
- "version": "0.5.0-beta.4",
3
+ "version": "0.5.0-beta.6",
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.4.0-beta.0"
45
+ "@zkproofport-app/core": "0.4.0-beta.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@rollup/plugin-commonjs": "^25.0.7",