@dynamic-labs-wallet/browser 0.0.215 → 0.0.217
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 +98 -60
- package/index.esm.js +98 -60
- package/package.json +2 -2
- package/src/client.d.ts +28 -11
- package/src/client.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -939,30 +939,32 @@ class DynamicWalletClient {
|
|
|
939
939
|
throw error;
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
async initialize() {
|
|
942
|
+
async initialize(traceContext) {
|
|
943
943
|
if (this.initializePromise) {
|
|
944
944
|
return await this.initializePromise;
|
|
945
945
|
}
|
|
946
946
|
this.logger.debug('[DynamicWaasWalletClient] Initializing Dynamic Waas Wallet SDK');
|
|
947
|
-
this.initializePromise = this._initialize();
|
|
947
|
+
this.initializePromise = this._initialize(traceContext);
|
|
948
948
|
const result = await this.initializePromise;
|
|
949
949
|
this.logger.debug('[DynamicWaasWalletClient] Dynamic Waas Wallet SDK initialized');
|
|
950
950
|
return result;
|
|
951
951
|
}
|
|
952
952
|
/**
|
|
953
953
|
* Client initialization logic
|
|
954
|
-
*/ async _initialize() {
|
|
954
|
+
*/ async _initialize(traceContext) {
|
|
955
955
|
try {
|
|
956
956
|
const initializePromises = [
|
|
957
957
|
this.restoreWallets()
|
|
958
958
|
];
|
|
959
959
|
await Promise.all(initializePromises);
|
|
960
960
|
return {
|
|
961
|
-
error: null
|
|
961
|
+
error: null,
|
|
962
|
+
traceContext
|
|
962
963
|
};
|
|
963
964
|
} catch (error) {
|
|
964
965
|
return {
|
|
965
|
-
error
|
|
966
|
+
error,
|
|
967
|
+
traceContext
|
|
966
968
|
};
|
|
967
969
|
}
|
|
968
970
|
}
|
|
@@ -1041,7 +1043,7 @@ class DynamicWalletClient {
|
|
|
1041
1043
|
clientKeygenResults
|
|
1042
1044
|
};
|
|
1043
1045
|
}
|
|
1044
|
-
async keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
1046
|
+
async keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext }) {
|
|
1045
1047
|
const dynamicRequestId = uuid.v4();
|
|
1046
1048
|
try {
|
|
1047
1049
|
const clientKeygenInitResults = await this.clientInitializeKeyGen({
|
|
@@ -1049,11 +1051,12 @@ class DynamicWalletClient {
|
|
|
1049
1051
|
thresholdSignatureScheme
|
|
1050
1052
|
});
|
|
1051
1053
|
const clientKeygenIds = clientKeygenInitResults.map((result)=>result.keygenId);
|
|
1052
|
-
this.
|
|
1054
|
+
this.instrument('[DynamicWaasWalletClient] Initialized client key generation', _extends({
|
|
1053
1055
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1054
1056
|
chainName,
|
|
1055
|
-
thresholdSignatureScheme
|
|
1056
|
-
|
|
1057
|
+
thresholdSignatureScheme,
|
|
1058
|
+
key: 'keyGen'
|
|
1059
|
+
}, this.getTraceContext(traceContext)));
|
|
1057
1060
|
const { roomId, serverKeygenIds } = await this.serverInitializeKeyGen({
|
|
1058
1061
|
chainName,
|
|
1059
1062
|
clientKeygenIds,
|
|
@@ -1061,12 +1064,14 @@ class DynamicWalletClient {
|
|
|
1061
1064
|
thresholdSignatureScheme,
|
|
1062
1065
|
onCeremonyComplete
|
|
1063
1066
|
});
|
|
1064
|
-
this.
|
|
1067
|
+
this.instrument('[DynamicWaasWalletClient] Server key generation initialized', _extends({
|
|
1065
1068
|
roomId,
|
|
1066
1069
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1067
1070
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1068
|
-
chainName
|
|
1069
|
-
|
|
1071
|
+
chainName,
|
|
1072
|
+
key: 'keyGen',
|
|
1073
|
+
operation: 'serverKeyGen'
|
|
1074
|
+
}, this.getTraceContext(traceContext)));
|
|
1070
1075
|
const { rawPublicKey, clientKeygenResults: clientKeyShares } = await this.clientKeyGen({
|
|
1071
1076
|
chainName,
|
|
1072
1077
|
roomId,
|
|
@@ -1074,15 +1079,17 @@ class DynamicWalletClient {
|
|
|
1074
1079
|
clientKeygenInitResults,
|
|
1075
1080
|
thresholdSignatureScheme
|
|
1076
1081
|
});
|
|
1077
|
-
this.
|
|
1082
|
+
this.instrument('[DynamicWaasWalletClient] Client key generation completed', _extends({
|
|
1078
1083
|
roomId,
|
|
1079
1084
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1080
1085
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1081
1086
|
chainName,
|
|
1082
1087
|
thresholdSignatureScheme,
|
|
1083
1088
|
rawPublicKey,
|
|
1084
|
-
clientKeySharesCount: clientKeyShares.length
|
|
1085
|
-
|
|
1089
|
+
clientKeySharesCount: clientKeyShares.length,
|
|
1090
|
+
key: 'keyGen',
|
|
1091
|
+
operation: 'clientKeyGen'
|
|
1092
|
+
}, this.getTraceContext(traceContext)));
|
|
1086
1093
|
return {
|
|
1087
1094
|
rawPublicKey,
|
|
1088
1095
|
clientKeyShares
|
|
@@ -1091,16 +1098,16 @@ class DynamicWalletClient {
|
|
|
1091
1098
|
logError({
|
|
1092
1099
|
message: 'Error in keyGen',
|
|
1093
1100
|
error: error,
|
|
1094
|
-
context: {
|
|
1101
|
+
context: _extends({
|
|
1095
1102
|
chainName,
|
|
1096
1103
|
thresholdSignatureScheme,
|
|
1097
1104
|
dynamicRequestId
|
|
1098
|
-
}
|
|
1105
|
+
}, this.getTraceContext(traceContext))
|
|
1099
1106
|
});
|
|
1100
1107
|
throw error;
|
|
1101
1108
|
}
|
|
1102
1109
|
}
|
|
1103
|
-
async importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
1110
|
+
async importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext }) {
|
|
1104
1111
|
const dynamicRequestId = uuid.v4();
|
|
1105
1112
|
try {
|
|
1106
1113
|
const mpcSigner = getMPCSigner({
|
|
@@ -1112,11 +1119,13 @@ class DynamicWalletClient {
|
|
|
1112
1119
|
thresholdSignatureScheme
|
|
1113
1120
|
});
|
|
1114
1121
|
const clientKeygenIds = clientKeygenInitResults.map((result)=>result.keygenId);
|
|
1115
|
-
this.
|
|
1122
|
+
this.instrument('[DynamicWaasWalletClient] Client key generation initialized', _extends({
|
|
1116
1123
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1117
1124
|
chainName,
|
|
1118
|
-
thresholdSignatureScheme
|
|
1119
|
-
|
|
1125
|
+
thresholdSignatureScheme,
|
|
1126
|
+
key: 'importRawPrivateKey',
|
|
1127
|
+
operation: 'clientKeyGen'
|
|
1128
|
+
}, this.getTraceContext(traceContext)));
|
|
1120
1129
|
const { roomId, serverKeygenIds } = await this.apiClient.importPrivateKey({
|
|
1121
1130
|
chainName,
|
|
1122
1131
|
clientKeygenIds,
|
|
@@ -1125,12 +1134,14 @@ class DynamicWalletClient {
|
|
|
1125
1134
|
onError,
|
|
1126
1135
|
onCeremonyComplete
|
|
1127
1136
|
});
|
|
1128
|
-
this.
|
|
1137
|
+
this.instrument('[DynamicWaasWalletClient] Server key generation initialized', _extends({
|
|
1129
1138
|
roomId,
|
|
1130
1139
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1131
1140
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1132
|
-
chainName
|
|
1133
|
-
|
|
1141
|
+
chainName,
|
|
1142
|
+
key: 'importRawPrivateKey',
|
|
1143
|
+
operation: 'serverImportPrivateKey'
|
|
1144
|
+
}, this.getTraceContext(traceContext)));
|
|
1134
1145
|
const { threshold } = core.getTSSConfig(thresholdSignatureScheme);
|
|
1135
1146
|
const clientKeygenResults = await Promise.all(clientKeygenInitResults.map(async (currentInit, index)=>{
|
|
1136
1147
|
const otherClientKeygenIds = clientKeygenInitResults.filter((init)=>init.keygenId !== currentInit.keygenId).map((init)=>init.keygenId);
|
|
@@ -1155,14 +1166,16 @@ class DynamicWalletClient {
|
|
|
1155
1166
|
keyShare: clientKeygenResult,
|
|
1156
1167
|
derivationPath: undefined
|
|
1157
1168
|
});
|
|
1158
|
-
this.
|
|
1169
|
+
this.instrument('[DynamicWaasWalletClient] Completed import of raw private key', _extends({
|
|
1159
1170
|
rawPublicKey,
|
|
1160
1171
|
chainName,
|
|
1161
1172
|
thresholdSignatureScheme,
|
|
1162
1173
|
roomId,
|
|
1163
1174
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1164
|
-
clientKeygenIds: clientKeygenIds.join(', ')
|
|
1165
|
-
|
|
1175
|
+
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1176
|
+
key: 'importRawPrivateKey',
|
|
1177
|
+
operation: 'importRawPrivateKey'
|
|
1178
|
+
}, this.getTraceContext(traceContext)));
|
|
1166
1179
|
return {
|
|
1167
1180
|
rawPublicKey,
|
|
1168
1181
|
clientKeyShares: clientKeygenResults
|
|
@@ -1171,16 +1184,16 @@ class DynamicWalletClient {
|
|
|
1171
1184
|
logError({
|
|
1172
1185
|
message: 'Error in importRawPrivateKey',
|
|
1173
1186
|
error: error,
|
|
1174
|
-
context: {
|
|
1187
|
+
context: _extends({
|
|
1175
1188
|
chainName,
|
|
1176
1189
|
thresholdSignatureScheme,
|
|
1177
1190
|
dynamicRequestId
|
|
1178
|
-
}
|
|
1191
|
+
}, this.getTraceContext(traceContext))
|
|
1179
1192
|
});
|
|
1180
1193
|
throw error;
|
|
1181
1194
|
}
|
|
1182
1195
|
}
|
|
1183
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1196
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, traceContext }) {
|
|
1184
1197
|
// Create the room and sign the message
|
|
1185
1198
|
if (typeof message !== 'string') {
|
|
1186
1199
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1193,11 +1206,12 @@ class DynamicWalletClient {
|
|
|
1193
1206
|
mfaToken,
|
|
1194
1207
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1195
1208
|
onError,
|
|
1196
|
-
forwardMPCClientEnabled: this.forwardMPCEnabled
|
|
1209
|
+
forwardMPCClientEnabled: this.forwardMPCEnabled,
|
|
1210
|
+
traceContext
|
|
1197
1211
|
});
|
|
1198
1212
|
return data;
|
|
1199
1213
|
}
|
|
1200
|
-
async forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted }) {
|
|
1214
|
+
async forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted, traceContext }) {
|
|
1201
1215
|
try {
|
|
1202
1216
|
if (!this.apiClient.forwardMPCClient.connected) {
|
|
1203
1217
|
await this.initializeForwardMPCClient();
|
|
@@ -1207,7 +1221,7 @@ class DynamicWalletClient {
|
|
|
1207
1221
|
isFormatted,
|
|
1208
1222
|
chainName
|
|
1209
1223
|
});
|
|
1210
|
-
this.logger.info('Forward MPC enabled, signing message with forward MPC');
|
|
1224
|
+
this.logger.info('Forward MPC enabled, signing message with forward MPC', this.getTraceContext(traceContext));
|
|
1211
1225
|
const signature = await this.apiClient.forwardMPCClient.signMessage({
|
|
1212
1226
|
keyshare: keyShare,
|
|
1213
1227
|
message: chainName === 'SVM' ? formattedMessage : messageForForwardMPC,
|
|
@@ -1238,20 +1252,20 @@ class DynamicWalletClient {
|
|
|
1238
1252
|
throw error;
|
|
1239
1253
|
}
|
|
1240
1254
|
}
|
|
1241
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1255
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, traceContext }) {
|
|
1242
1256
|
try {
|
|
1243
1257
|
const mpcSigner = getMPCSigner({
|
|
1244
1258
|
chainName,
|
|
1245
1259
|
baseRelayUrl: this.baseMPCRelayApiUrl
|
|
1246
1260
|
});
|
|
1247
1261
|
const formattedMessage = isFormatted ? new web.MessageHash(message) : formatMessage(chainName, message);
|
|
1248
|
-
this.logger.debug('[DynamicWaasWalletClient] Starting client sign', {
|
|
1262
|
+
this.logger.debug('[DynamicWaasWalletClient] Starting client sign', _extends({
|
|
1249
1263
|
chainName,
|
|
1250
1264
|
message,
|
|
1251
1265
|
roomId,
|
|
1252
1266
|
derivationPath,
|
|
1253
1267
|
isFormatted
|
|
1254
|
-
});
|
|
1268
|
+
}, this.getTraceContext(traceContext)));
|
|
1255
1269
|
if (this.forwardMPCEnabled) {
|
|
1256
1270
|
return this.forwardMPCClientSign({
|
|
1257
1271
|
chainName,
|
|
@@ -1261,7 +1275,8 @@ class DynamicWalletClient {
|
|
|
1261
1275
|
derivationPath,
|
|
1262
1276
|
formattedMessage,
|
|
1263
1277
|
dynamicRequestId,
|
|
1264
|
-
isFormatted
|
|
1278
|
+
isFormatted,
|
|
1279
|
+
traceContext
|
|
1265
1280
|
});
|
|
1266
1281
|
}
|
|
1267
1282
|
const signature = await mpcSigner.sign(roomId, keyShare, formattedMessage, derivationPath);
|
|
@@ -1270,19 +1285,19 @@ class DynamicWalletClient {
|
|
|
1270
1285
|
logError({
|
|
1271
1286
|
message: 'Error in clientSign',
|
|
1272
1287
|
error: error,
|
|
1273
|
-
context: {
|
|
1288
|
+
context: _extends({
|
|
1274
1289
|
chainName,
|
|
1275
1290
|
roomId,
|
|
1276
1291
|
derivationPath,
|
|
1277
1292
|
isFormatted,
|
|
1278
1293
|
dynamicRequestId
|
|
1279
|
-
}
|
|
1294
|
+
}, this.getTraceContext(traceContext))
|
|
1280
1295
|
});
|
|
1281
1296
|
throw error;
|
|
1282
1297
|
}
|
|
1283
1298
|
}
|
|
1284
1299
|
//todo: need to modify with imported flag
|
|
1285
|
-
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1300
|
+
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError, traceContext }) {
|
|
1286
1301
|
const dynamicRequestId = uuid.v4();
|
|
1287
1302
|
try {
|
|
1288
1303
|
await this.verifyPassword({
|
|
@@ -1305,15 +1320,18 @@ class DynamicWalletClient {
|
|
|
1305
1320
|
mfaToken,
|
|
1306
1321
|
context,
|
|
1307
1322
|
onError,
|
|
1308
|
-
dynamicRequestId
|
|
1323
|
+
dynamicRequestId,
|
|
1324
|
+
traceContext
|
|
1309
1325
|
});
|
|
1310
|
-
this.
|
|
1326
|
+
this.instrument('[DynamicWaasWalletClient] Server sign completed', _extends({
|
|
1311
1327
|
message,
|
|
1312
1328
|
accountAddress,
|
|
1313
1329
|
walletId: wallet.walletId,
|
|
1314
1330
|
roomId: data.roomId,
|
|
1315
|
-
dynamicRequestId
|
|
1316
|
-
|
|
1331
|
+
dynamicRequestId,
|
|
1332
|
+
key: 'sign',
|
|
1333
|
+
operation: 'serverSign'
|
|
1334
|
+
}, this.getTraceContext(traceContext)));
|
|
1317
1335
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1318
1336
|
// Perform the client sign and return the signature
|
|
1319
1337
|
const clientKeyShares = await this.getClientKeySharesFromLocalStorage({
|
|
@@ -1326,31 +1344,35 @@ class DynamicWalletClient {
|
|
|
1326
1344
|
keyShare: clientKeyShares[0],
|
|
1327
1345
|
derivationPath,
|
|
1328
1346
|
isFormatted,
|
|
1329
|
-
dynamicRequestId
|
|
1347
|
+
dynamicRequestId,
|
|
1348
|
+
traceContext
|
|
1330
1349
|
});
|
|
1331
|
-
this.
|
|
1350
|
+
this.instrument('[DynamicWaasWalletClient] Client sign completed', _extends({
|
|
1351
|
+
accountAddress,
|
|
1332
1352
|
chainName,
|
|
1333
1353
|
message,
|
|
1334
1354
|
roomId: data.roomId,
|
|
1335
1355
|
derivationPath,
|
|
1336
|
-
isFormatted
|
|
1337
|
-
|
|
1356
|
+
isFormatted,
|
|
1357
|
+
key: 'sign',
|
|
1358
|
+
operation: 'clientSign'
|
|
1359
|
+
}, this.getTraceContext(traceContext)));
|
|
1338
1360
|
return signature;
|
|
1339
1361
|
} catch (error) {
|
|
1340
1362
|
logError({
|
|
1341
1363
|
message: 'Error in sign',
|
|
1342
1364
|
error: error,
|
|
1343
|
-
context: {
|
|
1365
|
+
context: _extends({
|
|
1344
1366
|
accountAddress,
|
|
1345
1367
|
chainName,
|
|
1346
1368
|
isFormatted: isFormatted ? 'true' : 'false',
|
|
1347
1369
|
dynamicRequestId
|
|
1348
|
-
}
|
|
1370
|
+
}, this.getTraceContext(traceContext))
|
|
1349
1371
|
});
|
|
1350
1372
|
throw error;
|
|
1351
1373
|
}
|
|
1352
1374
|
}
|
|
1353
|
-
async refreshWalletAccountShares({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken }) {
|
|
1375
|
+
async refreshWalletAccountShares({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken, traceContext }) {
|
|
1354
1376
|
const dynamicRequestId = uuid.v4();
|
|
1355
1377
|
try {
|
|
1356
1378
|
await this.verifyPassword({
|
|
@@ -1394,11 +1416,11 @@ class DynamicWalletClient {
|
|
|
1394
1416
|
logError({
|
|
1395
1417
|
message: 'Error in refreshWalletAccountShares',
|
|
1396
1418
|
error: error,
|
|
1397
|
-
context: {
|
|
1419
|
+
context: _extends({
|
|
1398
1420
|
accountAddress,
|
|
1399
1421
|
chainName,
|
|
1400
1422
|
dynamicRequestId
|
|
1401
|
-
}
|
|
1423
|
+
}, this.getTraceContext(traceContext))
|
|
1402
1424
|
});
|
|
1403
1425
|
throw error;
|
|
1404
1426
|
}
|
|
@@ -1657,7 +1679,7 @@ class DynamicWalletClient {
|
|
|
1657
1679
|
operationName: 'revokeDelegation'
|
|
1658
1680
|
});
|
|
1659
1681
|
}
|
|
1660
|
-
async exportKey({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken }) {
|
|
1682
|
+
async exportKey({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken, traceContext }) {
|
|
1661
1683
|
const dynamicRequestId = uuid.v4();
|
|
1662
1684
|
try {
|
|
1663
1685
|
const wallet = await this.getWallet({
|
|
@@ -1683,24 +1705,24 @@ class DynamicWalletClient {
|
|
|
1683
1705
|
dynamicRequestId,
|
|
1684
1706
|
mfaToken
|
|
1685
1707
|
});
|
|
1686
|
-
this.logger.debug('[DynamicWaasWalletClient] Starting export of private key', {
|
|
1708
|
+
this.logger.debug('[DynamicWaasWalletClient] Starting export of private key', _extends({
|
|
1687
1709
|
accountAddress,
|
|
1688
1710
|
chainName,
|
|
1689
1711
|
walletId: wallet.walletId,
|
|
1690
1712
|
exportId,
|
|
1691
1713
|
roomId: data.roomId
|
|
1692
|
-
});
|
|
1714
|
+
}, this.getTraceContext(traceContext)));
|
|
1693
1715
|
const keyExportRaw = await mpcSigner.exportFullPrivateKey(data.roomId, clientKeyShares[0], exportId);
|
|
1694
1716
|
if (!keyExportRaw) {
|
|
1695
1717
|
throw new Error('Error exporting private key');
|
|
1696
1718
|
}
|
|
1697
|
-
this.logger.debug('[DynamicWaasWalletClient] Completed export of private key', {
|
|
1719
|
+
this.logger.debug('[DynamicWaasWalletClient] Completed export of private key', _extends({
|
|
1698
1720
|
accountAddress,
|
|
1699
1721
|
chainName,
|
|
1700
1722
|
walletId: wallet.walletId,
|
|
1701
1723
|
exportId,
|
|
1702
1724
|
roomId: data.roomId
|
|
1703
|
-
});
|
|
1725
|
+
}, this.getTraceContext(traceContext)));
|
|
1704
1726
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1705
1727
|
let derivedPrivateKey;
|
|
1706
1728
|
if (mpcSigner instanceof web.Ecdsa) {
|
|
@@ -1717,11 +1739,11 @@ class DynamicWalletClient {
|
|
|
1717
1739
|
logError({
|
|
1718
1740
|
message: 'Error in exportKey',
|
|
1719
1741
|
error: error,
|
|
1720
|
-
context: {
|
|
1742
|
+
context: _extends({
|
|
1721
1743
|
accountAddress,
|
|
1722
1744
|
chainName,
|
|
1723
1745
|
dynamicRequestId
|
|
1724
|
-
}
|
|
1746
|
+
}, this.getTraceContext(traceContext))
|
|
1725
1747
|
});
|
|
1726
1748
|
throw error;
|
|
1727
1749
|
}
|
|
@@ -2689,6 +2711,22 @@ class DynamicWalletClient {
|
|
|
2689
2711
|
}
|
|
2690
2712
|
this.apiClient.syncAuthToken(authToken);
|
|
2691
2713
|
}
|
|
2714
|
+
/**
|
|
2715
|
+
* Helper method to instrument with automatic properties inclusion
|
|
2716
|
+
*/ instrument(message, context) {
|
|
2717
|
+
const defaultContext = {
|
|
2718
|
+
environmentId: context.environmentId || this.environmentId
|
|
2719
|
+
};
|
|
2720
|
+
this.logger.debug(message, _extends({}, defaultContext, context));
|
|
2721
|
+
this.logger.instrument(message, _extends({}, defaultContext, context));
|
|
2722
|
+
}
|
|
2723
|
+
getTraceContext(traceContext) {
|
|
2724
|
+
const now = Date.now();
|
|
2725
|
+
return _extends({
|
|
2726
|
+
now,
|
|
2727
|
+
time: (traceContext == null ? void 0 : traceContext.startTime) ? now - traceContext.startTime : 0
|
|
2728
|
+
}, traceContext);
|
|
2729
|
+
}
|
|
2692
2730
|
constructor({ environmentId, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, authMode = core.AuthMode.HEADER, authToken = undefined, // Represents the version of the client SDK used by developer
|
|
2693
2731
|
sdkVersion, forwardMPCClient, baseClientKeysharesRelayApiUrl }){
|
|
2694
2732
|
this.userId = undefined;
|
package/index.esm.js
CHANGED
|
@@ -940,30 +940,32 @@ class DynamicWalletClient {
|
|
|
940
940
|
throw error;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
async initialize() {
|
|
943
|
+
async initialize(traceContext) {
|
|
944
944
|
if (this.initializePromise) {
|
|
945
945
|
return await this.initializePromise;
|
|
946
946
|
}
|
|
947
947
|
this.logger.debug('[DynamicWaasWalletClient] Initializing Dynamic Waas Wallet SDK');
|
|
948
|
-
this.initializePromise = this._initialize();
|
|
948
|
+
this.initializePromise = this._initialize(traceContext);
|
|
949
949
|
const result = await this.initializePromise;
|
|
950
950
|
this.logger.debug('[DynamicWaasWalletClient] Dynamic Waas Wallet SDK initialized');
|
|
951
951
|
return result;
|
|
952
952
|
}
|
|
953
953
|
/**
|
|
954
954
|
* Client initialization logic
|
|
955
|
-
*/ async _initialize() {
|
|
955
|
+
*/ async _initialize(traceContext) {
|
|
956
956
|
try {
|
|
957
957
|
const initializePromises = [
|
|
958
958
|
this.restoreWallets()
|
|
959
959
|
];
|
|
960
960
|
await Promise.all(initializePromises);
|
|
961
961
|
return {
|
|
962
|
-
error: null
|
|
962
|
+
error: null,
|
|
963
|
+
traceContext
|
|
963
964
|
};
|
|
964
965
|
} catch (error) {
|
|
965
966
|
return {
|
|
966
|
-
error
|
|
967
|
+
error,
|
|
968
|
+
traceContext
|
|
967
969
|
};
|
|
968
970
|
}
|
|
969
971
|
}
|
|
@@ -1042,7 +1044,7 @@ class DynamicWalletClient {
|
|
|
1042
1044
|
clientKeygenResults
|
|
1043
1045
|
};
|
|
1044
1046
|
}
|
|
1045
|
-
async keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
1047
|
+
async keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext }) {
|
|
1046
1048
|
const dynamicRequestId = v4();
|
|
1047
1049
|
try {
|
|
1048
1050
|
const clientKeygenInitResults = await this.clientInitializeKeyGen({
|
|
@@ -1050,11 +1052,12 @@ class DynamicWalletClient {
|
|
|
1050
1052
|
thresholdSignatureScheme
|
|
1051
1053
|
});
|
|
1052
1054
|
const clientKeygenIds = clientKeygenInitResults.map((result)=>result.keygenId);
|
|
1053
|
-
this.
|
|
1055
|
+
this.instrument('[DynamicWaasWalletClient] Initialized client key generation', _extends({
|
|
1054
1056
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1055
1057
|
chainName,
|
|
1056
|
-
thresholdSignatureScheme
|
|
1057
|
-
|
|
1058
|
+
thresholdSignatureScheme,
|
|
1059
|
+
key: 'keyGen'
|
|
1060
|
+
}, this.getTraceContext(traceContext)));
|
|
1058
1061
|
const { roomId, serverKeygenIds } = await this.serverInitializeKeyGen({
|
|
1059
1062
|
chainName,
|
|
1060
1063
|
clientKeygenIds,
|
|
@@ -1062,12 +1065,14 @@ class DynamicWalletClient {
|
|
|
1062
1065
|
thresholdSignatureScheme,
|
|
1063
1066
|
onCeremonyComplete
|
|
1064
1067
|
});
|
|
1065
|
-
this.
|
|
1068
|
+
this.instrument('[DynamicWaasWalletClient] Server key generation initialized', _extends({
|
|
1066
1069
|
roomId,
|
|
1067
1070
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1068
1071
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1069
|
-
chainName
|
|
1070
|
-
|
|
1072
|
+
chainName,
|
|
1073
|
+
key: 'keyGen',
|
|
1074
|
+
operation: 'serverKeyGen'
|
|
1075
|
+
}, this.getTraceContext(traceContext)));
|
|
1071
1076
|
const { rawPublicKey, clientKeygenResults: clientKeyShares } = await this.clientKeyGen({
|
|
1072
1077
|
chainName,
|
|
1073
1078
|
roomId,
|
|
@@ -1075,15 +1080,17 @@ class DynamicWalletClient {
|
|
|
1075
1080
|
clientKeygenInitResults,
|
|
1076
1081
|
thresholdSignatureScheme
|
|
1077
1082
|
});
|
|
1078
|
-
this.
|
|
1083
|
+
this.instrument('[DynamicWaasWalletClient] Client key generation completed', _extends({
|
|
1079
1084
|
roomId,
|
|
1080
1085
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1081
1086
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1082
1087
|
chainName,
|
|
1083
1088
|
thresholdSignatureScheme,
|
|
1084
1089
|
rawPublicKey,
|
|
1085
|
-
clientKeySharesCount: clientKeyShares.length
|
|
1086
|
-
|
|
1090
|
+
clientKeySharesCount: clientKeyShares.length,
|
|
1091
|
+
key: 'keyGen',
|
|
1092
|
+
operation: 'clientKeyGen'
|
|
1093
|
+
}, this.getTraceContext(traceContext)));
|
|
1087
1094
|
return {
|
|
1088
1095
|
rawPublicKey,
|
|
1089
1096
|
clientKeyShares
|
|
@@ -1092,16 +1099,16 @@ class DynamicWalletClient {
|
|
|
1092
1099
|
logError({
|
|
1093
1100
|
message: 'Error in keyGen',
|
|
1094
1101
|
error: error,
|
|
1095
|
-
context: {
|
|
1102
|
+
context: _extends({
|
|
1096
1103
|
chainName,
|
|
1097
1104
|
thresholdSignatureScheme,
|
|
1098
1105
|
dynamicRequestId
|
|
1099
|
-
}
|
|
1106
|
+
}, this.getTraceContext(traceContext))
|
|
1100
1107
|
});
|
|
1101
1108
|
throw error;
|
|
1102
1109
|
}
|
|
1103
1110
|
}
|
|
1104
|
-
async importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
1111
|
+
async importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext }) {
|
|
1105
1112
|
const dynamicRequestId = v4();
|
|
1106
1113
|
try {
|
|
1107
1114
|
const mpcSigner = getMPCSigner({
|
|
@@ -1113,11 +1120,13 @@ class DynamicWalletClient {
|
|
|
1113
1120
|
thresholdSignatureScheme
|
|
1114
1121
|
});
|
|
1115
1122
|
const clientKeygenIds = clientKeygenInitResults.map((result)=>result.keygenId);
|
|
1116
|
-
this.
|
|
1123
|
+
this.instrument('[DynamicWaasWalletClient] Client key generation initialized', _extends({
|
|
1117
1124
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1118
1125
|
chainName,
|
|
1119
|
-
thresholdSignatureScheme
|
|
1120
|
-
|
|
1126
|
+
thresholdSignatureScheme,
|
|
1127
|
+
key: 'importRawPrivateKey',
|
|
1128
|
+
operation: 'clientKeyGen'
|
|
1129
|
+
}, this.getTraceContext(traceContext)));
|
|
1121
1130
|
const { roomId, serverKeygenIds } = await this.apiClient.importPrivateKey({
|
|
1122
1131
|
chainName,
|
|
1123
1132
|
clientKeygenIds,
|
|
@@ -1126,12 +1135,14 @@ class DynamicWalletClient {
|
|
|
1126
1135
|
onError,
|
|
1127
1136
|
onCeremonyComplete
|
|
1128
1137
|
});
|
|
1129
|
-
this.
|
|
1138
|
+
this.instrument('[DynamicWaasWalletClient] Server key generation initialized', _extends({
|
|
1130
1139
|
roomId,
|
|
1131
1140
|
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1132
1141
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1133
|
-
chainName
|
|
1134
|
-
|
|
1142
|
+
chainName,
|
|
1143
|
+
key: 'importRawPrivateKey',
|
|
1144
|
+
operation: 'serverImportPrivateKey'
|
|
1145
|
+
}, this.getTraceContext(traceContext)));
|
|
1135
1146
|
const { threshold } = getTSSConfig(thresholdSignatureScheme);
|
|
1136
1147
|
const clientKeygenResults = await Promise.all(clientKeygenInitResults.map(async (currentInit, index)=>{
|
|
1137
1148
|
const otherClientKeygenIds = clientKeygenInitResults.filter((init)=>init.keygenId !== currentInit.keygenId).map((init)=>init.keygenId);
|
|
@@ -1156,14 +1167,16 @@ class DynamicWalletClient {
|
|
|
1156
1167
|
keyShare: clientKeygenResult,
|
|
1157
1168
|
derivationPath: undefined
|
|
1158
1169
|
});
|
|
1159
|
-
this.
|
|
1170
|
+
this.instrument('[DynamicWaasWalletClient] Completed import of raw private key', _extends({
|
|
1160
1171
|
rawPublicKey,
|
|
1161
1172
|
chainName,
|
|
1162
1173
|
thresholdSignatureScheme,
|
|
1163
1174
|
roomId,
|
|
1164
1175
|
serverKeygenIds: serverKeygenIds.join(', '),
|
|
1165
|
-
clientKeygenIds: clientKeygenIds.join(', ')
|
|
1166
|
-
|
|
1176
|
+
clientKeygenIds: clientKeygenIds.join(', '),
|
|
1177
|
+
key: 'importRawPrivateKey',
|
|
1178
|
+
operation: 'importRawPrivateKey'
|
|
1179
|
+
}, this.getTraceContext(traceContext)));
|
|
1167
1180
|
return {
|
|
1168
1181
|
rawPublicKey,
|
|
1169
1182
|
clientKeyShares: clientKeygenResults
|
|
@@ -1172,16 +1185,16 @@ class DynamicWalletClient {
|
|
|
1172
1185
|
logError({
|
|
1173
1186
|
message: 'Error in importRawPrivateKey',
|
|
1174
1187
|
error: error,
|
|
1175
|
-
context: {
|
|
1188
|
+
context: _extends({
|
|
1176
1189
|
chainName,
|
|
1177
1190
|
thresholdSignatureScheme,
|
|
1178
1191
|
dynamicRequestId
|
|
1179
|
-
}
|
|
1192
|
+
}, this.getTraceContext(traceContext))
|
|
1180
1193
|
});
|
|
1181
1194
|
throw error;
|
|
1182
1195
|
}
|
|
1183
1196
|
}
|
|
1184
|
-
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId }) {
|
|
1197
|
+
async serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, traceContext }) {
|
|
1185
1198
|
// Create the room and sign the message
|
|
1186
1199
|
if (typeof message !== 'string') {
|
|
1187
1200
|
message = `0x${Buffer.from(message).toString('hex')}`;
|
|
@@ -1194,11 +1207,12 @@ class DynamicWalletClient {
|
|
|
1194
1207
|
mfaToken,
|
|
1195
1208
|
context: context ? JSON.parse(JSON.stringify(context, (_key, value)=>typeof value === 'bigint' ? value.toString() : value)) : undefined,
|
|
1196
1209
|
onError,
|
|
1197
|
-
forwardMPCClientEnabled: this.forwardMPCEnabled
|
|
1210
|
+
forwardMPCClientEnabled: this.forwardMPCEnabled,
|
|
1211
|
+
traceContext
|
|
1198
1212
|
});
|
|
1199
1213
|
return data;
|
|
1200
1214
|
}
|
|
1201
|
-
async forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted }) {
|
|
1215
|
+
async forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted, traceContext }) {
|
|
1202
1216
|
try {
|
|
1203
1217
|
if (!this.apiClient.forwardMPCClient.connected) {
|
|
1204
1218
|
await this.initializeForwardMPCClient();
|
|
@@ -1208,7 +1222,7 @@ class DynamicWalletClient {
|
|
|
1208
1222
|
isFormatted,
|
|
1209
1223
|
chainName
|
|
1210
1224
|
});
|
|
1211
|
-
this.logger.info('Forward MPC enabled, signing message with forward MPC');
|
|
1225
|
+
this.logger.info('Forward MPC enabled, signing message with forward MPC', this.getTraceContext(traceContext));
|
|
1212
1226
|
const signature = await this.apiClient.forwardMPCClient.signMessage({
|
|
1213
1227
|
keyshare: keyShare,
|
|
1214
1228
|
message: chainName === 'SVM' ? formattedMessage : messageForForwardMPC,
|
|
@@ -1239,20 +1253,20 @@ class DynamicWalletClient {
|
|
|
1239
1253
|
throw error;
|
|
1240
1254
|
}
|
|
1241
1255
|
}
|
|
1242
|
-
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId }) {
|
|
1256
|
+
async clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, traceContext }) {
|
|
1243
1257
|
try {
|
|
1244
1258
|
const mpcSigner = getMPCSigner({
|
|
1245
1259
|
chainName,
|
|
1246
1260
|
baseRelayUrl: this.baseMPCRelayApiUrl
|
|
1247
1261
|
});
|
|
1248
1262
|
const formattedMessage = isFormatted ? new MessageHash(message) : formatMessage(chainName, message);
|
|
1249
|
-
this.logger.debug('[DynamicWaasWalletClient] Starting client sign', {
|
|
1263
|
+
this.logger.debug('[DynamicWaasWalletClient] Starting client sign', _extends({
|
|
1250
1264
|
chainName,
|
|
1251
1265
|
message,
|
|
1252
1266
|
roomId,
|
|
1253
1267
|
derivationPath,
|
|
1254
1268
|
isFormatted
|
|
1255
|
-
});
|
|
1269
|
+
}, this.getTraceContext(traceContext)));
|
|
1256
1270
|
if (this.forwardMPCEnabled) {
|
|
1257
1271
|
return this.forwardMPCClientSign({
|
|
1258
1272
|
chainName,
|
|
@@ -1262,7 +1276,8 @@ class DynamicWalletClient {
|
|
|
1262
1276
|
derivationPath,
|
|
1263
1277
|
formattedMessage,
|
|
1264
1278
|
dynamicRequestId,
|
|
1265
|
-
isFormatted
|
|
1279
|
+
isFormatted,
|
|
1280
|
+
traceContext
|
|
1266
1281
|
});
|
|
1267
1282
|
}
|
|
1268
1283
|
const signature = await mpcSigner.sign(roomId, keyShare, formattedMessage, derivationPath);
|
|
@@ -1271,19 +1286,19 @@ class DynamicWalletClient {
|
|
|
1271
1286
|
logError({
|
|
1272
1287
|
message: 'Error in clientSign',
|
|
1273
1288
|
error: error,
|
|
1274
|
-
context: {
|
|
1289
|
+
context: _extends({
|
|
1275
1290
|
chainName,
|
|
1276
1291
|
roomId,
|
|
1277
1292
|
derivationPath,
|
|
1278
1293
|
isFormatted,
|
|
1279
1294
|
dynamicRequestId
|
|
1280
|
-
}
|
|
1295
|
+
}, this.getTraceContext(traceContext))
|
|
1281
1296
|
});
|
|
1282
1297
|
throw error;
|
|
1283
1298
|
}
|
|
1284
1299
|
}
|
|
1285
1300
|
//todo: need to modify with imported flag
|
|
1286
|
-
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError }) {
|
|
1301
|
+
async sign({ accountAddress, message, chainName, password = undefined, isFormatted = false, signedSessionId, mfaToken, context, onError, traceContext }) {
|
|
1287
1302
|
const dynamicRequestId = v4();
|
|
1288
1303
|
try {
|
|
1289
1304
|
await this.verifyPassword({
|
|
@@ -1306,15 +1321,18 @@ class DynamicWalletClient {
|
|
|
1306
1321
|
mfaToken,
|
|
1307
1322
|
context,
|
|
1308
1323
|
onError,
|
|
1309
|
-
dynamicRequestId
|
|
1324
|
+
dynamicRequestId,
|
|
1325
|
+
traceContext
|
|
1310
1326
|
});
|
|
1311
|
-
this.
|
|
1327
|
+
this.instrument('[DynamicWaasWalletClient] Server sign completed', _extends({
|
|
1312
1328
|
message,
|
|
1313
1329
|
accountAddress,
|
|
1314
1330
|
walletId: wallet.walletId,
|
|
1315
1331
|
roomId: data.roomId,
|
|
1316
|
-
dynamicRequestId
|
|
1317
|
-
|
|
1332
|
+
dynamicRequestId,
|
|
1333
|
+
key: 'sign',
|
|
1334
|
+
operation: 'serverSign'
|
|
1335
|
+
}, this.getTraceContext(traceContext)));
|
|
1318
1336
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1319
1337
|
// Perform the client sign and return the signature
|
|
1320
1338
|
const clientKeyShares = await this.getClientKeySharesFromLocalStorage({
|
|
@@ -1327,31 +1345,35 @@ class DynamicWalletClient {
|
|
|
1327
1345
|
keyShare: clientKeyShares[0],
|
|
1328
1346
|
derivationPath,
|
|
1329
1347
|
isFormatted,
|
|
1330
|
-
dynamicRequestId
|
|
1348
|
+
dynamicRequestId,
|
|
1349
|
+
traceContext
|
|
1331
1350
|
});
|
|
1332
|
-
this.
|
|
1351
|
+
this.instrument('[DynamicWaasWalletClient] Client sign completed', _extends({
|
|
1352
|
+
accountAddress,
|
|
1333
1353
|
chainName,
|
|
1334
1354
|
message,
|
|
1335
1355
|
roomId: data.roomId,
|
|
1336
1356
|
derivationPath,
|
|
1337
|
-
isFormatted
|
|
1338
|
-
|
|
1357
|
+
isFormatted,
|
|
1358
|
+
key: 'sign',
|
|
1359
|
+
operation: 'clientSign'
|
|
1360
|
+
}, this.getTraceContext(traceContext)));
|
|
1339
1361
|
return signature;
|
|
1340
1362
|
} catch (error) {
|
|
1341
1363
|
logError({
|
|
1342
1364
|
message: 'Error in sign',
|
|
1343
1365
|
error: error,
|
|
1344
|
-
context: {
|
|
1366
|
+
context: _extends({
|
|
1345
1367
|
accountAddress,
|
|
1346
1368
|
chainName,
|
|
1347
1369
|
isFormatted: isFormatted ? 'true' : 'false',
|
|
1348
1370
|
dynamicRequestId
|
|
1349
|
-
}
|
|
1371
|
+
}, this.getTraceContext(traceContext))
|
|
1350
1372
|
});
|
|
1351
1373
|
throw error;
|
|
1352
1374
|
}
|
|
1353
1375
|
}
|
|
1354
|
-
async refreshWalletAccountShares({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken }) {
|
|
1376
|
+
async refreshWalletAccountShares({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken, traceContext }) {
|
|
1355
1377
|
const dynamicRequestId = v4();
|
|
1356
1378
|
try {
|
|
1357
1379
|
await this.verifyPassword({
|
|
@@ -1395,11 +1417,11 @@ class DynamicWalletClient {
|
|
|
1395
1417
|
logError({
|
|
1396
1418
|
message: 'Error in refreshWalletAccountShares',
|
|
1397
1419
|
error: error,
|
|
1398
|
-
context: {
|
|
1420
|
+
context: _extends({
|
|
1399
1421
|
accountAddress,
|
|
1400
1422
|
chainName,
|
|
1401
1423
|
dynamicRequestId
|
|
1402
|
-
}
|
|
1424
|
+
}, this.getTraceContext(traceContext))
|
|
1403
1425
|
});
|
|
1404
1426
|
throw error;
|
|
1405
1427
|
}
|
|
@@ -1658,7 +1680,7 @@ class DynamicWalletClient {
|
|
|
1658
1680
|
operationName: 'revokeDelegation'
|
|
1659
1681
|
});
|
|
1660
1682
|
}
|
|
1661
|
-
async exportKey({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken }) {
|
|
1683
|
+
async exportKey({ accountAddress, chainName, password = undefined, signedSessionId, mfaToken, traceContext }) {
|
|
1662
1684
|
const dynamicRequestId = v4();
|
|
1663
1685
|
try {
|
|
1664
1686
|
const wallet = await this.getWallet({
|
|
@@ -1684,24 +1706,24 @@ class DynamicWalletClient {
|
|
|
1684
1706
|
dynamicRequestId,
|
|
1685
1707
|
mfaToken
|
|
1686
1708
|
});
|
|
1687
|
-
this.logger.debug('[DynamicWaasWalletClient] Starting export of private key', {
|
|
1709
|
+
this.logger.debug('[DynamicWaasWalletClient] Starting export of private key', _extends({
|
|
1688
1710
|
accountAddress,
|
|
1689
1711
|
chainName,
|
|
1690
1712
|
walletId: wallet.walletId,
|
|
1691
1713
|
exportId,
|
|
1692
1714
|
roomId: data.roomId
|
|
1693
|
-
});
|
|
1715
|
+
}, this.getTraceContext(traceContext)));
|
|
1694
1716
|
const keyExportRaw = await mpcSigner.exportFullPrivateKey(data.roomId, clientKeyShares[0], exportId);
|
|
1695
1717
|
if (!keyExportRaw) {
|
|
1696
1718
|
throw new Error('Error exporting private key');
|
|
1697
1719
|
}
|
|
1698
|
-
this.logger.debug('[DynamicWaasWalletClient] Completed export of private key', {
|
|
1720
|
+
this.logger.debug('[DynamicWaasWalletClient] Completed export of private key', _extends({
|
|
1699
1721
|
accountAddress,
|
|
1700
1722
|
chainName,
|
|
1701
1723
|
walletId: wallet.walletId,
|
|
1702
1724
|
exportId,
|
|
1703
1725
|
roomId: data.roomId
|
|
1704
|
-
});
|
|
1726
|
+
}, this.getTraceContext(traceContext)));
|
|
1705
1727
|
const derivationPath = wallet.derivationPath && wallet.derivationPath != '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
|
|
1706
1728
|
let derivedPrivateKey;
|
|
1707
1729
|
if (mpcSigner instanceof Ecdsa) {
|
|
@@ -1718,11 +1740,11 @@ class DynamicWalletClient {
|
|
|
1718
1740
|
logError({
|
|
1719
1741
|
message: 'Error in exportKey',
|
|
1720
1742
|
error: error,
|
|
1721
|
-
context: {
|
|
1743
|
+
context: _extends({
|
|
1722
1744
|
accountAddress,
|
|
1723
1745
|
chainName,
|
|
1724
1746
|
dynamicRequestId
|
|
1725
|
-
}
|
|
1747
|
+
}, this.getTraceContext(traceContext))
|
|
1726
1748
|
});
|
|
1727
1749
|
throw error;
|
|
1728
1750
|
}
|
|
@@ -2690,6 +2712,22 @@ class DynamicWalletClient {
|
|
|
2690
2712
|
}
|
|
2691
2713
|
this.apiClient.syncAuthToken(authToken);
|
|
2692
2714
|
}
|
|
2715
|
+
/**
|
|
2716
|
+
* Helper method to instrument with automatic properties inclusion
|
|
2717
|
+
*/ instrument(message, context) {
|
|
2718
|
+
const defaultContext = {
|
|
2719
|
+
environmentId: context.environmentId || this.environmentId
|
|
2720
|
+
};
|
|
2721
|
+
this.logger.debug(message, _extends({}, defaultContext, context));
|
|
2722
|
+
this.logger.instrument(message, _extends({}, defaultContext, context));
|
|
2723
|
+
}
|
|
2724
|
+
getTraceContext(traceContext) {
|
|
2725
|
+
const now = Date.now();
|
|
2726
|
+
return _extends({
|
|
2727
|
+
now,
|
|
2728
|
+
time: (traceContext == null ? void 0 : traceContext.startTime) ? now - traceContext.startTime : 0
|
|
2729
|
+
}, traceContext);
|
|
2730
|
+
}
|
|
2693
2731
|
constructor({ environmentId, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, authMode = AuthMode.HEADER, authToken = undefined, // Represents the version of the client SDK used by developer
|
|
2694
2732
|
sdkVersion, forwardMPCClient, baseClientKeysharesRelayApiUrl }){
|
|
2695
2733
|
this.userId = undefined;
|
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.217",
|
|
4
4
|
"license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.217",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "^0.0.818",
|
|
10
10
|
"argon2id": "1.0.1",
|
package/src/client.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BIP340KeygenResult, EcdsaKeygenResult, type EcdsaPublicKey, EcdsaSignature, ExportableEd25519KeygenResult, MessageHash } from '#internal/web';
|
|
2
|
-
import { AuthMode, BackupLocation, type BackupLocationWithExternalKeyShareId, DynamicApiClient, type DynamicWalletClientProps, type FeatureFlags, type InitializeResult, type KeyShareBackupInfo, ThresholdSignatureScheme, WalletOperation } from '@dynamic-labs-wallet/core';
|
|
2
|
+
import { AuthMode, BackupLocation, type BackupLocationWithExternalKeyShareId, DynamicApiClient, type DynamicWalletClientProps, type FeatureFlags, type InitializeResult, type KeyShareBackupInfo, ThresholdSignatureScheme, type TraceContext, WalletOperation } from '@dynamic-labs-wallet/core';
|
|
3
|
+
import { type InstrumentOptions } from '@dynamic-labs/logger';
|
|
3
4
|
import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
|
|
4
5
|
import type { ClientInitKeygenResult, ClientKeyShare } from './mpc/types.js';
|
|
5
6
|
import { type SupportedStorage } from './services/localStorage.js';
|
|
@@ -37,11 +38,11 @@ export declare class DynamicWalletClient {
|
|
|
37
38
|
*/
|
|
38
39
|
private requiresSignedSessionId;
|
|
39
40
|
initLoggerContext(authToken: string): Promise<void>;
|
|
40
|
-
initialize(): Promise<InitializeResult>;
|
|
41
|
+
initialize(traceContext?: TraceContext): Promise<InitializeResult>;
|
|
41
42
|
/**
|
|
42
43
|
* Client initialization logic
|
|
43
44
|
*/
|
|
44
|
-
protected _initialize(): Promise<InitializeResult>;
|
|
45
|
+
protected _initialize(traceContext?: TraceContext): Promise<InitializeResult>;
|
|
45
46
|
serverInitializeKeyGen({ chainName, clientKeygenIds, dynamicRequestId, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
46
47
|
chainName: string;
|
|
47
48
|
clientKeygenIds: string[];
|
|
@@ -69,26 +70,28 @@ export declare class DynamicWalletClient {
|
|
|
69
70
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
70
71
|
clientKeygenResults: ClientKeyShare[];
|
|
71
72
|
}>;
|
|
72
|
-
keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
73
|
+
keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext, }: {
|
|
73
74
|
chainName: string;
|
|
74
75
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
75
76
|
onError?: (error: Error) => void;
|
|
76
77
|
onCeremonyComplete?: (accountAddress: string, walletId: string) => void;
|
|
78
|
+
traceContext?: TraceContext;
|
|
77
79
|
}): Promise<{
|
|
78
80
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
79
81
|
clientKeyShares: ClientKeyShare[];
|
|
80
82
|
}>;
|
|
81
|
-
importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
83
|
+
importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext, }: {
|
|
82
84
|
chainName: string;
|
|
83
85
|
privateKey: string;
|
|
84
86
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
85
87
|
onError?: (error: Error) => void;
|
|
86
88
|
onCeremonyComplete?: (accountAddress: string, walletId: string) => void;
|
|
89
|
+
traceContext?: TraceContext;
|
|
87
90
|
}): Promise<{
|
|
88
91
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
89
92
|
clientKeyShares: ClientKeyShare[];
|
|
90
93
|
}>;
|
|
91
|
-
serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, }: {
|
|
94
|
+
serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, traceContext, }: {
|
|
92
95
|
walletId: string;
|
|
93
96
|
message: string | Uint8Array;
|
|
94
97
|
dynamicRequestId: string;
|
|
@@ -96,8 +99,9 @@ export declare class DynamicWalletClient {
|
|
|
96
99
|
mfaToken?: string;
|
|
97
100
|
context?: SignMessageContext;
|
|
98
101
|
onError?: (error: Error) => void;
|
|
102
|
+
traceContext?: TraceContext;
|
|
99
103
|
}): Promise<import("@dynamic-labs-wallet/core").OpenRoomResponse>;
|
|
100
|
-
forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted, }: {
|
|
104
|
+
forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted, traceContext, }: {
|
|
101
105
|
chainName: string;
|
|
102
106
|
message: string | Uint8Array;
|
|
103
107
|
roomId: string;
|
|
@@ -106,8 +110,9 @@ export declare class DynamicWalletClient {
|
|
|
106
110
|
formattedMessage: string | Uint8Array | MessageHash;
|
|
107
111
|
dynamicRequestId: string;
|
|
108
112
|
isFormatted?: boolean;
|
|
113
|
+
traceContext?: TraceContext;
|
|
109
114
|
}): Promise<Uint8Array | EcdsaSignature>;
|
|
110
|
-
clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, }: {
|
|
115
|
+
clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, traceContext, }: {
|
|
111
116
|
chainName: string;
|
|
112
117
|
message: string | Uint8Array;
|
|
113
118
|
roomId: string;
|
|
@@ -115,8 +120,9 @@ export declare class DynamicWalletClient {
|
|
|
115
120
|
keyShare: ClientKeyShare;
|
|
116
121
|
derivationPath: Uint32Array | undefined;
|
|
117
122
|
isFormatted?: boolean;
|
|
123
|
+
traceContext?: TraceContext;
|
|
118
124
|
}): Promise<Uint8Array | EcdsaSignature>;
|
|
119
|
-
sign({ accountAddress, message, chainName, password, isFormatted, signedSessionId, mfaToken, context, onError, }: {
|
|
125
|
+
sign({ accountAddress, message, chainName, password, isFormatted, signedSessionId, mfaToken, context, onError, traceContext, }: {
|
|
120
126
|
accountAddress: string;
|
|
121
127
|
message: string | Uint8Array;
|
|
122
128
|
chainName: string;
|
|
@@ -126,13 +132,15 @@ export declare class DynamicWalletClient {
|
|
|
126
132
|
mfaToken?: string;
|
|
127
133
|
context?: SignMessageContext;
|
|
128
134
|
onError?: (error: Error) => void;
|
|
135
|
+
traceContext?: TraceContext;
|
|
129
136
|
}): Promise<Uint8Array | EcdsaSignature>;
|
|
130
|
-
refreshWalletAccountShares({ accountAddress, chainName, password, signedSessionId, mfaToken, }: {
|
|
137
|
+
refreshWalletAccountShares({ accountAddress, chainName, password, signedSessionId, mfaToken, traceContext, }: {
|
|
131
138
|
accountAddress: string;
|
|
132
139
|
chainName: string;
|
|
133
140
|
password?: string;
|
|
134
141
|
signedSessionId: string;
|
|
135
142
|
mfaToken?: string;
|
|
143
|
+
traceContext?: TraceContext;
|
|
136
144
|
}): Promise<void>;
|
|
137
145
|
getExportId({ chainName, clientKeyShare, }: {
|
|
138
146
|
chainName: string;
|
|
@@ -189,12 +197,13 @@ export declare class DynamicWalletClient {
|
|
|
189
197
|
signedSessionId: string;
|
|
190
198
|
mfaToken?: string;
|
|
191
199
|
}): Promise<void>;
|
|
192
|
-
exportKey({ accountAddress, chainName, password, signedSessionId, mfaToken, }: {
|
|
200
|
+
exportKey({ accountAddress, chainName, password, signedSessionId, mfaToken, traceContext, }: {
|
|
193
201
|
accountAddress: string;
|
|
194
202
|
chainName: string;
|
|
195
203
|
password?: string;
|
|
196
204
|
signedSessionId: string;
|
|
197
205
|
mfaToken?: string;
|
|
206
|
+
traceContext?: TraceContext;
|
|
198
207
|
}): Promise<{
|
|
199
208
|
derivedPrivateKey: string | undefined;
|
|
200
209
|
}>;
|
|
@@ -436,5 +445,13 @@ export declare class DynamicWalletClient {
|
|
|
436
445
|
* @param authToken - auth token to sync
|
|
437
446
|
*/
|
|
438
447
|
syncAuthToken(authToken: string): void;
|
|
448
|
+
/**
|
|
449
|
+
* Helper method to instrument with automatic properties inclusion
|
|
450
|
+
*/
|
|
451
|
+
instrument(message: string, context: InstrumentOptions & Record<string, any>): void;
|
|
452
|
+
getTraceContext(traceContext?: TraceContext): TraceContext & {
|
|
453
|
+
now: number;
|
|
454
|
+
time: number;
|
|
455
|
+
};
|
|
439
456
|
}
|
|
440
457
|
//# sourceMappingURL=client.d.ts.map
|
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,EAEL,kBAAkB,EAElB,iBAAiB,EACjB,KAAK,cAAc,EACnB,cAAc,EAEd,6BAA6B,EAC7B,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,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