@dynamic-labs-wallet/browser 0.0.162 → 0.0.164
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 +69 -39
- package/index.esm.js +69 -39
- package/package.json +2 -2
- package/src/backup/encryption/core.d.ts +1 -0
- package/src/backup/encryption/core.d.ts.map +1 -1
- package/src/client.d.ts +4 -2
- package/src/client.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -239,6 +239,7 @@ const ensureBase64Padding = (str)=>{
|
|
|
239
239
|
* Decrypts data with version-based configuration.
|
|
240
240
|
* Uses the version field from the data to determine encryption parameters.
|
|
241
241
|
* Falls back to legacy version for backward compatibility if no version is specified.
|
|
242
|
+
* For v3 (Argon2), retries with parallelism=1 if an OperationError occurs.
|
|
242
243
|
*/ const decryptData = async ({ data, password })=>{
|
|
243
244
|
const { salt, iv, cipher, version } = data;
|
|
244
245
|
// Ensure proper base64 padding for all values
|
|
@@ -261,6 +262,29 @@ const ensureBase64Padding = (str)=>{
|
|
|
261
262
|
}, key, cipherBytes);
|
|
262
263
|
return new TextDecoder().decode(decryptedData);
|
|
263
264
|
} catch (error) {
|
|
265
|
+
// For a short period of time we lowered the parallelism for v3 (Argon2) to 1 to try to fix issues
|
|
266
|
+
// for users with limited resources, however this introduced a new issue that the decryption would fail
|
|
267
|
+
// for existing users with v3 (Argon2) encryption, this is a fallback for a few users.
|
|
268
|
+
if (error instanceof Error && error.name === 'OperationError' && version === 'v3' && isArgon2Config(encryptionConfig)) {
|
|
269
|
+
try {
|
|
270
|
+
// Create a modified config with parallelism=1
|
|
271
|
+
const modifiedConfig = _extends({}, encryptionConfig, {
|
|
272
|
+
parallelism: 1
|
|
273
|
+
});
|
|
274
|
+
const key = await getKey({
|
|
275
|
+
password,
|
|
276
|
+
salt: saltBytes
|
|
277
|
+
}, modifiedConfig);
|
|
278
|
+
const decryptedData = await crypto.subtle.decrypt({
|
|
279
|
+
name: AES_GCM_ALGORITHM,
|
|
280
|
+
iv: ivBytes
|
|
281
|
+
}, key, cipherBytes);
|
|
282
|
+
return new TextDecoder().decode(decryptedData);
|
|
283
|
+
} catch (retryError) {
|
|
284
|
+
// If retry also fails, throw the original error with additional context
|
|
285
|
+
throw new Error(`Decryption failed after retry with parallelism=1: ${retryError}`);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
264
288
|
throw new Error('Decryption failed: ' + error);
|
|
265
289
|
}
|
|
266
290
|
};
|
|
@@ -383,7 +407,7 @@ const downloadFileFromGoogleDrive = async ({ accessToken, fileName })=>{
|
|
|
383
407
|
|
|
384
408
|
const handleAxiosError = (error, message, context)=>{
|
|
385
409
|
var _error_response, _error_response1, _error_response2;
|
|
386
|
-
logger.
|
|
410
|
+
logger.error('[DynamicWaasWalletClient] Axios error: ', {
|
|
387
411
|
message,
|
|
388
412
|
error: (_error_response = error.response) == null ? void 0 : _error_response.data,
|
|
389
413
|
status: (_error_response1 = error.response) == null ? void 0 : _error_response1.status,
|
|
@@ -424,8 +448,8 @@ const logError = ({ message, error, context })=>{
|
|
|
424
448
|
if (error instanceof axios.AxiosError) {
|
|
425
449
|
handleAxiosError(error, message, context);
|
|
426
450
|
}
|
|
427
|
-
logger.error(
|
|
428
|
-
error: error instanceof Error ? error.message :
|
|
451
|
+
logger.error('[DynamicWaasWalletClient] Error in browser client', {
|
|
452
|
+
error: error instanceof Error ? error.message : String(error),
|
|
429
453
|
context
|
|
430
454
|
});
|
|
431
455
|
};
|
|
@@ -761,7 +785,7 @@ class DynamicWalletClient {
|
|
|
761
785
|
this.sessionId = sessionId;
|
|
762
786
|
} catch (error) {
|
|
763
787
|
logError({
|
|
764
|
-
message: '
|
|
788
|
+
message: 'Error initializing logger context',
|
|
765
789
|
error: error,
|
|
766
790
|
context: {}
|
|
767
791
|
});
|
|
@@ -918,7 +942,7 @@ class DynamicWalletClient {
|
|
|
918
942
|
};
|
|
919
943
|
} catch (error) {
|
|
920
944
|
logError({
|
|
921
|
-
message: '
|
|
945
|
+
message: 'Error in keyGen',
|
|
922
946
|
error: error,
|
|
923
947
|
context: {
|
|
924
948
|
chainName,
|
|
@@ -998,7 +1022,7 @@ class DynamicWalletClient {
|
|
|
998
1022
|
};
|
|
999
1023
|
} catch (error) {
|
|
1000
1024
|
logError({
|
|
1001
|
-
message: '
|
|
1025
|
+
message: 'Error in importRawPrivateKey',
|
|
1002
1026
|
error: error,
|
|
1003
1027
|
context: {
|
|
1004
1028
|
chainName,
|
|
@@ -1009,7 +1033,7 @@ class DynamicWalletClient {
|
|
|
1009
1033
|
throw error;
|
|
1010
1034
|
}
|
|
1011
1035
|
}
|
|
1012
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError }) {
|
|
1036
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1013
1037
|
// Create the room and sign the message
|
|
1014
1038
|
if (typeof message !== 'string') {
|
|
1015
1039
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1018,14 +1042,14 @@ class DynamicWalletClient {
|
|
|
1018
1042
|
walletId,
|
|
1019
1043
|
message,
|
|
1020
1044
|
isFormatted,
|
|
1021
|
-
dynamicRequestId
|
|
1045
|
+
dynamicRequestId,
|
|
1022
1046
|
mfaToken,
|
|
1023
1047
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1024
1048
|
onError
|
|
1025
1049
|
});
|
|
1026
1050
|
return data;
|
|
1027
1051
|
}
|
|
1028
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted }) {
|
|
1052
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1029
1053
|
try {
|
|
1030
1054
|
const mpcSigner = getMPCSigner({
|
|
1031
1055
|
chainName,
|
|
@@ -1043,13 +1067,14 @@ class DynamicWalletClient {
|
|
|
1043
1067
|
return signature;
|
|
1044
1068
|
} catch (error) {
|
|
1045
1069
|
logError({
|
|
1046
|
-
message: '
|
|
1070
|
+
message: 'Error in clientSign',
|
|
1047
1071
|
error: error,
|
|
1048
1072
|
context: {
|
|
1049
1073
|
chainName,
|
|
1050
1074
|
roomId,
|
|
1051
1075
|
derivationPath,
|
|
1052
|
-
isFormatted
|
|
1076
|
+
isFormatted,
|
|
1077
|
+
dynamicRequestId
|
|
1053
1078
|
}
|
|
1054
1079
|
});
|
|
1055
1080
|
throw error;
|
|
@@ -1057,6 +1082,7 @@ class DynamicWalletClient {
|
|
|
1057
1082
|
}
|
|
1058
1083
|
//todo: need to modify with imported flag
|
|
1059
1084
|
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1085
|
+
const dynamicRequestId = uuid.v4();
|
|
1060
1086
|
try {
|
|
1061
1087
|
await this.verifyPassword({
|
|
1062
1088
|
accountAddress,
|
|
@@ -1077,13 +1103,15 @@ class DynamicWalletClient {
|
|
|
1077
1103
|
isFormatted,
|
|
1078
1104
|
mfaToken,
|
|
1079
1105
|
context,
|
|
1080
|
-
onError
|
|
1106
|
+
onError,
|
|
1107
|
+
dynamicRequestId
|
|
1081
1108
|
});
|
|
1082
1109
|
this.logger.debug('[DynamicWaasWalletClient] Server sign completed', {
|
|
1083
1110
|
message,
|
|
1084
1111
|
accountAddress,
|
|
1085
1112
|
walletId: wallet.walletId,
|
|
1086
|
-
roomId: data.roomId
|
|
1113
|
+
roomId: data.roomId,
|
|
1114
|
+
dynamicRequestId
|
|
1087
1115
|
});
|
|
1088
1116
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1089
1117
|
// Perform the client sign and return the signature
|
|
@@ -1096,7 +1124,8 @@ class DynamicWalletClient {
|
|
|
1096
1124
|
roomId: data.roomId,
|
|
1097
1125
|
keyShare: clientKeyShares[0],
|
|
1098
1126
|
derivationPath,
|
|
1099
|
-
isFormatted
|
|
1127
|
+
isFormatted,
|
|
1128
|
+
dynamicRequestId
|
|
1100
1129
|
});
|
|
1101
1130
|
this.logger.debug('[DynamicWaasWalletClient] Client sign completed', {
|
|
1102
1131
|
chainName,
|
|
@@ -1108,12 +1137,13 @@ class DynamicWalletClient {
|
|
|
1108
1137
|
return signature;
|
|
1109
1138
|
} catch (error) {
|
|
1110
1139
|
logError({
|
|
1111
|
-
message: '
|
|
1140
|
+
message: 'Error in sign',
|
|
1112
1141
|
error: error,
|
|
1113
1142
|
context: {
|
|
1114
1143
|
accountAddress,
|
|
1115
1144
|
chainName,
|
|
1116
|
-
isFormatted: isFormatted ? 'true' : 'false'
|
|
1145
|
+
isFormatted: isFormatted ? 'true' : 'false',
|
|
1146
|
+
dynamicRequestId
|
|
1117
1147
|
}
|
|
1118
1148
|
});
|
|
1119
1149
|
throw error;
|
|
@@ -1161,7 +1191,7 @@ class DynamicWalletClient {
|
|
|
1161
1191
|
});
|
|
1162
1192
|
} catch (error) {
|
|
1163
1193
|
logError({
|
|
1164
|
-
message: '
|
|
1194
|
+
message: 'Error in refreshWalletAccountShares',
|
|
1165
1195
|
error: error,
|
|
1166
1196
|
context: {
|
|
1167
1197
|
accountAddress,
|
|
@@ -1305,7 +1335,7 @@ class DynamicWalletClient {
|
|
|
1305
1335
|
}
|
|
1306
1336
|
} catch (error) {
|
|
1307
1337
|
logError({
|
|
1308
|
-
message: '
|
|
1338
|
+
message: 'Error in reshare',
|
|
1309
1339
|
error: error,
|
|
1310
1340
|
context: {
|
|
1311
1341
|
accountAddress,
|
|
@@ -1340,7 +1370,7 @@ class DynamicWalletClient {
|
|
|
1340
1370
|
return data;
|
|
1341
1371
|
} catch (error) {
|
|
1342
1372
|
logError({
|
|
1343
|
-
message: '
|
|
1373
|
+
message: 'Error in sendKeySharesToDelegatedAccess',
|
|
1344
1374
|
error: error,
|
|
1345
1375
|
context: {
|
|
1346
1376
|
accountAddress,
|
|
@@ -1393,7 +1423,7 @@ class DynamicWalletClient {
|
|
|
1393
1423
|
}
|
|
1394
1424
|
} catch (error) {
|
|
1395
1425
|
logError({
|
|
1396
|
-
message: '
|
|
1426
|
+
message: 'Error in delegateKeyShares',
|
|
1397
1427
|
error: error,
|
|
1398
1428
|
context: {
|
|
1399
1429
|
accountAddress
|
|
@@ -1460,7 +1490,7 @@ class DynamicWalletClient {
|
|
|
1460
1490
|
};
|
|
1461
1491
|
} catch (error) {
|
|
1462
1492
|
logError({
|
|
1463
|
-
message: '
|
|
1493
|
+
message: 'Error in exportKey',
|
|
1464
1494
|
error: error,
|
|
1465
1495
|
context: {
|
|
1466
1496
|
accountAddress,
|
|
@@ -1508,7 +1538,7 @@ class DynamicWalletClient {
|
|
|
1508
1538
|
};
|
|
1509
1539
|
} catch (error) {
|
|
1510
1540
|
logError({
|
|
1511
|
-
message: '
|
|
1541
|
+
message: 'Error in offlineExportKey',
|
|
1512
1542
|
error: error,
|
|
1513
1543
|
context: {
|
|
1514
1544
|
chainName
|
|
@@ -1546,7 +1576,7 @@ class DynamicWalletClient {
|
|
|
1546
1576
|
return (parsedWalletObject == null ? void 0 : parsedWalletObject.clientKeyShares) || [];
|
|
1547
1577
|
} catch (error) {
|
|
1548
1578
|
logError({
|
|
1549
|
-
message: `
|
|
1579
|
+
message: `Error parsing clientKeyShares: Error for accountAddress:`,
|
|
1550
1580
|
error: error,
|
|
1551
1581
|
context: {
|
|
1552
1582
|
accountAddress
|
|
@@ -1602,7 +1632,7 @@ class DynamicWalletClient {
|
|
|
1602
1632
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1603
1633
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1604
1634
|
logError({
|
|
1605
|
-
message: '
|
|
1635
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1606
1636
|
error,
|
|
1607
1637
|
context: {
|
|
1608
1638
|
accountAddress,
|
|
@@ -1684,7 +1714,7 @@ class DynamicWalletClient {
|
|
|
1684
1714
|
return data;
|
|
1685
1715
|
} catch (error) {
|
|
1686
1716
|
logError({
|
|
1687
|
-
message: '
|
|
1717
|
+
message: 'Error in storeEncryptedBackupByWallet',
|
|
1688
1718
|
error: error,
|
|
1689
1719
|
context: {
|
|
1690
1720
|
accountAddress,
|
|
@@ -1704,7 +1734,7 @@ class DynamicWalletClient {
|
|
|
1704
1734
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1705
1735
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1706
1736
|
logError({
|
|
1707
|
-
message: '
|
|
1737
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1708
1738
|
error,
|
|
1709
1739
|
context: {
|
|
1710
1740
|
accountAddress,
|
|
@@ -1788,7 +1818,7 @@ class DynamicWalletClient {
|
|
|
1788
1818
|
return data;
|
|
1789
1819
|
} catch (error) {
|
|
1790
1820
|
logError({
|
|
1791
|
-
message: '
|
|
1821
|
+
message: 'Error in storeEncryptedBackupByDelegatedWallet',
|
|
1792
1822
|
error: error,
|
|
1793
1823
|
context: {
|
|
1794
1824
|
accountAddress,
|
|
@@ -1858,7 +1888,7 @@ class DynamicWalletClient {
|
|
|
1858
1888
|
return oauthAccountId;
|
|
1859
1889
|
} catch (error) {
|
|
1860
1890
|
logError({
|
|
1861
|
-
message: '
|
|
1891
|
+
message: 'Error in getGoogleOauthAccountIdOrThrow',
|
|
1862
1892
|
error: error,
|
|
1863
1893
|
context: {
|
|
1864
1894
|
accountAddress,
|
|
@@ -1932,7 +1962,7 @@ class DynamicWalletClient {
|
|
|
1932
1962
|
return decryptedKeyShares;
|
|
1933
1963
|
} catch (error) {
|
|
1934
1964
|
logError({
|
|
1935
|
-
message: '
|
|
1965
|
+
message: 'Error in recoverEncryptedBackupByWallet',
|
|
1936
1966
|
error: error,
|
|
1937
1967
|
context: {
|
|
1938
1968
|
accountAddress,
|
|
@@ -1998,7 +2028,7 @@ class DynamicWalletClient {
|
|
|
1998
2028
|
}
|
|
1999
2029
|
} catch (error) {
|
|
2000
2030
|
logError({
|
|
2001
|
-
message: '
|
|
2031
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2002
2032
|
error: error,
|
|
2003
2033
|
context: {
|
|
2004
2034
|
accountAddress
|
|
@@ -2046,7 +2076,7 @@ class DynamicWalletClient {
|
|
|
2046
2076
|
return;
|
|
2047
2077
|
} catch (error) {
|
|
2048
2078
|
logError({
|
|
2049
|
-
message: '
|
|
2079
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2050
2080
|
error: error,
|
|
2051
2081
|
context: {
|
|
2052
2082
|
accountAddress
|
|
@@ -2078,7 +2108,7 @@ class DynamicWalletClient {
|
|
|
2078
2108
|
}));
|
|
2079
2109
|
} catch (error) {
|
|
2080
2110
|
logError({
|
|
2081
|
-
message: '
|
|
2111
|
+
message: 'Failed to download backup from Google Drive',
|
|
2082
2112
|
error: error,
|
|
2083
2113
|
context: {
|
|
2084
2114
|
accountAddress,
|
|
@@ -2090,7 +2120,7 @@ class DynamicWalletClient {
|
|
|
2090
2120
|
if (!backupData) {
|
|
2091
2121
|
const error = new Error('No backup file found');
|
|
2092
2122
|
logError({
|
|
2093
|
-
message: '
|
|
2123
|
+
message: 'No backup file found',
|
|
2094
2124
|
error: new Error('No backup file found'),
|
|
2095
2125
|
context: {
|
|
2096
2126
|
accountAddress,
|
|
@@ -2103,7 +2133,7 @@ class DynamicWalletClient {
|
|
|
2103
2133
|
if (!backupData.keyShares || !backupData.metadata) {
|
|
2104
2134
|
const error = new Error('Invalid backup format: missing keyShares or metadata');
|
|
2105
2135
|
logError({
|
|
2106
|
-
message: '
|
|
2136
|
+
message: 'Invalid backup format: missing keyShares or metadata',
|
|
2107
2137
|
error,
|
|
2108
2138
|
context: {
|
|
2109
2139
|
accountAddress,
|
|
@@ -2125,7 +2155,7 @@ class DynamicWalletClient {
|
|
|
2125
2155
|
return decryptedKeyShares;
|
|
2126
2156
|
} catch (error) {
|
|
2127
2157
|
logError({
|
|
2128
|
-
message: '
|
|
2158
|
+
message: 'Error in restoreBackupFromGoogleDrive',
|
|
2129
2159
|
error: error,
|
|
2130
2160
|
context: {
|
|
2131
2161
|
accountAddress
|
|
@@ -2257,7 +2287,7 @@ class DynamicWalletClient {
|
|
|
2257
2287
|
});
|
|
2258
2288
|
} catch (error) {
|
|
2259
2289
|
logError({
|
|
2260
|
-
message: '
|
|
2290
|
+
message: 'Error in verifyPassword',
|
|
2261
2291
|
error: error,
|
|
2262
2292
|
context: {
|
|
2263
2293
|
accountAddress
|
|
@@ -2324,7 +2354,7 @@ class DynamicWalletClient {
|
|
|
2324
2354
|
});
|
|
2325
2355
|
} catch (error) {
|
|
2326
2356
|
logError({
|
|
2327
|
-
message: '
|
|
2357
|
+
message: 'Error in getWalletClientKeyShareBackupInfo',
|
|
2328
2358
|
error: error,
|
|
2329
2359
|
context: {
|
|
2330
2360
|
accountAddress,
|
|
@@ -2394,7 +2424,7 @@ class DynamicWalletClient {
|
|
|
2394
2424
|
return this.walletMap[accountAddress];
|
|
2395
2425
|
} catch (error) {
|
|
2396
2426
|
logError({
|
|
2397
|
-
message: '
|
|
2427
|
+
message: 'Error in getWallet',
|
|
2398
2428
|
error: error,
|
|
2399
2429
|
context: {
|
|
2400
2430
|
accountAddress,
|
|
@@ -2443,7 +2473,7 @@ class DynamicWalletClient {
|
|
|
2443
2473
|
return wallets;
|
|
2444
2474
|
} catch (error) {
|
|
2445
2475
|
logError({
|
|
2446
|
-
message: '
|
|
2476
|
+
message: 'Error in getWallets',
|
|
2447
2477
|
error: error,
|
|
2448
2478
|
context: {
|
|
2449
2479
|
dynamicRequestId
|
package/index.esm.js
CHANGED
|
@@ -240,6 +240,7 @@ const ensureBase64Padding = (str)=>{
|
|
|
240
240
|
* Decrypts data with version-based configuration.
|
|
241
241
|
* Uses the version field from the data to determine encryption parameters.
|
|
242
242
|
* Falls back to legacy version for backward compatibility if no version is specified.
|
|
243
|
+
* For v3 (Argon2), retries with parallelism=1 if an OperationError occurs.
|
|
243
244
|
*/ const decryptData = async ({ data, password })=>{
|
|
244
245
|
const { salt, iv, cipher, version } = data;
|
|
245
246
|
// Ensure proper base64 padding for all values
|
|
@@ -262,6 +263,29 @@ const ensureBase64Padding = (str)=>{
|
|
|
262
263
|
}, key, cipherBytes);
|
|
263
264
|
return new TextDecoder().decode(decryptedData);
|
|
264
265
|
} catch (error) {
|
|
266
|
+
// For a short period of time we lowered the parallelism for v3 (Argon2) to 1 to try to fix issues
|
|
267
|
+
// for users with limited resources, however this introduced a new issue that the decryption would fail
|
|
268
|
+
// for existing users with v3 (Argon2) encryption, this is a fallback for a few users.
|
|
269
|
+
if (error instanceof Error && error.name === 'OperationError' && version === 'v3' && isArgon2Config(encryptionConfig)) {
|
|
270
|
+
try {
|
|
271
|
+
// Create a modified config with parallelism=1
|
|
272
|
+
const modifiedConfig = _extends({}, encryptionConfig, {
|
|
273
|
+
parallelism: 1
|
|
274
|
+
});
|
|
275
|
+
const key = await getKey({
|
|
276
|
+
password,
|
|
277
|
+
salt: saltBytes
|
|
278
|
+
}, modifiedConfig);
|
|
279
|
+
const decryptedData = await crypto.subtle.decrypt({
|
|
280
|
+
name: AES_GCM_ALGORITHM,
|
|
281
|
+
iv: ivBytes
|
|
282
|
+
}, key, cipherBytes);
|
|
283
|
+
return new TextDecoder().decode(decryptedData);
|
|
284
|
+
} catch (retryError) {
|
|
285
|
+
// If retry also fails, throw the original error with additional context
|
|
286
|
+
throw new Error(`Decryption failed after retry with parallelism=1: ${retryError}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
265
289
|
throw new Error('Decryption failed: ' + error);
|
|
266
290
|
}
|
|
267
291
|
};
|
|
@@ -384,7 +408,7 @@ const downloadFileFromGoogleDrive = async ({ accessToken, fileName })=>{
|
|
|
384
408
|
|
|
385
409
|
const handleAxiosError = (error, message, context)=>{
|
|
386
410
|
var _error_response, _error_response1, _error_response2;
|
|
387
|
-
logger.
|
|
411
|
+
logger.error('[DynamicWaasWalletClient] Axios error: ', {
|
|
388
412
|
message,
|
|
389
413
|
error: (_error_response = error.response) == null ? void 0 : _error_response.data,
|
|
390
414
|
status: (_error_response1 = error.response) == null ? void 0 : _error_response1.status,
|
|
@@ -425,8 +449,8 @@ const logError = ({ message, error, context })=>{
|
|
|
425
449
|
if (error instanceof AxiosError) {
|
|
426
450
|
handleAxiosError(error, message, context);
|
|
427
451
|
}
|
|
428
|
-
logger.error(
|
|
429
|
-
error: error instanceof Error ? error.message :
|
|
452
|
+
logger.error('[DynamicWaasWalletClient] Error in browser client', {
|
|
453
|
+
error: error instanceof Error ? error.message : String(error),
|
|
430
454
|
context
|
|
431
455
|
});
|
|
432
456
|
};
|
|
@@ -762,7 +786,7 @@ class DynamicWalletClient {
|
|
|
762
786
|
this.sessionId = sessionId;
|
|
763
787
|
} catch (error) {
|
|
764
788
|
logError({
|
|
765
|
-
message: '
|
|
789
|
+
message: 'Error initializing logger context',
|
|
766
790
|
error: error,
|
|
767
791
|
context: {}
|
|
768
792
|
});
|
|
@@ -919,7 +943,7 @@ class DynamicWalletClient {
|
|
|
919
943
|
};
|
|
920
944
|
} catch (error) {
|
|
921
945
|
logError({
|
|
922
|
-
message: '
|
|
946
|
+
message: 'Error in keyGen',
|
|
923
947
|
error: error,
|
|
924
948
|
context: {
|
|
925
949
|
chainName,
|
|
@@ -999,7 +1023,7 @@ class DynamicWalletClient {
|
|
|
999
1023
|
};
|
|
1000
1024
|
} catch (error) {
|
|
1001
1025
|
logError({
|
|
1002
|
-
message: '
|
|
1026
|
+
message: 'Error in importRawPrivateKey',
|
|
1003
1027
|
error: error,
|
|
1004
1028
|
context: {
|
|
1005
1029
|
chainName,
|
|
@@ -1010,7 +1034,7 @@ class DynamicWalletClient {
|
|
|
1010
1034
|
throw error;
|
|
1011
1035
|
}
|
|
1012
1036
|
}
|
|
1013
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError }) {
|
|
1037
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1014
1038
|
// Create the room and sign the message
|
|
1015
1039
|
if (typeof message !== 'string') {
|
|
1016
1040
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1019,14 +1043,14 @@ class DynamicWalletClient {
|
|
|
1019
1043
|
walletId,
|
|
1020
1044
|
message,
|
|
1021
1045
|
isFormatted,
|
|
1022
|
-
dynamicRequestId
|
|
1046
|
+
dynamicRequestId,
|
|
1023
1047
|
mfaToken,
|
|
1024
1048
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1025
1049
|
onError
|
|
1026
1050
|
});
|
|
1027
1051
|
return data;
|
|
1028
1052
|
}
|
|
1029
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted }) {
|
|
1053
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1030
1054
|
try {
|
|
1031
1055
|
const mpcSigner = getMPCSigner({
|
|
1032
1056
|
chainName,
|
|
@@ -1044,13 +1068,14 @@ class DynamicWalletClient {
|
|
|
1044
1068
|
return signature;
|
|
1045
1069
|
} catch (error) {
|
|
1046
1070
|
logError({
|
|
1047
|
-
message: '
|
|
1071
|
+
message: 'Error in clientSign',
|
|
1048
1072
|
error: error,
|
|
1049
1073
|
context: {
|
|
1050
1074
|
chainName,
|
|
1051
1075
|
roomId,
|
|
1052
1076
|
derivationPath,
|
|
1053
|
-
isFormatted
|
|
1077
|
+
isFormatted,
|
|
1078
|
+
dynamicRequestId
|
|
1054
1079
|
}
|
|
1055
1080
|
});
|
|
1056
1081
|
throw error;
|
|
@@ -1058,6 +1083,7 @@ class DynamicWalletClient {
|
|
|
1058
1083
|
}
|
|
1059
1084
|
//todo: need to modify with imported flag
|
|
1060
1085
|
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1086
|
+
const dynamicRequestId = v4();
|
|
1061
1087
|
try {
|
|
1062
1088
|
await this.verifyPassword({
|
|
1063
1089
|
accountAddress,
|
|
@@ -1078,13 +1104,15 @@ class DynamicWalletClient {
|
|
|
1078
1104
|
isFormatted,
|
|
1079
1105
|
mfaToken,
|
|
1080
1106
|
context,
|
|
1081
|
-
onError
|
|
1107
|
+
onError,
|
|
1108
|
+
dynamicRequestId
|
|
1082
1109
|
});
|
|
1083
1110
|
this.logger.debug('[DynamicWaasWalletClient] Server sign completed', {
|
|
1084
1111
|
message,
|
|
1085
1112
|
accountAddress,
|
|
1086
1113
|
walletId: wallet.walletId,
|
|
1087
|
-
roomId: data.roomId
|
|
1114
|
+
roomId: data.roomId,
|
|
1115
|
+
dynamicRequestId
|
|
1088
1116
|
});
|
|
1089
1117
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1090
1118
|
// Perform the client sign and return the signature
|
|
@@ -1097,7 +1125,8 @@ class DynamicWalletClient {
|
|
|
1097
1125
|
roomId: data.roomId,
|
|
1098
1126
|
keyShare: clientKeyShares[0],
|
|
1099
1127
|
derivationPath,
|
|
1100
|
-
isFormatted
|
|
1128
|
+
isFormatted,
|
|
1129
|
+
dynamicRequestId
|
|
1101
1130
|
});
|
|
1102
1131
|
this.logger.debug('[DynamicWaasWalletClient] Client sign completed', {
|
|
1103
1132
|
chainName,
|
|
@@ -1109,12 +1138,13 @@ class DynamicWalletClient {
|
|
|
1109
1138
|
return signature;
|
|
1110
1139
|
} catch (error) {
|
|
1111
1140
|
logError({
|
|
1112
|
-
message: '
|
|
1141
|
+
message: 'Error in sign',
|
|
1113
1142
|
error: error,
|
|
1114
1143
|
context: {
|
|
1115
1144
|
accountAddress,
|
|
1116
1145
|
chainName,
|
|
1117
|
-
isFormatted: isFormatted ? 'true' : 'false'
|
|
1146
|
+
isFormatted: isFormatted ? 'true' : 'false',
|
|
1147
|
+
dynamicRequestId
|
|
1118
1148
|
}
|
|
1119
1149
|
});
|
|
1120
1150
|
throw error;
|
|
@@ -1162,7 +1192,7 @@ class DynamicWalletClient {
|
|
|
1162
1192
|
});
|
|
1163
1193
|
} catch (error) {
|
|
1164
1194
|
logError({
|
|
1165
|
-
message: '
|
|
1195
|
+
message: 'Error in refreshWalletAccountShares',
|
|
1166
1196
|
error: error,
|
|
1167
1197
|
context: {
|
|
1168
1198
|
accountAddress,
|
|
@@ -1306,7 +1336,7 @@ class DynamicWalletClient {
|
|
|
1306
1336
|
}
|
|
1307
1337
|
} catch (error) {
|
|
1308
1338
|
logError({
|
|
1309
|
-
message: '
|
|
1339
|
+
message: 'Error in reshare',
|
|
1310
1340
|
error: error,
|
|
1311
1341
|
context: {
|
|
1312
1342
|
accountAddress,
|
|
@@ -1341,7 +1371,7 @@ class DynamicWalletClient {
|
|
|
1341
1371
|
return data;
|
|
1342
1372
|
} catch (error) {
|
|
1343
1373
|
logError({
|
|
1344
|
-
message: '
|
|
1374
|
+
message: 'Error in sendKeySharesToDelegatedAccess',
|
|
1345
1375
|
error: error,
|
|
1346
1376
|
context: {
|
|
1347
1377
|
accountAddress,
|
|
@@ -1394,7 +1424,7 @@ class DynamicWalletClient {
|
|
|
1394
1424
|
}
|
|
1395
1425
|
} catch (error) {
|
|
1396
1426
|
logError({
|
|
1397
|
-
message: '
|
|
1427
|
+
message: 'Error in delegateKeyShares',
|
|
1398
1428
|
error: error,
|
|
1399
1429
|
context: {
|
|
1400
1430
|
accountAddress
|
|
@@ -1461,7 +1491,7 @@ class DynamicWalletClient {
|
|
|
1461
1491
|
};
|
|
1462
1492
|
} catch (error) {
|
|
1463
1493
|
logError({
|
|
1464
|
-
message: '
|
|
1494
|
+
message: 'Error in exportKey',
|
|
1465
1495
|
error: error,
|
|
1466
1496
|
context: {
|
|
1467
1497
|
accountAddress,
|
|
@@ -1509,7 +1539,7 @@ class DynamicWalletClient {
|
|
|
1509
1539
|
};
|
|
1510
1540
|
} catch (error) {
|
|
1511
1541
|
logError({
|
|
1512
|
-
message: '
|
|
1542
|
+
message: 'Error in offlineExportKey',
|
|
1513
1543
|
error: error,
|
|
1514
1544
|
context: {
|
|
1515
1545
|
chainName
|
|
@@ -1547,7 +1577,7 @@ class DynamicWalletClient {
|
|
|
1547
1577
|
return (parsedWalletObject == null ? void 0 : parsedWalletObject.clientKeyShares) || [];
|
|
1548
1578
|
} catch (error) {
|
|
1549
1579
|
logError({
|
|
1550
|
-
message: `
|
|
1580
|
+
message: `Error parsing clientKeyShares: Error for accountAddress:`,
|
|
1551
1581
|
error: error,
|
|
1552
1582
|
context: {
|
|
1553
1583
|
accountAddress
|
|
@@ -1603,7 +1633,7 @@ class DynamicWalletClient {
|
|
|
1603
1633
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1604
1634
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1605
1635
|
logError({
|
|
1606
|
-
message: '
|
|
1636
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1607
1637
|
error,
|
|
1608
1638
|
context: {
|
|
1609
1639
|
accountAddress,
|
|
@@ -1685,7 +1715,7 @@ class DynamicWalletClient {
|
|
|
1685
1715
|
return data;
|
|
1686
1716
|
} catch (error) {
|
|
1687
1717
|
logError({
|
|
1688
|
-
message: '
|
|
1718
|
+
message: 'Error in storeEncryptedBackupByWallet',
|
|
1689
1719
|
error: error,
|
|
1690
1720
|
context: {
|
|
1691
1721
|
accountAddress,
|
|
@@ -1705,7 +1735,7 @@ class DynamicWalletClient {
|
|
|
1705
1735
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1706
1736
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1707
1737
|
logError({
|
|
1708
|
-
message: '
|
|
1738
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1709
1739
|
error,
|
|
1710
1740
|
context: {
|
|
1711
1741
|
accountAddress,
|
|
@@ -1789,7 +1819,7 @@ class DynamicWalletClient {
|
|
|
1789
1819
|
return data;
|
|
1790
1820
|
} catch (error) {
|
|
1791
1821
|
logError({
|
|
1792
|
-
message: '
|
|
1822
|
+
message: 'Error in storeEncryptedBackupByDelegatedWallet',
|
|
1793
1823
|
error: error,
|
|
1794
1824
|
context: {
|
|
1795
1825
|
accountAddress,
|
|
@@ -1859,7 +1889,7 @@ class DynamicWalletClient {
|
|
|
1859
1889
|
return oauthAccountId;
|
|
1860
1890
|
} catch (error) {
|
|
1861
1891
|
logError({
|
|
1862
|
-
message: '
|
|
1892
|
+
message: 'Error in getGoogleOauthAccountIdOrThrow',
|
|
1863
1893
|
error: error,
|
|
1864
1894
|
context: {
|
|
1865
1895
|
accountAddress,
|
|
@@ -1933,7 +1963,7 @@ class DynamicWalletClient {
|
|
|
1933
1963
|
return decryptedKeyShares;
|
|
1934
1964
|
} catch (error) {
|
|
1935
1965
|
logError({
|
|
1936
|
-
message: '
|
|
1966
|
+
message: 'Error in recoverEncryptedBackupByWallet',
|
|
1937
1967
|
error: error,
|
|
1938
1968
|
context: {
|
|
1939
1969
|
accountAddress,
|
|
@@ -1999,7 +2029,7 @@ class DynamicWalletClient {
|
|
|
1999
2029
|
}
|
|
2000
2030
|
} catch (error) {
|
|
2001
2031
|
logError({
|
|
2002
|
-
message: '
|
|
2032
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2003
2033
|
error: error,
|
|
2004
2034
|
context: {
|
|
2005
2035
|
accountAddress
|
|
@@ -2047,7 +2077,7 @@ class DynamicWalletClient {
|
|
|
2047
2077
|
return;
|
|
2048
2078
|
} catch (error) {
|
|
2049
2079
|
logError({
|
|
2050
|
-
message: '
|
|
2080
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2051
2081
|
error: error,
|
|
2052
2082
|
context: {
|
|
2053
2083
|
accountAddress
|
|
@@ -2079,7 +2109,7 @@ class DynamicWalletClient {
|
|
|
2079
2109
|
}));
|
|
2080
2110
|
} catch (error) {
|
|
2081
2111
|
logError({
|
|
2082
|
-
message: '
|
|
2112
|
+
message: 'Failed to download backup from Google Drive',
|
|
2083
2113
|
error: error,
|
|
2084
2114
|
context: {
|
|
2085
2115
|
accountAddress,
|
|
@@ -2091,7 +2121,7 @@ class DynamicWalletClient {
|
|
|
2091
2121
|
if (!backupData) {
|
|
2092
2122
|
const error = new Error('No backup file found');
|
|
2093
2123
|
logError({
|
|
2094
|
-
message: '
|
|
2124
|
+
message: 'No backup file found',
|
|
2095
2125
|
error: new Error('No backup file found'),
|
|
2096
2126
|
context: {
|
|
2097
2127
|
accountAddress,
|
|
@@ -2104,7 +2134,7 @@ class DynamicWalletClient {
|
|
|
2104
2134
|
if (!backupData.keyShares || !backupData.metadata) {
|
|
2105
2135
|
const error = new Error('Invalid backup format: missing keyShares or metadata');
|
|
2106
2136
|
logError({
|
|
2107
|
-
message: '
|
|
2137
|
+
message: 'Invalid backup format: missing keyShares or metadata',
|
|
2108
2138
|
error,
|
|
2109
2139
|
context: {
|
|
2110
2140
|
accountAddress,
|
|
@@ -2126,7 +2156,7 @@ class DynamicWalletClient {
|
|
|
2126
2156
|
return decryptedKeyShares;
|
|
2127
2157
|
} catch (error) {
|
|
2128
2158
|
logError({
|
|
2129
|
-
message: '
|
|
2159
|
+
message: 'Error in restoreBackupFromGoogleDrive',
|
|
2130
2160
|
error: error,
|
|
2131
2161
|
context: {
|
|
2132
2162
|
accountAddress
|
|
@@ -2258,7 +2288,7 @@ class DynamicWalletClient {
|
|
|
2258
2288
|
});
|
|
2259
2289
|
} catch (error) {
|
|
2260
2290
|
logError({
|
|
2261
|
-
message: '
|
|
2291
|
+
message: 'Error in verifyPassword',
|
|
2262
2292
|
error: error,
|
|
2263
2293
|
context: {
|
|
2264
2294
|
accountAddress
|
|
@@ -2325,7 +2355,7 @@ class DynamicWalletClient {
|
|
|
2325
2355
|
});
|
|
2326
2356
|
} catch (error) {
|
|
2327
2357
|
logError({
|
|
2328
|
-
message: '
|
|
2358
|
+
message: 'Error in getWalletClientKeyShareBackupInfo',
|
|
2329
2359
|
error: error,
|
|
2330
2360
|
context: {
|
|
2331
2361
|
accountAddress,
|
|
@@ -2395,7 +2425,7 @@ class DynamicWalletClient {
|
|
|
2395
2425
|
return this.walletMap[accountAddress];
|
|
2396
2426
|
} catch (error) {
|
|
2397
2427
|
logError({
|
|
2398
|
-
message: '
|
|
2428
|
+
message: 'Error in getWallet',
|
|
2399
2429
|
error: error,
|
|
2400
2430
|
context: {
|
|
2401
2431
|
accountAddress,
|
|
@@ -2444,7 +2474,7 @@ class DynamicWalletClient {
|
|
|
2444
2474
|
return wallets;
|
|
2445
2475
|
} catch (error) {
|
|
2446
2476
|
logError({
|
|
2447
|
-
message: '
|
|
2477
|
+
message: 'Error in getWallets',
|
|
2448
2478
|
error: error,
|
|
2449
2479
|
context: {
|
|
2450
2480
|
dynamicRequestId
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.164",
|
|
4
4
|
"license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.164",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "^0.0.764",
|
|
10
10
|
"argon2id": "1.0.1",
|
|
@@ -13,6 +13,7 @@ export declare const encryptData: ({ data, password, version, }: {
|
|
|
13
13
|
* Decrypts data with version-based configuration.
|
|
14
14
|
* Uses the version field from the data to determine encryption parameters.
|
|
15
15
|
* Falls back to legacy version for backward compatibility if no version is specified.
|
|
16
|
+
* For v3 (Argon2), retries with parallelism=1 if an OperationError occurs.
|
|
16
17
|
*/
|
|
17
18
|
export declare const decryptData: ({ data, password, }: {
|
|
18
19
|
data: DecryptionData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/backup/encryption/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAU/D,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEd,MAAM,SAAS,CAAC;AAkBjB;;;GAGG;AACH,eAAO,MAAM,WAAW,iCAIrB;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,OAAO,CAAC,aAAa,CAiCxB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/backup/encryption/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAU/D,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEd,MAAM,SAAS,CAAC;AAkBjB;;;GAGG;AACH,eAAO,MAAM,WAAW,iCAIrB;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,OAAO,CAAC,aAAa,CAiCxB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wBAGrB;IACD,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,KAAG,OAAO,CAAC,MAAM,CA6DjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,YACjC,MAAM,KACd,kBAmBF,CAAC"}
|
package/src/client.d.ts
CHANGED
|
@@ -86,18 +86,20 @@ export declare class DynamicWalletClient {
|
|
|
86
86
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
87
87
|
clientKeyShares: ClientKeyShare[];
|
|
88
88
|
}>;
|
|
89
|
-
serverSign({ walletId, message, isFormatted, mfaToken, context, onError, }: {
|
|
89
|
+
serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, }: {
|
|
90
90
|
walletId: string;
|
|
91
91
|
message: string | Uint8Array;
|
|
92
|
+
dynamicRequestId: string;
|
|
92
93
|
isFormatted?: boolean;
|
|
93
94
|
mfaToken?: string;
|
|
94
95
|
context?: SignMessageContext;
|
|
95
96
|
onError?: (error: Error) => void;
|
|
96
97
|
}): Promise<import("@dynamic-labs-wallet/core").OpenRoomResponse>;
|
|
97
|
-
clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, }: {
|
|
98
|
+
clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, }: {
|
|
98
99
|
chainName: string;
|
|
99
100
|
message: string | Uint8Array;
|
|
100
101
|
roomId: string;
|
|
102
|
+
dynamicRequestId: string;
|
|
101
103
|
keyShare: ClientKeyShare;
|
|
102
104
|
derivationPath: Uint32Array | undefined;
|
|
103
105
|
isFormatted?: boolean;
|
package/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../packages/src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,cAAc,EACd,KAAK,oCAAoC,EAEzC,gBAAgB,EAChB,KAAK,wBAAwB,EAE7B,YAAY,EAOZ,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAGvB,wBAAwB,EAExB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,kBAAkB,EAElB,iBAAiB,EACjB,KAAK,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