@dynamic-labs-wallet/browser 0.0.163 → 0.0.165
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 +45 -39
- package/index.esm.js +45 -39
- package/package.json +2 -2
- package/src/client.d.ts +5 -3
- package/src/client.d.ts.map +1 -1
- package/src/mpc/index.d.ts +1 -1
- package/src/mpc/mpc.d.ts +1 -1
- package/src/mpc/types.d.ts +2 -2
- package/src/utils.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -407,7 +407,7 @@ const downloadFileFromGoogleDrive = async ({ accessToken, fileName })=>{
|
|
|
407
407
|
|
|
408
408
|
const handleAxiosError = (error, message, context)=>{
|
|
409
409
|
var _error_response, _error_response1, _error_response2;
|
|
410
|
-
logger.
|
|
410
|
+
logger.error('[DynamicWaasWalletClient] Axios error: ', {
|
|
411
411
|
message,
|
|
412
412
|
error: (_error_response = error.response) == null ? void 0 : _error_response.data,
|
|
413
413
|
status: (_error_response1 = error.response) == null ? void 0 : _error_response1.status,
|
|
@@ -448,8 +448,8 @@ const logError = ({ message, error, context })=>{
|
|
|
448
448
|
if (error instanceof axios.AxiosError) {
|
|
449
449
|
handleAxiosError(error, message, context);
|
|
450
450
|
}
|
|
451
|
-
logger.error(
|
|
452
|
-
error: error instanceof Error ? error.message :
|
|
451
|
+
logger.error('[DynamicWaasWalletClient] Error in browser client', {
|
|
452
|
+
error: error instanceof Error ? error.message : String(error),
|
|
453
453
|
context
|
|
454
454
|
});
|
|
455
455
|
};
|
|
@@ -785,7 +785,7 @@ class DynamicWalletClient {
|
|
|
785
785
|
this.sessionId = sessionId;
|
|
786
786
|
} catch (error) {
|
|
787
787
|
logError({
|
|
788
|
-
message: '
|
|
788
|
+
message: 'Error initializing logger context',
|
|
789
789
|
error: error,
|
|
790
790
|
context: {}
|
|
791
791
|
});
|
|
@@ -942,7 +942,7 @@ class DynamicWalletClient {
|
|
|
942
942
|
};
|
|
943
943
|
} catch (error) {
|
|
944
944
|
logError({
|
|
945
|
-
message: '
|
|
945
|
+
message: 'Error in keyGen',
|
|
946
946
|
error: error,
|
|
947
947
|
context: {
|
|
948
948
|
chainName,
|
|
@@ -1022,7 +1022,7 @@ class DynamicWalletClient {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
} catch (error) {
|
|
1024
1024
|
logError({
|
|
1025
|
-
message: '
|
|
1025
|
+
message: 'Error in importRawPrivateKey',
|
|
1026
1026
|
error: error,
|
|
1027
1027
|
context: {
|
|
1028
1028
|
chainName,
|
|
@@ -1033,7 +1033,7 @@ class DynamicWalletClient {
|
|
|
1033
1033
|
throw error;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError }) {
|
|
1036
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1037
1037
|
// Create the room and sign the message
|
|
1038
1038
|
if (typeof message !== 'string') {
|
|
1039
1039
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1042,14 +1042,14 @@ class DynamicWalletClient {
|
|
|
1042
1042
|
walletId,
|
|
1043
1043
|
message,
|
|
1044
1044
|
isFormatted,
|
|
1045
|
-
dynamicRequestId
|
|
1045
|
+
dynamicRequestId,
|
|
1046
1046
|
mfaToken,
|
|
1047
1047
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1048
1048
|
onError
|
|
1049
1049
|
});
|
|
1050
1050
|
return data;
|
|
1051
1051
|
}
|
|
1052
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted }) {
|
|
1052
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1053
1053
|
try {
|
|
1054
1054
|
const mpcSigner = getMPCSigner({
|
|
1055
1055
|
chainName,
|
|
@@ -1067,13 +1067,14 @@ class DynamicWalletClient {
|
|
|
1067
1067
|
return signature;
|
|
1068
1068
|
} catch (error) {
|
|
1069
1069
|
logError({
|
|
1070
|
-
message: '
|
|
1070
|
+
message: 'Error in clientSign',
|
|
1071
1071
|
error: error,
|
|
1072
1072
|
context: {
|
|
1073
1073
|
chainName,
|
|
1074
1074
|
roomId,
|
|
1075
1075
|
derivationPath,
|
|
1076
|
-
isFormatted
|
|
1076
|
+
isFormatted,
|
|
1077
|
+
dynamicRequestId
|
|
1077
1078
|
}
|
|
1078
1079
|
});
|
|
1079
1080
|
throw error;
|
|
@@ -1081,6 +1082,7 @@ class DynamicWalletClient {
|
|
|
1081
1082
|
}
|
|
1082
1083
|
//todo: need to modify with imported flag
|
|
1083
1084
|
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1085
|
+
const dynamicRequestId = uuid.v4();
|
|
1084
1086
|
try {
|
|
1085
1087
|
await this.verifyPassword({
|
|
1086
1088
|
accountAddress,
|
|
@@ -1101,13 +1103,15 @@ class DynamicWalletClient {
|
|
|
1101
1103
|
isFormatted,
|
|
1102
1104
|
mfaToken,
|
|
1103
1105
|
context,
|
|
1104
|
-
onError
|
|
1106
|
+
onError,
|
|
1107
|
+
dynamicRequestId
|
|
1105
1108
|
});
|
|
1106
1109
|
this.logger.debug('[DynamicWaasWalletClient] Server sign completed', {
|
|
1107
1110
|
message,
|
|
1108
1111
|
accountAddress,
|
|
1109
1112
|
walletId: wallet.walletId,
|
|
1110
|
-
roomId: data.roomId
|
|
1113
|
+
roomId: data.roomId,
|
|
1114
|
+
dynamicRequestId
|
|
1111
1115
|
});
|
|
1112
1116
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1113
1117
|
// Perform the client sign and return the signature
|
|
@@ -1120,7 +1124,8 @@ class DynamicWalletClient {
|
|
|
1120
1124
|
roomId: data.roomId,
|
|
1121
1125
|
keyShare: clientKeyShares[0],
|
|
1122
1126
|
derivationPath,
|
|
1123
|
-
isFormatted
|
|
1127
|
+
isFormatted,
|
|
1128
|
+
dynamicRequestId
|
|
1124
1129
|
});
|
|
1125
1130
|
this.logger.debug('[DynamicWaasWalletClient] Client sign completed', {
|
|
1126
1131
|
chainName,
|
|
@@ -1132,12 +1137,13 @@ class DynamicWalletClient {
|
|
|
1132
1137
|
return signature;
|
|
1133
1138
|
} catch (error) {
|
|
1134
1139
|
logError({
|
|
1135
|
-
message: '
|
|
1140
|
+
message: 'Error in sign',
|
|
1136
1141
|
error: error,
|
|
1137
1142
|
context: {
|
|
1138
1143
|
accountAddress,
|
|
1139
1144
|
chainName,
|
|
1140
|
-
isFormatted: isFormatted ? 'true' : 'false'
|
|
1145
|
+
isFormatted: isFormatted ? 'true' : 'false',
|
|
1146
|
+
dynamicRequestId
|
|
1141
1147
|
}
|
|
1142
1148
|
});
|
|
1143
1149
|
throw error;
|
|
@@ -1185,7 +1191,7 @@ class DynamicWalletClient {
|
|
|
1185
1191
|
});
|
|
1186
1192
|
} catch (error) {
|
|
1187
1193
|
logError({
|
|
1188
|
-
message: '
|
|
1194
|
+
message: 'Error in refreshWalletAccountShares',
|
|
1189
1195
|
error: error,
|
|
1190
1196
|
context: {
|
|
1191
1197
|
accountAddress,
|
|
@@ -1329,7 +1335,7 @@ class DynamicWalletClient {
|
|
|
1329
1335
|
}
|
|
1330
1336
|
} catch (error) {
|
|
1331
1337
|
logError({
|
|
1332
|
-
message: '
|
|
1338
|
+
message: 'Error in reshare',
|
|
1333
1339
|
error: error,
|
|
1334
1340
|
context: {
|
|
1335
1341
|
accountAddress,
|
|
@@ -1364,7 +1370,7 @@ class DynamicWalletClient {
|
|
|
1364
1370
|
return data;
|
|
1365
1371
|
} catch (error) {
|
|
1366
1372
|
logError({
|
|
1367
|
-
message: '
|
|
1373
|
+
message: 'Error in sendKeySharesToDelegatedAccess',
|
|
1368
1374
|
error: error,
|
|
1369
1375
|
context: {
|
|
1370
1376
|
accountAddress,
|
|
@@ -1417,7 +1423,7 @@ class DynamicWalletClient {
|
|
|
1417
1423
|
}
|
|
1418
1424
|
} catch (error) {
|
|
1419
1425
|
logError({
|
|
1420
|
-
message: '
|
|
1426
|
+
message: 'Error in delegateKeyShares',
|
|
1421
1427
|
error: error,
|
|
1422
1428
|
context: {
|
|
1423
1429
|
accountAddress
|
|
@@ -1484,7 +1490,7 @@ class DynamicWalletClient {
|
|
|
1484
1490
|
};
|
|
1485
1491
|
} catch (error) {
|
|
1486
1492
|
logError({
|
|
1487
|
-
message: '
|
|
1493
|
+
message: 'Error in exportKey',
|
|
1488
1494
|
error: error,
|
|
1489
1495
|
context: {
|
|
1490
1496
|
accountAddress,
|
|
@@ -1532,7 +1538,7 @@ class DynamicWalletClient {
|
|
|
1532
1538
|
};
|
|
1533
1539
|
} catch (error) {
|
|
1534
1540
|
logError({
|
|
1535
|
-
message: '
|
|
1541
|
+
message: 'Error in offlineExportKey',
|
|
1536
1542
|
error: error,
|
|
1537
1543
|
context: {
|
|
1538
1544
|
chainName
|
|
@@ -1570,7 +1576,7 @@ class DynamicWalletClient {
|
|
|
1570
1576
|
return (parsedWalletObject == null ? void 0 : parsedWalletObject.clientKeyShares) || [];
|
|
1571
1577
|
} catch (error) {
|
|
1572
1578
|
logError({
|
|
1573
|
-
message: `
|
|
1579
|
+
message: `Error parsing clientKeyShares: Error for accountAddress:`,
|
|
1574
1580
|
error: error,
|
|
1575
1581
|
context: {
|
|
1576
1582
|
accountAddress
|
|
@@ -1626,7 +1632,7 @@ class DynamicWalletClient {
|
|
|
1626
1632
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1627
1633
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1628
1634
|
logError({
|
|
1629
|
-
message: '
|
|
1635
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1630
1636
|
error,
|
|
1631
1637
|
context: {
|
|
1632
1638
|
accountAddress,
|
|
@@ -1708,7 +1714,7 @@ class DynamicWalletClient {
|
|
|
1708
1714
|
return data;
|
|
1709
1715
|
} catch (error) {
|
|
1710
1716
|
logError({
|
|
1711
|
-
message: '
|
|
1717
|
+
message: 'Error in storeEncryptedBackupByWallet',
|
|
1712
1718
|
error: error,
|
|
1713
1719
|
context: {
|
|
1714
1720
|
accountAddress,
|
|
@@ -1728,7 +1734,7 @@ class DynamicWalletClient {
|
|
|
1728
1734
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1729
1735
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1730
1736
|
logError({
|
|
1731
|
-
message: '
|
|
1737
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1732
1738
|
error,
|
|
1733
1739
|
context: {
|
|
1734
1740
|
accountAddress,
|
|
@@ -1812,7 +1818,7 @@ class DynamicWalletClient {
|
|
|
1812
1818
|
return data;
|
|
1813
1819
|
} catch (error) {
|
|
1814
1820
|
logError({
|
|
1815
|
-
message: '
|
|
1821
|
+
message: 'Error in storeEncryptedBackupByDelegatedWallet',
|
|
1816
1822
|
error: error,
|
|
1817
1823
|
context: {
|
|
1818
1824
|
accountAddress,
|
|
@@ -1882,7 +1888,7 @@ class DynamicWalletClient {
|
|
|
1882
1888
|
return oauthAccountId;
|
|
1883
1889
|
} catch (error) {
|
|
1884
1890
|
logError({
|
|
1885
|
-
message: '
|
|
1891
|
+
message: 'Error in getGoogleOauthAccountIdOrThrow',
|
|
1886
1892
|
error: error,
|
|
1887
1893
|
context: {
|
|
1888
1894
|
accountAddress,
|
|
@@ -1956,7 +1962,7 @@ class DynamicWalletClient {
|
|
|
1956
1962
|
return decryptedKeyShares;
|
|
1957
1963
|
} catch (error) {
|
|
1958
1964
|
logError({
|
|
1959
|
-
message: '
|
|
1965
|
+
message: 'Error in recoverEncryptedBackupByWallet',
|
|
1960
1966
|
error: error,
|
|
1961
1967
|
context: {
|
|
1962
1968
|
accountAddress,
|
|
@@ -2022,7 +2028,7 @@ class DynamicWalletClient {
|
|
|
2022
2028
|
}
|
|
2023
2029
|
} catch (error) {
|
|
2024
2030
|
logError({
|
|
2025
|
-
message: '
|
|
2031
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2026
2032
|
error: error,
|
|
2027
2033
|
context: {
|
|
2028
2034
|
accountAddress
|
|
@@ -2070,7 +2076,7 @@ class DynamicWalletClient {
|
|
|
2070
2076
|
return;
|
|
2071
2077
|
} catch (error) {
|
|
2072
2078
|
logError({
|
|
2073
|
-
message: '
|
|
2079
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2074
2080
|
error: error,
|
|
2075
2081
|
context: {
|
|
2076
2082
|
accountAddress
|
|
@@ -2102,7 +2108,7 @@ class DynamicWalletClient {
|
|
|
2102
2108
|
}));
|
|
2103
2109
|
} catch (error) {
|
|
2104
2110
|
logError({
|
|
2105
|
-
message: '
|
|
2111
|
+
message: 'Failed to download backup from Google Drive',
|
|
2106
2112
|
error: error,
|
|
2107
2113
|
context: {
|
|
2108
2114
|
accountAddress,
|
|
@@ -2114,7 +2120,7 @@ class DynamicWalletClient {
|
|
|
2114
2120
|
if (!backupData) {
|
|
2115
2121
|
const error = new Error('No backup file found');
|
|
2116
2122
|
logError({
|
|
2117
|
-
message: '
|
|
2123
|
+
message: 'No backup file found',
|
|
2118
2124
|
error: new Error('No backup file found'),
|
|
2119
2125
|
context: {
|
|
2120
2126
|
accountAddress,
|
|
@@ -2127,7 +2133,7 @@ class DynamicWalletClient {
|
|
|
2127
2133
|
if (!backupData.keyShares || !backupData.metadata) {
|
|
2128
2134
|
const error = new Error('Invalid backup format: missing keyShares or metadata');
|
|
2129
2135
|
logError({
|
|
2130
|
-
message: '
|
|
2136
|
+
message: 'Invalid backup format: missing keyShares or metadata',
|
|
2131
2137
|
error,
|
|
2132
2138
|
context: {
|
|
2133
2139
|
accountAddress,
|
|
@@ -2149,7 +2155,7 @@ class DynamicWalletClient {
|
|
|
2149
2155
|
return decryptedKeyShares;
|
|
2150
2156
|
} catch (error) {
|
|
2151
2157
|
logError({
|
|
2152
|
-
message: '
|
|
2158
|
+
message: 'Error in restoreBackupFromGoogleDrive',
|
|
2153
2159
|
error: error,
|
|
2154
2160
|
context: {
|
|
2155
2161
|
accountAddress
|
|
@@ -2281,7 +2287,7 @@ class DynamicWalletClient {
|
|
|
2281
2287
|
});
|
|
2282
2288
|
} catch (error) {
|
|
2283
2289
|
logError({
|
|
2284
|
-
message: '
|
|
2290
|
+
message: 'Error in verifyPassword',
|
|
2285
2291
|
error: error,
|
|
2286
2292
|
context: {
|
|
2287
2293
|
accountAddress
|
|
@@ -2348,7 +2354,7 @@ class DynamicWalletClient {
|
|
|
2348
2354
|
});
|
|
2349
2355
|
} catch (error) {
|
|
2350
2356
|
logError({
|
|
2351
|
-
message: '
|
|
2357
|
+
message: 'Error in getWalletClientKeyShareBackupInfo',
|
|
2352
2358
|
error: error,
|
|
2353
2359
|
context: {
|
|
2354
2360
|
accountAddress,
|
|
@@ -2418,7 +2424,7 @@ class DynamicWalletClient {
|
|
|
2418
2424
|
return this.walletMap[accountAddress];
|
|
2419
2425
|
} catch (error) {
|
|
2420
2426
|
logError({
|
|
2421
|
-
message: '
|
|
2427
|
+
message: 'Error in getWallet',
|
|
2422
2428
|
error: error,
|
|
2423
2429
|
context: {
|
|
2424
2430
|
accountAddress,
|
|
@@ -2467,7 +2473,7 @@ class DynamicWalletClient {
|
|
|
2467
2473
|
return wallets;
|
|
2468
2474
|
} catch (error) {
|
|
2469
2475
|
logError({
|
|
2470
|
-
message: '
|
|
2476
|
+
message: 'Error in getWallets',
|
|
2471
2477
|
error: error,
|
|
2472
2478
|
context: {
|
|
2473
2479
|
dynamicRequestId
|
package/index.esm.js
CHANGED
|
@@ -408,7 +408,7 @@ const downloadFileFromGoogleDrive = async ({ accessToken, fileName })=>{
|
|
|
408
408
|
|
|
409
409
|
const handleAxiosError = (error, message, context)=>{
|
|
410
410
|
var _error_response, _error_response1, _error_response2;
|
|
411
|
-
logger.
|
|
411
|
+
logger.error('[DynamicWaasWalletClient] Axios error: ', {
|
|
412
412
|
message,
|
|
413
413
|
error: (_error_response = error.response) == null ? void 0 : _error_response.data,
|
|
414
414
|
status: (_error_response1 = error.response) == null ? void 0 : _error_response1.status,
|
|
@@ -449,8 +449,8 @@ const logError = ({ message, error, context })=>{
|
|
|
449
449
|
if (error instanceof AxiosError) {
|
|
450
450
|
handleAxiosError(error, message, context);
|
|
451
451
|
}
|
|
452
|
-
logger.error(
|
|
453
|
-
error: error instanceof Error ? error.message :
|
|
452
|
+
logger.error('[DynamicWaasWalletClient] Error in browser client', {
|
|
453
|
+
error: error instanceof Error ? error.message : String(error),
|
|
454
454
|
context
|
|
455
455
|
});
|
|
456
456
|
};
|
|
@@ -786,7 +786,7 @@ class DynamicWalletClient {
|
|
|
786
786
|
this.sessionId = sessionId;
|
|
787
787
|
} catch (error) {
|
|
788
788
|
logError({
|
|
789
|
-
message: '
|
|
789
|
+
message: 'Error initializing logger context',
|
|
790
790
|
error: error,
|
|
791
791
|
context: {}
|
|
792
792
|
});
|
|
@@ -943,7 +943,7 @@ class DynamicWalletClient {
|
|
|
943
943
|
};
|
|
944
944
|
} catch (error) {
|
|
945
945
|
logError({
|
|
946
|
-
message: '
|
|
946
|
+
message: 'Error in keyGen',
|
|
947
947
|
error: error,
|
|
948
948
|
context: {
|
|
949
949
|
chainName,
|
|
@@ -1023,7 +1023,7 @@ class DynamicWalletClient {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
} catch (error) {
|
|
1025
1025
|
logError({
|
|
1026
|
-
message: '
|
|
1026
|
+
message: 'Error in importRawPrivateKey',
|
|
1027
1027
|
error: error,
|
|
1028
1028
|
context: {
|
|
1029
1029
|
chainName,
|
|
@@ -1034,7 +1034,7 @@ class DynamicWalletClient {
|
|
|
1034
1034
|
throw error;
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError }) {
|
|
1037
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1038
1038
|
// Create the room and sign the message
|
|
1039
1039
|
if (typeof message !== 'string') {
|
|
1040
1040
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1043,14 +1043,14 @@ class DynamicWalletClient {
|
|
|
1043
1043
|
walletId,
|
|
1044
1044
|
message,
|
|
1045
1045
|
isFormatted,
|
|
1046
|
-
dynamicRequestId
|
|
1046
|
+
dynamicRequestId,
|
|
1047
1047
|
mfaToken,
|
|
1048
1048
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1049
1049
|
onError
|
|
1050
1050
|
});
|
|
1051
1051
|
return data;
|
|
1052
1052
|
}
|
|
1053
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted }) {
|
|
1053
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1054
1054
|
try {
|
|
1055
1055
|
const mpcSigner = getMPCSigner({
|
|
1056
1056
|
chainName,
|
|
@@ -1068,13 +1068,14 @@ class DynamicWalletClient {
|
|
|
1068
1068
|
return signature;
|
|
1069
1069
|
} catch (error) {
|
|
1070
1070
|
logError({
|
|
1071
|
-
message: '
|
|
1071
|
+
message: 'Error in clientSign',
|
|
1072
1072
|
error: error,
|
|
1073
1073
|
context: {
|
|
1074
1074
|
chainName,
|
|
1075
1075
|
roomId,
|
|
1076
1076
|
derivationPath,
|
|
1077
|
-
isFormatted
|
|
1077
|
+
isFormatted,
|
|
1078
|
+
dynamicRequestId
|
|
1078
1079
|
}
|
|
1079
1080
|
});
|
|
1080
1081
|
throw error;
|
|
@@ -1082,6 +1083,7 @@ class DynamicWalletClient {
|
|
|
1082
1083
|
}
|
|
1083
1084
|
//todo: need to modify with imported flag
|
|
1084
1085
|
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1086
|
+
const dynamicRequestId = v4();
|
|
1085
1087
|
try {
|
|
1086
1088
|
await this.verifyPassword({
|
|
1087
1089
|
accountAddress,
|
|
@@ -1102,13 +1104,15 @@ class DynamicWalletClient {
|
|
|
1102
1104
|
isFormatted,
|
|
1103
1105
|
mfaToken,
|
|
1104
1106
|
context,
|
|
1105
|
-
onError
|
|
1107
|
+
onError,
|
|
1108
|
+
dynamicRequestId
|
|
1106
1109
|
});
|
|
1107
1110
|
this.logger.debug('[DynamicWaasWalletClient] Server sign completed', {
|
|
1108
1111
|
message,
|
|
1109
1112
|
accountAddress,
|
|
1110
1113
|
walletId: wallet.walletId,
|
|
1111
|
-
roomId: data.roomId
|
|
1114
|
+
roomId: data.roomId,
|
|
1115
|
+
dynamicRequestId
|
|
1112
1116
|
});
|
|
1113
1117
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1114
1118
|
// Perform the client sign and return the signature
|
|
@@ -1121,7 +1125,8 @@ class DynamicWalletClient {
|
|
|
1121
1125
|
roomId: data.roomId,
|
|
1122
1126
|
keyShare: clientKeyShares[0],
|
|
1123
1127
|
derivationPath,
|
|
1124
|
-
isFormatted
|
|
1128
|
+
isFormatted,
|
|
1129
|
+
dynamicRequestId
|
|
1125
1130
|
});
|
|
1126
1131
|
this.logger.debug('[DynamicWaasWalletClient] Client sign completed', {
|
|
1127
1132
|
chainName,
|
|
@@ -1133,12 +1138,13 @@ class DynamicWalletClient {
|
|
|
1133
1138
|
return signature;
|
|
1134
1139
|
} catch (error) {
|
|
1135
1140
|
logError({
|
|
1136
|
-
message: '
|
|
1141
|
+
message: 'Error in sign',
|
|
1137
1142
|
error: error,
|
|
1138
1143
|
context: {
|
|
1139
1144
|
accountAddress,
|
|
1140
1145
|
chainName,
|
|
1141
|
-
isFormatted: isFormatted ? 'true' : 'false'
|
|
1146
|
+
isFormatted: isFormatted ? 'true' : 'false',
|
|
1147
|
+
dynamicRequestId
|
|
1142
1148
|
}
|
|
1143
1149
|
});
|
|
1144
1150
|
throw error;
|
|
@@ -1186,7 +1192,7 @@ class DynamicWalletClient {
|
|
|
1186
1192
|
});
|
|
1187
1193
|
} catch (error) {
|
|
1188
1194
|
logError({
|
|
1189
|
-
message: '
|
|
1195
|
+
message: 'Error in refreshWalletAccountShares',
|
|
1190
1196
|
error: error,
|
|
1191
1197
|
context: {
|
|
1192
1198
|
accountAddress,
|
|
@@ -1330,7 +1336,7 @@ class DynamicWalletClient {
|
|
|
1330
1336
|
}
|
|
1331
1337
|
} catch (error) {
|
|
1332
1338
|
logError({
|
|
1333
|
-
message: '
|
|
1339
|
+
message: 'Error in reshare',
|
|
1334
1340
|
error: error,
|
|
1335
1341
|
context: {
|
|
1336
1342
|
accountAddress,
|
|
@@ -1365,7 +1371,7 @@ class DynamicWalletClient {
|
|
|
1365
1371
|
return data;
|
|
1366
1372
|
} catch (error) {
|
|
1367
1373
|
logError({
|
|
1368
|
-
message: '
|
|
1374
|
+
message: 'Error in sendKeySharesToDelegatedAccess',
|
|
1369
1375
|
error: error,
|
|
1370
1376
|
context: {
|
|
1371
1377
|
accountAddress,
|
|
@@ -1418,7 +1424,7 @@ class DynamicWalletClient {
|
|
|
1418
1424
|
}
|
|
1419
1425
|
} catch (error) {
|
|
1420
1426
|
logError({
|
|
1421
|
-
message: '
|
|
1427
|
+
message: 'Error in delegateKeyShares',
|
|
1422
1428
|
error: error,
|
|
1423
1429
|
context: {
|
|
1424
1430
|
accountAddress
|
|
@@ -1485,7 +1491,7 @@ class DynamicWalletClient {
|
|
|
1485
1491
|
};
|
|
1486
1492
|
} catch (error) {
|
|
1487
1493
|
logError({
|
|
1488
|
-
message: '
|
|
1494
|
+
message: 'Error in exportKey',
|
|
1489
1495
|
error: error,
|
|
1490
1496
|
context: {
|
|
1491
1497
|
accountAddress,
|
|
@@ -1533,7 +1539,7 @@ class DynamicWalletClient {
|
|
|
1533
1539
|
};
|
|
1534
1540
|
} catch (error) {
|
|
1535
1541
|
logError({
|
|
1536
|
-
message: '
|
|
1542
|
+
message: 'Error in offlineExportKey',
|
|
1537
1543
|
error: error,
|
|
1538
1544
|
context: {
|
|
1539
1545
|
chainName
|
|
@@ -1571,7 +1577,7 @@ class DynamicWalletClient {
|
|
|
1571
1577
|
return (parsedWalletObject == null ? void 0 : parsedWalletObject.clientKeyShares) || [];
|
|
1572
1578
|
} catch (error) {
|
|
1573
1579
|
logError({
|
|
1574
|
-
message: `
|
|
1580
|
+
message: `Error parsing clientKeyShares: Error for accountAddress:`,
|
|
1575
1581
|
error: error,
|
|
1576
1582
|
context: {
|
|
1577
1583
|
accountAddress
|
|
@@ -1627,7 +1633,7 @@ class DynamicWalletClient {
|
|
|
1627
1633
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1628
1634
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1629
1635
|
logError({
|
|
1630
|
-
message: '
|
|
1636
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1631
1637
|
error,
|
|
1632
1638
|
context: {
|
|
1633
1639
|
accountAddress,
|
|
@@ -1709,7 +1715,7 @@ class DynamicWalletClient {
|
|
|
1709
1715
|
return data;
|
|
1710
1716
|
} catch (error) {
|
|
1711
1717
|
logError({
|
|
1712
|
-
message: '
|
|
1718
|
+
message: 'Error in storeEncryptedBackupByWallet',
|
|
1713
1719
|
error: error,
|
|
1714
1720
|
context: {
|
|
1715
1721
|
accountAddress,
|
|
@@ -1729,7 +1735,7 @@ class DynamicWalletClient {
|
|
|
1729
1735
|
if (!((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.walletId)) {
|
|
1730
1736
|
const error = new Error(`WalletId not found for accountAddress ${accountAddress}`);
|
|
1731
1737
|
logError({
|
|
1732
|
-
message: '
|
|
1738
|
+
message: 'Error in storeEncryptedBackupByWallet, wallet or walletId not found from the wallet map',
|
|
1733
1739
|
error,
|
|
1734
1740
|
context: {
|
|
1735
1741
|
accountAddress,
|
|
@@ -1813,7 +1819,7 @@ class DynamicWalletClient {
|
|
|
1813
1819
|
return data;
|
|
1814
1820
|
} catch (error) {
|
|
1815
1821
|
logError({
|
|
1816
|
-
message: '
|
|
1822
|
+
message: 'Error in storeEncryptedBackupByDelegatedWallet',
|
|
1817
1823
|
error: error,
|
|
1818
1824
|
context: {
|
|
1819
1825
|
accountAddress,
|
|
@@ -1883,7 +1889,7 @@ class DynamicWalletClient {
|
|
|
1883
1889
|
return oauthAccountId;
|
|
1884
1890
|
} catch (error) {
|
|
1885
1891
|
logError({
|
|
1886
|
-
message: '
|
|
1892
|
+
message: 'Error in getGoogleOauthAccountIdOrThrow',
|
|
1887
1893
|
error: error,
|
|
1888
1894
|
context: {
|
|
1889
1895
|
accountAddress,
|
|
@@ -1957,7 +1963,7 @@ class DynamicWalletClient {
|
|
|
1957
1963
|
return decryptedKeyShares;
|
|
1958
1964
|
} catch (error) {
|
|
1959
1965
|
logError({
|
|
1960
|
-
message: '
|
|
1966
|
+
message: 'Error in recoverEncryptedBackupByWallet',
|
|
1961
1967
|
error: error,
|
|
1962
1968
|
context: {
|
|
1963
1969
|
accountAddress,
|
|
@@ -2023,7 +2029,7 @@ class DynamicWalletClient {
|
|
|
2023
2029
|
}
|
|
2024
2030
|
} catch (error) {
|
|
2025
2031
|
logError({
|
|
2026
|
-
message: '
|
|
2032
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2027
2033
|
error: error,
|
|
2028
2034
|
context: {
|
|
2029
2035
|
accountAddress
|
|
@@ -2071,7 +2077,7 @@ class DynamicWalletClient {
|
|
|
2071
2077
|
return;
|
|
2072
2078
|
} catch (error) {
|
|
2073
2079
|
logError({
|
|
2074
|
-
message: '
|
|
2080
|
+
message: 'Error in backupKeySharesToGoogleDrive',
|
|
2075
2081
|
error: error,
|
|
2076
2082
|
context: {
|
|
2077
2083
|
accountAddress
|
|
@@ -2103,7 +2109,7 @@ class DynamicWalletClient {
|
|
|
2103
2109
|
}));
|
|
2104
2110
|
} catch (error) {
|
|
2105
2111
|
logError({
|
|
2106
|
-
message: '
|
|
2112
|
+
message: 'Failed to download backup from Google Drive',
|
|
2107
2113
|
error: error,
|
|
2108
2114
|
context: {
|
|
2109
2115
|
accountAddress,
|
|
@@ -2115,7 +2121,7 @@ class DynamicWalletClient {
|
|
|
2115
2121
|
if (!backupData) {
|
|
2116
2122
|
const error = new Error('No backup file found');
|
|
2117
2123
|
logError({
|
|
2118
|
-
message: '
|
|
2124
|
+
message: 'No backup file found',
|
|
2119
2125
|
error: new Error('No backup file found'),
|
|
2120
2126
|
context: {
|
|
2121
2127
|
accountAddress,
|
|
@@ -2128,7 +2134,7 @@ class DynamicWalletClient {
|
|
|
2128
2134
|
if (!backupData.keyShares || !backupData.metadata) {
|
|
2129
2135
|
const error = new Error('Invalid backup format: missing keyShares or metadata');
|
|
2130
2136
|
logError({
|
|
2131
|
-
message: '
|
|
2137
|
+
message: 'Invalid backup format: missing keyShares or metadata',
|
|
2132
2138
|
error,
|
|
2133
2139
|
context: {
|
|
2134
2140
|
accountAddress,
|
|
@@ -2150,7 +2156,7 @@ class DynamicWalletClient {
|
|
|
2150
2156
|
return decryptedKeyShares;
|
|
2151
2157
|
} catch (error) {
|
|
2152
2158
|
logError({
|
|
2153
|
-
message: '
|
|
2159
|
+
message: 'Error in restoreBackupFromGoogleDrive',
|
|
2154
2160
|
error: error,
|
|
2155
2161
|
context: {
|
|
2156
2162
|
accountAddress
|
|
@@ -2282,7 +2288,7 @@ class DynamicWalletClient {
|
|
|
2282
2288
|
});
|
|
2283
2289
|
} catch (error) {
|
|
2284
2290
|
logError({
|
|
2285
|
-
message: '
|
|
2291
|
+
message: 'Error in verifyPassword',
|
|
2286
2292
|
error: error,
|
|
2287
2293
|
context: {
|
|
2288
2294
|
accountAddress
|
|
@@ -2349,7 +2355,7 @@ class DynamicWalletClient {
|
|
|
2349
2355
|
});
|
|
2350
2356
|
} catch (error) {
|
|
2351
2357
|
logError({
|
|
2352
|
-
message: '
|
|
2358
|
+
message: 'Error in getWalletClientKeyShareBackupInfo',
|
|
2353
2359
|
error: error,
|
|
2354
2360
|
context: {
|
|
2355
2361
|
accountAddress,
|
|
@@ -2419,7 +2425,7 @@ class DynamicWalletClient {
|
|
|
2419
2425
|
return this.walletMap[accountAddress];
|
|
2420
2426
|
} catch (error) {
|
|
2421
2427
|
logError({
|
|
2422
|
-
message: '
|
|
2428
|
+
message: 'Error in getWallet',
|
|
2423
2429
|
error: error,
|
|
2424
2430
|
context: {
|
|
2425
2431
|
accountAddress,
|
|
@@ -2468,7 +2474,7 @@ class DynamicWalletClient {
|
|
|
2468
2474
|
return wallets;
|
|
2469
2475
|
} catch (error) {
|
|
2470
2476
|
logError({
|
|
2471
|
-
message: '
|
|
2477
|
+
message: 'Error in getWallets',
|
|
2472
2478
|
error: error,
|
|
2473
2479
|
context: {
|
|
2474
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.165",
|
|
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.165",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "^0.0.764",
|
|
10
10
|
"argon2id": "1.0.1",
|
package/src/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthMode, BackupLocation, type BackupLocationWithExternalKeyShareId, DynamicApiClient, type DynamicWalletClientProps, FeatureFlags, type InitializeResult, type KeyShareBackupInfo, ThresholdSignatureScheme, WalletOperation } from '@dynamic-labs-wallet/core';
|
|
2
|
-
import { BIP340KeygenResult, EcdsaKeygenResult, type EcdsaPublicKey, type EcdsaSignature, ExportableEd25519KeygenResult } from '
|
|
2
|
+
import { BIP340KeygenResult, EcdsaKeygenResult, type EcdsaPublicKey, type EcdsaSignature, ExportableEd25519KeygenResult } from '../internal/web';
|
|
3
3
|
import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
|
|
4
4
|
import type { ClientInitKeygenResult, ClientKeyShare } from './mpc/types';
|
|
5
5
|
import { type SupportedStorage } from './services/localStorage';
|
|
@@ -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,cAAc,EACnB,KAAK,cAAc,EAEnB,6BAA6B,EAE9B,MAAM,eAAe,CAAC;AAMvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAYrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAWhD,qBAAa,mBAAmB;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IACjD,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAa;IACpD,SAAS,CAAC,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAa;IAElE,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAQ;IACrE,SAAS,CAAC,MAAM,wCAAU;IAC1B,SAAS,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,SAAS,CAAC,S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AC;QAClB,eAAe,EAAE,MAAM,CAAC;KACzB;IAmGK,UAAU;IAgDhB;;;OAGG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM;CAOhC"}
|
package/src/mpc/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ecdsa, Ed25519, BIP340, BIP340KeygenResult, EcdsaPublicKey, Ed25519KeygenResult, EcdsaKeygenResult, MessageHash, EcdsaInitKeygenResult, Ed25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature } from '
|
|
1
|
+
import { Ecdsa, Ed25519, BIP340, BIP340KeygenResult, EcdsaPublicKey, Ed25519KeygenResult, EcdsaKeygenResult, MessageHash, EcdsaInitKeygenResult, Ed25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature } from '../../internal/web';
|
|
2
2
|
export { Ecdsa, Ed25519, BIP340, EcdsaPublicKey, EcdsaKeygenResult, Ed25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaInitKeygenResult, Ed25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature, };
|
|
3
3
|
export * from './mpc';
|
|
4
4
|
export * from './types';
|
package/src/mpc/mpc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SigningAlgorithm } from '@dynamic-labs-wallet/core';
|
|
2
|
-
import { Ecdsa, ExportableEd25519, BIP340 } from '
|
|
2
|
+
import { Ecdsa, ExportableEd25519, BIP340 } from '../../internal/web';
|
|
3
3
|
export declare const getMPCSignatureScheme: ({ signingAlgorithm, baseRelayUrl, }: {
|
|
4
4
|
signingAlgorithm: SigningAlgorithm;
|
|
5
5
|
baseRelayUrl?: string;
|
package/src/mpc/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BIP340InitKeygenResult, BIP340KeygenResult, ExportableEd25519InitKeygenResult, EcdsaInitKeygenResult, EcdsaKeygenResult, ExportableEd25519KeygenResult } from '
|
|
1
|
+
import type { BIP340InitKeygenResult, BIP340KeygenResult, ExportableEd25519InitKeygenResult, EcdsaInitKeygenResult, EcdsaKeygenResult, ExportableEd25519KeygenResult } from '../../internal/web';
|
|
2
2
|
export type ClientInitKeygenResult = EcdsaInitKeygenResult | ExportableEd25519InitKeygenResult | BIP340InitKeygenResult;
|
|
3
3
|
export type ClientKeyShare = EcdsaKeygenResult | ExportableEd25519KeygenResult | BIP340KeygenResult;
|
|
4
|
-
export type { Ecdsa, BIP340, EcdsaPublicKey, EcdsaKeygenResult, ExportableEd25519InitKeygenResult, ExportableEd25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaSignature, } from '
|
|
4
|
+
export type { Ecdsa, BIP340, EcdsaPublicKey, EcdsaKeygenResult, ExportableEd25519InitKeygenResult, ExportableEd25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaSignature, } from '../../internal/web';
|
|
5
5
|
//# sourceMappingURL=types.d.ts.map
|
package/src/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type KeyShareBackupInfo, type ThresholdSignatureScheme, type WaasWalletProperties } from '@dynamic-labs-wallet/core';
|
|
2
2
|
import type { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
|
|
3
|
-
import { MessageHash } from '
|
|
3
|
+
import { MessageHash } from '../internal/web';
|
|
4
4
|
import type { ClientKeyShare } from './mpc/types';
|
|
5
5
|
export declare const isBrowser: () => boolean;
|
|
6
6
|
export declare const getClientKeyShareExportFileName: ({ thresholdSignatureScheme, accountAddress, }: {
|