@zkmedusa/passport-sdk 0.1.0 → 0.2.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/README.md CHANGED
@@ -21,8 +21,8 @@ import {
21
21
  const passport = parsePassportJson(passportJsonFromUser);
22
22
 
23
23
  const result = verifyPassport(passport, {
24
- issuerPublicKey: "749d6135f3d883950ff82f82bc2119e8b6e469ebfc4163dd10e1cc079b723565",
25
- minTier: 2, // require SILVER+
24
+ issuerPublicKey: process.env.MEDUSA_ISSUER_PUBLIC_KEY!,
25
+ minTier: 2,
26
26
  });
27
27
 
28
28
  if (result.valid) {
@@ -38,19 +38,19 @@ Fetch the issuer public key dynamically:
38
38
  import { MedusaPassportClient } from "@zkmedusa/passport-sdk";
39
39
 
40
40
  const client = new MedusaPassportClient({
41
- baseUrl: "https://your-medusa-app.com",
41
+ baseUrl: "https://www.zkmedusa.com",
42
42
  });
43
43
 
44
44
  const result = await client.verify(passport);
45
45
  ```
46
46
 
47
- ## Register for whitelist / presale
47
+ ## Register for whitelist / presale (partner backend)
48
48
 
49
- Users present a passport, then link a **claim wallet** (the address that receives presale access).
49
+ Partners register claim wallets from their backend with a Bearer API key scoped to one `campaignId`.
50
50
 
51
51
  ```typescript
52
52
  const client = new MedusaPassportClient({
53
- baseUrl: "https://your-medusa-app.com",
53
+ baseUrl: "https://www.zkmedusa.com",
54
54
  apiKey: process.env.MEDUSA_PARTNER_API_KEY,
55
55
  });
56
56
 
@@ -67,33 +67,73 @@ Pull the whitelist for your campaign:
67
67
 
68
68
  ```typescript
69
69
  const entries = await client.getWhitelist("my-presale-q3");
70
- // [{ claimWallet, tier, tierLabel, nullifier, registeredAt }, ...]
71
70
  ```
72
71
 
72
+ ## Claim wallet (user flow)
73
+
74
+ Since **v0.2.0**, users can register a **claim wallet** without a partner API key — for apps that let users submit their own claim address after minting a passport.
75
+
76
+ No `apiKey` is required. The campaign must be enabled on the Medusa server (`MEDUSA_CLAIM_CAMPAIGN_IDS`).
77
+
78
+ ```typescript
79
+ const client = new MedusaPassportClient({
80
+ baseUrl: "https://www.zkmedusa.com",
81
+ });
82
+
83
+ await client.registerClaimWallet({
84
+ passport,
85
+ claimWallet: "FreshClaimWalletPublicKey...",
86
+ campaignId: "my-presale-q3",
87
+ });
88
+ ```
89
+
90
+ Rotate to a new claim address for the same campaign (after generating a fresh wallet):
91
+
92
+ ```typescript
93
+ await client.rotateClaimWallet({
94
+ passport,
95
+ claimWallet: "NewClaimWalletPublicKey...",
96
+ campaignId: "my-presale-q3",
97
+ });
98
+ ```
99
+
100
+ Users can also manage claim wallets in the browser at [zkmedusa.com/wallet](https://www.zkmedusa.com/wallet).
101
+
102
+ **Partner vs user registration**
103
+
104
+ | Method | Auth | Endpoint |
105
+ | --- | --- | --- |
106
+ | `client.register()` | Bearer API key | `/api/partner/register` |
107
+ | `client.registerClaimWallet()` | None | `/api/passport/claim/register` |
108
+ | `client.rotateClaimWallet()` | None | `/api/passport/claim/rotate` |
109
+
73
110
  ## Partner API keys
74
111
 
75
112
  Medusa operators create keys in `.env`:
76
113
 
77
114
  ```env
78
115
  MEDUSA_PARTNER_API_KEYS=my-presale-q3:sk_live_partner_key
116
+ MEDUSA_CLAIM_CAMPAIGN_IDS=my-presale-q3,medusa-claim
79
117
  ```
80
118
 
81
- Each key is scoped to one `campaignId`.
119
+ Each partner key is scoped to one `campaignId`. Public claim routes only accept campaign IDs listed in `MEDUSA_CLAIM_CAMPAIGN_IDS`.
82
120
 
83
121
  ## Endpoints used by the SDK
84
122
 
85
123
  | Endpoint | Purpose |
86
- |----------|---------|
124
+ | --- | --- |
87
125
  | `GET /api/passport/issuer` | Issuer public key |
88
126
  | `GET /api/passport/verify` | Policy metadata |
89
127
  | `POST /api/passport/verify` | Remote passport verification |
90
- | `POST /api/partner/register` | Register passport + claim wallet |
128
+ | `POST /api/partner/register` | Partner register (Bearer) |
129
+ | `POST /api/passport/claim/register` | User claim wallet register |
130
+ | `POST /api/passport/claim/rotate` | User claim wallet rotate |
91
131
  | `GET /api/partner/whitelist?campaignId=` | Export campaign whitelist |
92
132
 
93
133
  ## Tier gating example
94
134
 
95
135
  ```typescript
96
- const PRESALE_MIN_TIER = 1; // bronze
136
+ const PRESALE_MIN_TIER = 1;
97
137
  const ALLOCATION_BY_TIER = { 1: 0.1, 2: 0.5, 3: 2 };
98
138
 
99
139
  const result = await client.verify(passport, { minTier: PRESALE_MIN_TIER });
@@ -106,8 +146,37 @@ const maxSol = ALLOCATION_BY_TIER[result.tier!];
106
146
 
107
147
  - The passport proves eligibility **without** revealing the proving wallet.
108
148
  - Registration links the passport to a **claim wallet** for whitelist/presale payout.
149
+ - Claim wallet secret keys stay in the user's browser unless they export a backup JSON.
109
150
  - One passport nullifier can register once per campaign (anti-sybil).
110
151
 
111
152
  ## Browser + Node
112
153
 
113
154
  The SDK works in Node.js, Next.js API routes, and the browser (local verify only).
155
+
156
+ ## Publishing this package (maintainers)
157
+
158
+ From the monorepo root:
159
+
160
+ ```bash
161
+ # 1. Log in to npm (once per machine)
162
+ npm login
163
+
164
+ # 2. Build the SDK (runs automatically before publish via prepublishOnly)
165
+ npm run build:sdk
166
+
167
+ # 3. Publish to npm
168
+ npm run publish:sdk
169
+ ```
170
+
171
+ Or from `packages/medusa-passport-sdk/`:
172
+
173
+ ```bash
174
+ npm run build
175
+ npm publish --access public
176
+ ```
177
+
178
+ Bump `version` in `packages/medusa-passport-sdk/package.json` before each publish (semver). After publishing, integrators update with:
179
+
180
+ ```bash
181
+ npm install @zkmedusa/passport-sdk@latest
182
+ ```
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IssuerInfo, MedusaPassport, PassportPolicy, RegisterPassportInput, RegisterPassportResult, VerifyPassportOptions, VerifyPassportResult, WhitelistEntry } from "./types.js";
1
+ import type { IssuerInfo, MedusaPassport, PassportPolicy, RegisterPassportInput, RegisterPassportResult, ClaimRegisterInput, ClaimRegisterResult, ClaimRotateInput, ClaimRotateResult, VerifyPassportOptions, VerifyPassportResult, WhitelistEntry } from "./types.js";
2
2
  export interface MedusaPassportClientOptions {
3
3
  baseUrl: string;
4
4
  apiKey?: string;
@@ -18,6 +18,8 @@ export declare class MedusaPassportClient {
18
18
  verifyLocal(passport: MedusaPassport, options: VerifyPassportOptions): VerifyPassportResult;
19
19
  parseAndVerify(passportJson: string, options?: Omit<VerifyPassportOptions, "issuerPublicKey">): Promise<VerifyPassportResult>;
20
20
  register(input: RegisterPassportInput): Promise<RegisterPassportResult>;
21
+ registerClaimWallet(input: ClaimRegisterInput): Promise<ClaimRegisterResult>;
22
+ rotateClaimWallet(input: ClaimRotateInput): Promise<ClaimRotateResult>;
21
23
  getWhitelist(campaignId: string): Promise<WhitelistEntry[]>;
22
24
  hasValidSignature(passport: MedusaPassport, issuerPublicKey?: string): boolean;
23
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IACjC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;gBAE7B,OAAO,EAAE,2BAA2B;IAO1C,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC;IAelC,WAAW,IAAI,OAAO,CAAC,cAAc,CAA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C,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;gBAE7B,OAAO,EAAE,2BAA2B;IAO1C,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC;IAelC,WAAW,IAAI,OAAO,CAAC,cAAc,CAAC;IAUtC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA+BrE,MAAM,CACV,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE,IAAI,CAAC,qBAAqB,EAAE,iBAAiB,CAAM,GAC3D,OAAO,CAAC,oBAAoB,CAAC;IAehC,WAAW,CACT,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB;IAIjB,cAAc,CAClB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,IAAI,CAAC,qBAAqB,EAAE,iBAAiB,CAAM,GAC3D,OAAO,CAAC,oBAAoB,CAAC;IAiB1B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA+BvE,mBAAmB,CACvB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,mBAAmB,CAAC;IAwBzB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAwBtE,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAgCjE,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO;CAQ/E"}
package/dist/client.js CHANGED
@@ -93,6 +93,30 @@ export class MedusaPassportClient {
93
93
  }
94
94
  return payload;
95
95
  }
96
+ async registerClaimWallet(input) {
97
+ const response = await this.fetchImpl(`${this.baseUrl}/api/passport/claim/register`, {
98
+ method: "POST",
99
+ headers: { "Content-Type": "application/json" },
100
+ body: JSON.stringify(input),
101
+ });
102
+ const payload = (await response.json());
103
+ if (!response.ok || !payload.registered) {
104
+ throw new MedusaPassportError(payload.error ?? "Claim wallet registration failed.", "REGISTRATION_FAILED");
105
+ }
106
+ return payload;
107
+ }
108
+ async rotateClaimWallet(input) {
109
+ const response = await this.fetchImpl(`${this.baseUrl}/api/passport/claim/rotate`, {
110
+ method: "POST",
111
+ headers: { "Content-Type": "application/json" },
112
+ body: JSON.stringify(input),
113
+ });
114
+ const payload = (await response.json());
115
+ if (!response.ok || !payload.rotated) {
116
+ throw new MedusaPassportError(payload.error ?? "Claim wallet rotation failed.", "REGISTRATION_FAILED");
117
+ }
118
+ return payload;
119
+ }
96
120
  async getWhitelist(campaignId) {
97
121
  if (!this.apiKey) {
98
122
  throw new MedusaPassportError("apiKey is required to fetch whitelist entries.", "API_ERROR");
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { MedusaPassportClient } from "./client.js";
2
2
  export type { MedusaPassportClientOptions } from "./client.js";
3
3
  export { MedusaPassportError } from "./errors.js";
4
4
  export { PASSPORT_POLICY_VERSION, PASSPORT_TIERS, TIER_LABELS, } from "./types.js";
5
- export type { IssuerInfo, MedusaPassport, PassportPolicy, PassportPublicInputs, PassportStatement, PassportTier, RegisterPassportInput, RegisterPassportResult, VerifyPassportOptions, VerifyPassportResult, WhitelistEntry, ZkProofBundle, } from "./types.js";
5
+ export type { IssuerInfo, MedusaPassport, PassportPolicy, PassportPublicInputs, PassportStatement, PassportTier, RegisterPassportInput, RegisterPassportResult, ClaimRegisterInput, ClaimRegisterResult, ClaimRotateInput, ClaimRotateResult, VerifyPassportOptions, VerifyPassportResult, WhitelistEntry, ZkProofBundle, } from "./types.js";
6
6
  export { hexToBytes, isValidSolanaAddress } from "./utils.js";
7
7
  export { parsePassportJson, verifyPassport, verifyPassportSignature, } from "./verify.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
package/dist/types.d.ts CHANGED
@@ -66,6 +66,35 @@ export interface RegisterPassportResult {
66
66
  nullifier: string;
67
67
  registeredAt: string;
68
68
  }
69
+ export interface ClaimRegisterInput {
70
+ passport: MedusaPassport;
71
+ claimWallet: string;
72
+ campaignId?: string;
73
+ }
74
+ export interface ClaimRegisterResult {
75
+ registered: boolean;
76
+ campaignId: string;
77
+ claimWallet: string;
78
+ tier: PassportTier;
79
+ tierLabel: string;
80
+ nullifier: string;
81
+ registeredAt: string;
82
+ }
83
+ export interface ClaimRotateInput {
84
+ passport: MedusaPassport;
85
+ claimWallet: string;
86
+ campaignId?: string;
87
+ }
88
+ export interface ClaimRotateResult {
89
+ rotated: boolean;
90
+ previousClaimWallet: string;
91
+ campaignId: string;
92
+ claimWallet: string;
93
+ tier: PassportTier;
94
+ tierLabel: string;
95
+ nullifier: string;
96
+ registeredAt: string;
97
+ }
69
98
  export interface WhitelistEntry {
70
99
  campaignId: string;
71
100
  claimWallet: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,oBAA6B,CAAC;AAErE,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEhF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAIpD,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,gBAAgB,GAAG,WAAW,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;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CAAC;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkmedusa/passport-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Verify and register Medusa Passports in third-party apps, presales, and whitelists.",
5
5
  "license": "MIT",
6
6
  "type": "module",