@dynamic-labs-wallet/core 0.0.18 → 0.0.20

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/index.cjs.js CHANGED
@@ -143,6 +143,82 @@ const getClientThreshold = (thresholdSignatureScheme)=>{
143
143
  const getDynamicServerThreshold = (thresholdSignatureScheme)=>{
144
144
  return MPC_CONFIG[thresholdSignatureScheme].dynamicServerThreshold;
145
145
  };
146
+ /**
147
+ * Helper function to get the reshare config for client and server shares
148
+ * @param {ThresholdSignatureScheme} oldThresholdSignatureScheme - The current threshold signature scheme
149
+ * @param {ThresholdSignatureScheme} newThresholdSignatureScheme - The target threshold signature scheme
150
+ * @returns {{
151
+ * existingClientShareCount: number,
152
+ * newClientShareCount: number,
153
+ * existingServerShareCount: number,
154
+ * newServerShareCount: number
155
+ * }} The number of existing and new client and server shares needed
156
+ */ const getReshareConfig = ({ oldThresholdSignatureScheme, newThresholdSignatureScheme })=>{
157
+ switch(true){
158
+ // 2-of-2 -> 2-of-2:
159
+ // -- server shares: 1 existing, 0 new
160
+ // -- client shares: 1 existing, 1 new
161
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO:
162
+ return {
163
+ existingClientShareCount: 1,
164
+ newClientShareCount: 1,
165
+ existingServerShareCount: 1,
166
+ newServerShareCount: 0
167
+ };
168
+ // 2-of-3 -> 2-of-3:
169
+ // -- server shares: 1 existing, 0 new
170
+ // -- client shares: 1 existing, 1 new
171
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE:
172
+ return {
173
+ existingClientShareCount: 1,
174
+ newClientShareCount: 1,
175
+ existingServerShareCount: 1,
176
+ newServerShareCount: 0
177
+ };
178
+ // 3-of-5 -> 3-of-5:
179
+ // -- server shares: 2 existing, 0 new
180
+ // -- client shares: 1 existing, 2 new
181
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
182
+ return {
183
+ existingClientShareCount: 1,
184
+ newClientShareCount: 2,
185
+ existingServerShareCount: 2,
186
+ newServerShareCount: 0
187
+ };
188
+ // 2-of-2 -> 2-of-3:
189
+ // -- server shares: 1 existing, 0 new
190
+ // -- client shares: 1 existing, 1 new
191
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE:
192
+ return {
193
+ existingClientShareCount: 1,
194
+ newClientShareCount: 1,
195
+ existingServerShareCount: 1,
196
+ newServerShareCount: 0
197
+ };
198
+ // 2-of-2 -> 3-of-5:
199
+ // -- server shares: 1 existing, 1 new
200
+ // -- client shares: 1 existing, 2 new
201
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
202
+ return {
203
+ existingClientShareCount: 1,
204
+ newClientShareCount: 2,
205
+ existingServerShareCount: 1,
206
+ newServerShareCount: 1
207
+ };
208
+ // 2-of-3 -> 3-of-5:
209
+ // -- server shares: 1 existing, 1 new
210
+ // -- client shares: 1 existing, 2 new
211
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
212
+ return {
213
+ existingClientShareCount: 1,
214
+ newClientShareCount: 2,
215
+ existingServerShareCount: 1,
216
+ newServerShareCount: 1
217
+ };
218
+ default:
219
+ throw new Error(`Unsupported reshare from ${oldThresholdSignatureScheme} to ${newThresholdSignatureScheme}`);
220
+ }
221
+ };
146
222
 
147
223
  class BaseClient {
148
224
  constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
@@ -166,7 +242,7 @@ class BaseClient {
166
242
 
167
243
  class DynamicApiClient extends BaseClient {
168
244
  async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme }) {
169
- // Initilize keygen, create room, and create the wallet account on the server
245
+ // Initialize keygen, create room, and create the wallet account on the server
170
246
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/create`, {
171
247
  chain: chainName,
172
248
  clientKeygenIds,
@@ -184,9 +260,11 @@ class DynamicApiClient extends BaseClient {
184
260
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/refresh`);
185
261
  return data;
186
262
  }
187
- async reshareRemainingParty({ walletId, clientKeygenIds }) {
263
+ async reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme }) {
188
264
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/reshare`, {
189
- clientKeygenIds
265
+ clientKeygenIds,
266
+ oldThresholdSignatureScheme,
267
+ newThresholdSignatureScheme
190
268
  });
191
269
  return data;
192
270
  }
@@ -257,4 +335,5 @@ exports.ThresholdSignatureScheme = ThresholdSignatureScheme;
257
335
  exports.getClientThreshold = getClientThreshold;
258
336
  exports.getDynamicServerThreshold = getDynamicServerThreshold;
259
337
  exports.getMPCChainConfig = getMPCChainConfig;
338
+ exports.getReshareConfig = getReshareConfig;
260
339
  exports.getTSSConfig = getTSSConfig;
package/index.esm.js CHANGED
@@ -141,6 +141,82 @@ const getClientThreshold = (thresholdSignatureScheme)=>{
141
141
  const getDynamicServerThreshold = (thresholdSignatureScheme)=>{
142
142
  return MPC_CONFIG[thresholdSignatureScheme].dynamicServerThreshold;
143
143
  };
144
+ /**
145
+ * Helper function to get the reshare config for client and server shares
146
+ * @param {ThresholdSignatureScheme} oldThresholdSignatureScheme - The current threshold signature scheme
147
+ * @param {ThresholdSignatureScheme} newThresholdSignatureScheme - The target threshold signature scheme
148
+ * @returns {{
149
+ * existingClientShareCount: number,
150
+ * newClientShareCount: number,
151
+ * existingServerShareCount: number,
152
+ * newServerShareCount: number
153
+ * }} The number of existing and new client and server shares needed
154
+ */ const getReshareConfig = ({ oldThresholdSignatureScheme, newThresholdSignatureScheme })=>{
155
+ switch(true){
156
+ // 2-of-2 -> 2-of-2:
157
+ // -- server shares: 1 existing, 0 new
158
+ // -- client shares: 1 existing, 1 new
159
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO:
160
+ return {
161
+ existingClientShareCount: 1,
162
+ newClientShareCount: 1,
163
+ existingServerShareCount: 1,
164
+ newServerShareCount: 0
165
+ };
166
+ // 2-of-3 -> 2-of-3:
167
+ // -- server shares: 1 existing, 0 new
168
+ // -- client shares: 1 existing, 1 new
169
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE:
170
+ return {
171
+ existingClientShareCount: 1,
172
+ newClientShareCount: 1,
173
+ existingServerShareCount: 1,
174
+ newServerShareCount: 0
175
+ };
176
+ // 3-of-5 -> 3-of-5:
177
+ // -- server shares: 2 existing, 0 new
178
+ // -- client shares: 1 existing, 2 new
179
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
180
+ return {
181
+ existingClientShareCount: 1,
182
+ newClientShareCount: 2,
183
+ existingServerShareCount: 2,
184
+ newServerShareCount: 0
185
+ };
186
+ // 2-of-2 -> 2-of-3:
187
+ // -- server shares: 1 existing, 0 new
188
+ // -- client shares: 1 existing, 1 new
189
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE:
190
+ return {
191
+ existingClientShareCount: 1,
192
+ newClientShareCount: 1,
193
+ existingServerShareCount: 1,
194
+ newServerShareCount: 0
195
+ };
196
+ // 2-of-2 -> 3-of-5:
197
+ // -- server shares: 1 existing, 1 new
198
+ // -- client shares: 1 existing, 2 new
199
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_TWO && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
200
+ return {
201
+ existingClientShareCount: 1,
202
+ newClientShareCount: 2,
203
+ existingServerShareCount: 1,
204
+ newServerShareCount: 1
205
+ };
206
+ // 2-of-3 -> 3-of-5:
207
+ // -- server shares: 1 existing, 1 new
208
+ // -- client shares: 1 existing, 2 new
209
+ case oldThresholdSignatureScheme === ThresholdSignatureScheme.TWO_OF_THREE && newThresholdSignatureScheme === ThresholdSignatureScheme.THREE_OF_FIVE:
210
+ return {
211
+ existingClientShareCount: 1,
212
+ newClientShareCount: 2,
213
+ existingServerShareCount: 1,
214
+ newServerShareCount: 1
215
+ };
216
+ default:
217
+ throw new Error(`Unsupported reshare from ${oldThresholdSignatureScheme} to ${newThresholdSignatureScheme}`);
218
+ }
219
+ };
144
220
 
145
221
  class BaseClient {
146
222
  constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
@@ -164,7 +240,7 @@ class BaseClient {
164
240
 
165
241
  class DynamicApiClient extends BaseClient {
166
242
  async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme }) {
167
- // Initilize keygen, create room, and create the wallet account on the server
243
+ // Initialize keygen, create room, and create the wallet account on the server
168
244
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/create`, {
169
245
  chain: chainName,
170
246
  clientKeygenIds,
@@ -182,9 +258,11 @@ class DynamicApiClient extends BaseClient {
182
258
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/refresh`);
183
259
  return data;
184
260
  }
185
- async reshareRemainingParty({ walletId, clientKeygenIds }) {
261
+ async reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme }) {
186
262
  const { data } = await this.apiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/reshare`, {
187
- clientKeygenIds
263
+ clientKeygenIds,
264
+ oldThresholdSignatureScheme,
265
+ newThresholdSignatureScheme
188
266
  });
189
267
  return data;
190
268
  }
@@ -239,4 +317,4 @@ class DynamicApiClient extends BaseClient {
239
317
  }
240
318
  }
241
319
 
242
- export { BITCOIN_DERIVATION_PATHS, CreateRoomPartiesOptions, DYNAMIC_AUTH_PREPROD_BASE_API_URL, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PROD_BASE_API_URL, DynamicApiClient, MPC_CHAIN_CONFIG, MPC_CONFIG, MPC_RELAY_PREPROD_API_URL, MPC_RELAY_PROD_API_URL, SigningAlgorithm, ThresholdSignatureScheme, getClientThreshold, getDynamicServerThreshold, getMPCChainConfig, getTSSConfig };
320
+ export { BITCOIN_DERIVATION_PATHS, CreateRoomPartiesOptions, DYNAMIC_AUTH_PREPROD_BASE_API_URL, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PREPROD_BASE_API_URL, DYNAMIC_CLIENT_RELAY_PROD_BASE_API_URL, DynamicApiClient, MPC_CHAIN_CONFIG, MPC_CONFIG, MPC_RELAY_PREPROD_API_URL, MPC_RELAY_PROD_API_URL, SigningAlgorithm, ThresholdSignatureScheme, getClientThreshold, getDynamicServerThreshold, getMPCChainConfig, getReshareConfig, getTSSConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/core",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "dependencies": {
5
5
  "axios": "1.7.9"
6
6
  },
package/src/api/api.d.ts CHANGED
@@ -18,9 +18,11 @@ export declare class DynamicApiClient extends BaseClient {
18
18
  refreshWalletAccountShares({ walletId }: {
19
19
  walletId: string;
20
20
  }): Promise<any>;
21
- reshareRemainingParty({ walletId, clientKeygenIds, }: {
21
+ reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, }: {
22
22
  walletId: string;
23
23
  clientKeygenIds: string[];
24
+ oldThresholdSignatureScheme: ThresholdSignatureScheme;
25
+ newThresholdSignatureScheme: ThresholdSignatureScheme;
24
26
  }): Promise<any>;
25
27
  exportKey({ walletId, exportId, }: {
26
28
  walletId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,qBAAa,gBAAiB,SAAQ,UAAU;gBAClC,EACV,aAAa,EACb,SAAS,EACT,UAAU,GACX,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAIK,mBAAmB,CAAC,EACxB,SAAS,EACT,eAAe,EACf,wBAAwB,GACzB,EAAE;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,wBAAwB,EAAE,wBAAwB,CAAC;KACpD;IAaK,WAAW,CAAC,EAChB,QAAQ,EACR,OAAO,GACR,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB;IAUK,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;IAO7D,qBAAqB,CAAC,EAC1B,QAAQ,EACR,eAAe,GAChB,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,EAAE,CAAC;KAC3B;IAUK,SAAS,CAAC,EACd,QAAQ,EACR,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB;IAUK,4BAA4B,CAAC,EACjC,QAAQ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EAAE,CAAA;KAAE,CAAC;IAYpD,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IAOvB,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;CAOlC"}
@@ -9,4 +9,24 @@ export declare const getTSSConfig: (thresholdSignatureScheme: ThresholdSignature
9
9
  };
10
10
  export declare const getClientThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
11
11
  export declare const getDynamicServerThreshold: (thresholdSignatureScheme: ThresholdSignatureScheme) => number;
12
+ /**
13
+ * Helper function to get the reshare config for client and server shares
14
+ * @param {ThresholdSignatureScheme} oldThresholdSignatureScheme - The current threshold signature scheme
15
+ * @param {ThresholdSignatureScheme} newThresholdSignatureScheme - The target threshold signature scheme
16
+ * @returns {{
17
+ * existingClientShareCount: number,
18
+ * newClientShareCount: number,
19
+ * existingServerShareCount: number,
20
+ * newServerShareCount: number
21
+ * }} The number of existing and new client and server shares needed
22
+ */
23
+ export declare const getReshareConfig: ({ oldThresholdSignatureScheme, newThresholdSignatureScheme, }: {
24
+ oldThresholdSignatureScheme: ThresholdSignatureScheme;
25
+ newThresholdSignatureScheme: ThresholdSignatureScheme;
26
+ }) => {
27
+ existingClientShareCount: number;
28
+ newClientShareCount: number;
29
+ existingServerShareCount: number;
30
+ newServerShareCount: number;
31
+ };
12
32
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mpc/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,cAAe,MAAM;;;CAMlD,CAAC;AAEF,eAAO,MAAM,YAAY,6BACG,wBAAwB;;;CAInD,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BACH,wBAAwB,WAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BACV,wBAAwB,WAGnD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mpc/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,cAAe,MAAM;;;CAMlD,CAAC;AAEF,eAAO,MAAM,YAAY,6BACG,wBAAwB;;;CAInD,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BACH,wBAAwB,WAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BACV,wBAAwB,WAGnD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,kEAG1B;IACD,2BAA2B,EAAE,wBAAwB,CAAC;IACtD,2BAA2B,EAAE,wBAAwB,CAAC;CACvD,KAAG;IACF,wBAAwB,EAAE,MAAM,CAAC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,wBAAwB,EAAE,MAAM,CAAC;IACjC,mBAAmB,EAAE,MAAM,CAAC;CAgF7B,CAAC"}