@zkproofport-app/sdk 0.5.0-beta.8 → 0.5.0-beta.9

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.
@@ -69,6 +69,12 @@ export interface OffChainVerifyOptions {
69
69
  * core's `checkCountryListMatches`.
70
70
  */
71
71
  countryCondition?: CountryCondition;
72
+ /**
73
+ * For `human_passport_score`: the score threshold the request asked for, in
74
+ * Passport points (20 = 20.0). The proof's min_score is the prover's choice,
75
+ * so it must equal this. See core's `checkHumanPassportProof`.
76
+ */
77
+ minScore?: number;
72
78
  }
73
79
  /**
74
80
  * Verify a proof off-chain, against its verification key.
package/dist/types.d.ts CHANGED
@@ -130,11 +130,28 @@ export interface ActionBoundInputs {
130
130
  export type GiwaAttestationInputs = ActionBoundInputs;
131
131
  /** Dojang Playground takes the same shape: its action is optional too. */
132
132
  export type DojangPlaygroundInputs = ActionBoundInputs;
133
+ /**
134
+ * Input parameters for `human_passport_score`.
135
+ *
136
+ * Proves the wallet holds an unexpired Human Passport score (scoreV2 on Base)
137
+ * of at least `minScore`, without revealing the wallet or the exact score.
138
+ *
139
+ * @property minScore - The threshold in Passport points (20 = 20.0; at most
140
+ * four decimals). The proof carries it, and verification compares it with
141
+ * the one asked for.
142
+ * @example
143
+ * ```typescript
144
+ * const inputs: HumanPassportScoreInputs = { scope: 'myapp.com', minScore: 20 };
145
+ * ```
146
+ */
147
+ export interface HumanPassportScoreInputs extends ActionBoundInputs {
148
+ minScore: number;
149
+ }
133
150
  /**
134
151
  * Union type of all circuit-specific input types.
135
152
  * Each circuit type has a corresponding input interface.
136
153
  */
137
- export type CircuitInputs = CoinbaseKycInputs | ActionBoundInputs | CoinbaseCountryInputs | OidcDomainInputs | EmptyInputs;
154
+ export type CircuitInputs = CoinbaseKycInputs | ActionBoundInputs | CoinbaseCountryInputs | HumanPassportScoreInputs | OidcDomainInputs | EmptyInputs;
138
155
  /**
139
156
  * Zero-knowledge proof request sent to mobile app via deep link.
140
157
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkproofport-app/sdk",
3
- "version": "0.5.0-beta.8",
3
+ "version": "0.5.0-beta.9",
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.4"
45
+ "@zkproofport-app/core": "0.4.0-beta.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@rollup/plugin-commonjs": "^25.0.7",