@dynamic-labs-wallet/browser 0.0.35 → 0.0.37
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 +26 -20
- package/index.esm.js +26 -20
- package/package.json +2 -2
- package/src/client.d.ts +6 -6
- package/src/client.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -773,12 +773,7 @@ class DynamicWalletClient {
|
|
|
773
773
|
const serializedEncryptedKeyShare = Buffer.from(JSON.stringify(encryptedKeyShare)).toString('base64');
|
|
774
774
|
return serializedEncryptedKeyShare;
|
|
775
775
|
}
|
|
776
|
-
async storeEncryptedBackupByWallet({ accountAddress, password = undefined
|
|
777
|
-
await this.getWallet({
|
|
778
|
-
accountAddress,
|
|
779
|
-
password,
|
|
780
|
-
walletOperation
|
|
781
|
-
});
|
|
776
|
+
async storeEncryptedBackupByWallet({ accountAddress, password = undefined }) {
|
|
782
777
|
const encryptedKeyShares = await Promise.all(this.walletMap[accountAddress].clientKeyShares.map((keyShare)=>this.encryptKeyShare({
|
|
783
778
|
keyShare,
|
|
784
779
|
password
|
|
@@ -786,7 +781,7 @@ class DynamicWalletClient {
|
|
|
786
781
|
const data = await this.apiClient.storeEncryptedBackupByWallet({
|
|
787
782
|
walletId: this.walletMap[accountAddress].walletId,
|
|
788
783
|
encryptedKeyShares,
|
|
789
|
-
passwordEncrypted: Boolean(password)
|
|
784
|
+
passwordEncrypted: Boolean(password) && password !== this.environmentId
|
|
790
785
|
});
|
|
791
786
|
this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress], {
|
|
792
787
|
clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
|
|
@@ -846,7 +841,7 @@ class DynamicWalletClient {
|
|
|
846
841
|
requiredShareCount
|
|
847
842
|
};
|
|
848
843
|
}
|
|
849
|
-
async recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount = undefined }) {
|
|
844
|
+
async recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount = undefined, storeRecoveredShares = true }) {
|
|
850
845
|
const wallet = this.walletMap[accountAddress];
|
|
851
846
|
this.logger.debug(`recoverEncryptedBackupByWallet wallet: ${walletOperation}`, wallet);
|
|
852
847
|
const { shares } = this.recoverStrategy({
|
|
@@ -865,10 +860,12 @@ class DynamicWalletClient {
|
|
|
865
860
|
keyShare: keyShare.encryptedAccountCredential,
|
|
866
861
|
password: password != null ? password : this.environmentId
|
|
867
862
|
})));
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
863
|
+
if (storeRecoveredShares) {
|
|
864
|
+
this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress], {
|
|
865
|
+
clientKeyShares: mergeUniqueKeyShares(this.walletMap[accountAddress].clientKeyShares || [], decryptedKeyShares)
|
|
866
|
+
});
|
|
867
|
+
await this.storage.setItem(this.storageKey, JSON.stringify(this.walletMap));
|
|
868
|
+
}
|
|
872
869
|
return decryptedKeyShares;
|
|
873
870
|
}
|
|
874
871
|
async restoreWallets() {
|
|
@@ -1068,6 +1065,7 @@ class DynamicWalletClient {
|
|
|
1068
1065
|
let keyshareCheck = false;
|
|
1069
1066
|
let walletCheck = false;
|
|
1070
1067
|
let thresholdSignatureSchemeCheck = false;
|
|
1068
|
+
let derivationPathCheck = false;
|
|
1071
1069
|
// check if wallet exists
|
|
1072
1070
|
const existingWallet = this.walletMap[accountAddress];
|
|
1073
1071
|
if (existingWallet) {
|
|
@@ -1077,6 +1075,10 @@ class DynamicWalletClient {
|
|
|
1077
1075
|
if (existingWallet == null ? void 0 : existingWallet.thresholdSignatureScheme) {
|
|
1078
1076
|
thresholdSignatureSchemeCheck = true;
|
|
1079
1077
|
}
|
|
1078
|
+
// check if derivation path exists
|
|
1079
|
+
if ((existingWallet == null ? void 0 : existingWallet.derivationPath) || (existingWallet == null ? void 0 : existingWallet.derivationPath) === "") {
|
|
1080
|
+
derivationPathCheck = true;
|
|
1081
|
+
}
|
|
1080
1082
|
// check if wallet already exists with sufficient keyshares
|
|
1081
1083
|
if (existingWallet) {
|
|
1082
1084
|
var _existingWallet_clientKeyShares;
|
|
@@ -1093,12 +1095,12 @@ class DynamicWalletClient {
|
|
|
1093
1095
|
keyshareCheck = true;
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
return walletCheck && thresholdSignatureSchemeCheck && keyshareCheck;
|
|
1098
|
+
return walletCheck && thresholdSignatureSchemeCheck && keyshareCheck && derivationPathCheck;
|
|
1097
1099
|
}
|
|
1098
1100
|
/**
|
|
1099
|
-
* verifyPassword attempts to recover and decrypt
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1101
|
+
* verifyPassword attempts to recover and decrypt a single client key share using the provided password.
|
|
1102
|
+
* If successful, the key share is encrypted with the new password. This method solely performs the recovery
|
|
1103
|
+
* and decryption without storing the restored key shares. If unsuccessful, it throws an error.
|
|
1102
1104
|
*/ async verifyPassword({ accountAddress, password = undefined, walletOperation = WalletOperation.NO_OPERATION }) {
|
|
1103
1105
|
await this.getWallet({
|
|
1104
1106
|
accountAddress,
|
|
@@ -1127,7 +1129,8 @@ class DynamicWalletClient {
|
|
|
1127
1129
|
accountAddress,
|
|
1128
1130
|
password,
|
|
1129
1131
|
walletOperation,
|
|
1130
|
-
shareCount: 1
|
|
1132
|
+
shareCount: 1,
|
|
1133
|
+
storeRecoveredShares: false
|
|
1131
1134
|
});
|
|
1132
1135
|
} catch (error) {
|
|
1133
1136
|
this.logger.error('Error in verifying password', error);
|
|
@@ -1240,7 +1243,8 @@ class DynamicWalletClient {
|
|
|
1240
1243
|
const user = await this.apiClient.getUser();
|
|
1241
1244
|
const waasWallets = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.filter((vc)=>vc.walletName === 'dynamicwaas');
|
|
1242
1245
|
const wallets = waasWallets.map((vc)=>{
|
|
1243
|
-
var _vc_walletProperties;
|
|
1246
|
+
var _this_walletMap_vc_address, _this_walletMap_vc_address1, _vc_walletProperties;
|
|
1247
|
+
var _this_walletMap_vc_address_derivationPath;
|
|
1244
1248
|
return {
|
|
1245
1249
|
walletId: vc.id,
|
|
1246
1250
|
chainName: vc.chain,
|
|
@@ -1248,17 +1252,19 @@ class DynamicWalletClient {
|
|
|
1248
1252
|
clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
|
|
1249
1253
|
walletProperties: vc.walletProperties || {}
|
|
1250
1254
|
}),
|
|
1255
|
+
clientKeyShares: ((_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.clientKeyShares) || [],
|
|
1256
|
+
derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address1 = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address1.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
|
|
1251
1257
|
thresholdSignatureScheme: (_vc_walletProperties = vc.walletProperties) == null ? void 0 : _vc_walletProperties.thresholdSignatureScheme
|
|
1252
1258
|
};
|
|
1253
1259
|
});
|
|
1254
1260
|
this.walletMap = wallets.reduce((acc, wallet)=>{
|
|
1255
|
-
var
|
|
1261
|
+
var _acc_accountAddress;
|
|
1256
1262
|
const accountAddress = wallet.accountAddress;
|
|
1257
1263
|
acc[wallet.accountAddress] = {
|
|
1258
1264
|
walletId: wallet.walletId,
|
|
1259
1265
|
chainName: wallet.chainName,
|
|
1260
1266
|
accountAddress: wallet.accountAddress,
|
|
1261
|
-
clientKeyShares:
|
|
1267
|
+
clientKeyShares: wallet.clientKeyShares || [],
|
|
1262
1268
|
clientKeySharesBackupInfo: wallet.clientKeySharesBackupInfo,
|
|
1263
1269
|
derivationPath: ((_acc_accountAddress = acc[accountAddress]) == null ? void 0 : _acc_accountAddress.derivationPath) || undefined,
|
|
1264
1270
|
thresholdSignatureScheme: wallet.thresholdSignatureScheme
|
package/index.esm.js
CHANGED
|
@@ -773,12 +773,7 @@ class DynamicWalletClient {
|
|
|
773
773
|
const serializedEncryptedKeyShare = Buffer.from(JSON.stringify(encryptedKeyShare)).toString('base64');
|
|
774
774
|
return serializedEncryptedKeyShare;
|
|
775
775
|
}
|
|
776
|
-
async storeEncryptedBackupByWallet({ accountAddress, password = undefined
|
|
777
|
-
await this.getWallet({
|
|
778
|
-
accountAddress,
|
|
779
|
-
password,
|
|
780
|
-
walletOperation
|
|
781
|
-
});
|
|
776
|
+
async storeEncryptedBackupByWallet({ accountAddress, password = undefined }) {
|
|
782
777
|
const encryptedKeyShares = await Promise.all(this.walletMap[accountAddress].clientKeyShares.map((keyShare)=>this.encryptKeyShare({
|
|
783
778
|
keyShare,
|
|
784
779
|
password
|
|
@@ -786,7 +781,7 @@ class DynamicWalletClient {
|
|
|
786
781
|
const data = await this.apiClient.storeEncryptedBackupByWallet({
|
|
787
782
|
walletId: this.walletMap[accountAddress].walletId,
|
|
788
783
|
encryptedKeyShares,
|
|
789
|
-
passwordEncrypted: Boolean(password)
|
|
784
|
+
passwordEncrypted: Boolean(password) && password !== this.environmentId
|
|
790
785
|
});
|
|
791
786
|
this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress], {
|
|
792
787
|
clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
|
|
@@ -846,7 +841,7 @@ class DynamicWalletClient {
|
|
|
846
841
|
requiredShareCount
|
|
847
842
|
};
|
|
848
843
|
}
|
|
849
|
-
async recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount = undefined }) {
|
|
844
|
+
async recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount = undefined, storeRecoveredShares = true }) {
|
|
850
845
|
const wallet = this.walletMap[accountAddress];
|
|
851
846
|
this.logger.debug(`recoverEncryptedBackupByWallet wallet: ${walletOperation}`, wallet);
|
|
852
847
|
const { shares } = this.recoverStrategy({
|
|
@@ -865,10 +860,12 @@ class DynamicWalletClient {
|
|
|
865
860
|
keyShare: keyShare.encryptedAccountCredential,
|
|
866
861
|
password: password != null ? password : this.environmentId
|
|
867
862
|
})));
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
863
|
+
if (storeRecoveredShares) {
|
|
864
|
+
this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress], {
|
|
865
|
+
clientKeyShares: mergeUniqueKeyShares(this.walletMap[accountAddress].clientKeyShares || [], decryptedKeyShares)
|
|
866
|
+
});
|
|
867
|
+
await this.storage.setItem(this.storageKey, JSON.stringify(this.walletMap));
|
|
868
|
+
}
|
|
872
869
|
return decryptedKeyShares;
|
|
873
870
|
}
|
|
874
871
|
async restoreWallets() {
|
|
@@ -1068,6 +1065,7 @@ class DynamicWalletClient {
|
|
|
1068
1065
|
let keyshareCheck = false;
|
|
1069
1066
|
let walletCheck = false;
|
|
1070
1067
|
let thresholdSignatureSchemeCheck = false;
|
|
1068
|
+
let derivationPathCheck = false;
|
|
1071
1069
|
// check if wallet exists
|
|
1072
1070
|
const existingWallet = this.walletMap[accountAddress];
|
|
1073
1071
|
if (existingWallet) {
|
|
@@ -1077,6 +1075,10 @@ class DynamicWalletClient {
|
|
|
1077
1075
|
if (existingWallet == null ? void 0 : existingWallet.thresholdSignatureScheme) {
|
|
1078
1076
|
thresholdSignatureSchemeCheck = true;
|
|
1079
1077
|
}
|
|
1078
|
+
// check if derivation path exists
|
|
1079
|
+
if ((existingWallet == null ? void 0 : existingWallet.derivationPath) || (existingWallet == null ? void 0 : existingWallet.derivationPath) === "") {
|
|
1080
|
+
derivationPathCheck = true;
|
|
1081
|
+
}
|
|
1080
1082
|
// check if wallet already exists with sufficient keyshares
|
|
1081
1083
|
if (existingWallet) {
|
|
1082
1084
|
var _existingWallet_clientKeyShares;
|
|
@@ -1093,12 +1095,12 @@ class DynamicWalletClient {
|
|
|
1093
1095
|
keyshareCheck = true;
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
return walletCheck && thresholdSignatureSchemeCheck && keyshareCheck;
|
|
1098
|
+
return walletCheck && thresholdSignatureSchemeCheck && keyshareCheck && derivationPathCheck;
|
|
1097
1099
|
}
|
|
1098
1100
|
/**
|
|
1099
|
-
* verifyPassword attempts to recover and decrypt
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1101
|
+
* verifyPassword attempts to recover and decrypt a single client key share using the provided password.
|
|
1102
|
+
* If successful, the key share is encrypted with the new password. This method solely performs the recovery
|
|
1103
|
+
* and decryption without storing the restored key shares. If unsuccessful, it throws an error.
|
|
1102
1104
|
*/ async verifyPassword({ accountAddress, password = undefined, walletOperation = WalletOperation.NO_OPERATION }) {
|
|
1103
1105
|
await this.getWallet({
|
|
1104
1106
|
accountAddress,
|
|
@@ -1127,7 +1129,8 @@ class DynamicWalletClient {
|
|
|
1127
1129
|
accountAddress,
|
|
1128
1130
|
password,
|
|
1129
1131
|
walletOperation,
|
|
1130
|
-
shareCount: 1
|
|
1132
|
+
shareCount: 1,
|
|
1133
|
+
storeRecoveredShares: false
|
|
1131
1134
|
});
|
|
1132
1135
|
} catch (error) {
|
|
1133
1136
|
this.logger.error('Error in verifying password', error);
|
|
@@ -1240,7 +1243,8 @@ class DynamicWalletClient {
|
|
|
1240
1243
|
const user = await this.apiClient.getUser();
|
|
1241
1244
|
const waasWallets = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.filter((vc)=>vc.walletName === 'dynamicwaas');
|
|
1242
1245
|
const wallets = waasWallets.map((vc)=>{
|
|
1243
|
-
var _vc_walletProperties;
|
|
1246
|
+
var _this_walletMap_vc_address, _this_walletMap_vc_address1, _vc_walletProperties;
|
|
1247
|
+
var _this_walletMap_vc_address_derivationPath;
|
|
1244
1248
|
return {
|
|
1245
1249
|
walletId: vc.id,
|
|
1246
1250
|
chainName: vc.chain,
|
|
@@ -1248,17 +1252,19 @@ class DynamicWalletClient {
|
|
|
1248
1252
|
clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
|
|
1249
1253
|
walletProperties: vc.walletProperties || {}
|
|
1250
1254
|
}),
|
|
1255
|
+
clientKeyShares: ((_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.clientKeyShares) || [],
|
|
1256
|
+
derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address1 = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address1.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
|
|
1251
1257
|
thresholdSignatureScheme: (_vc_walletProperties = vc.walletProperties) == null ? void 0 : _vc_walletProperties.thresholdSignatureScheme
|
|
1252
1258
|
};
|
|
1253
1259
|
});
|
|
1254
1260
|
this.walletMap = wallets.reduce((acc, wallet)=>{
|
|
1255
|
-
var
|
|
1261
|
+
var _acc_accountAddress;
|
|
1256
1262
|
const accountAddress = wallet.accountAddress;
|
|
1257
1263
|
acc[wallet.accountAddress] = {
|
|
1258
1264
|
walletId: wallet.walletId,
|
|
1259
1265
|
chainName: wallet.chainName,
|
|
1260
1266
|
accountAddress: wallet.accountAddress,
|
|
1261
|
-
clientKeyShares:
|
|
1267
|
+
clientKeyShares: wallet.clientKeyShares || [],
|
|
1262
1268
|
clientKeySharesBackupInfo: wallet.clientKeySharesBackupInfo,
|
|
1263
1269
|
derivationPath: ((_acc_accountAddress = acc[accountAddress]) == null ? void 0 : _acc_accountAddress.derivationPath) || undefined,
|
|
1264
1270
|
thresholdSignatureScheme: wallet.thresholdSignatureScheme
|
package/package.json
CHANGED
package/src/client.d.ts
CHANGED
|
@@ -129,10 +129,9 @@ export declare class DynamicWalletClient {
|
|
|
129
129
|
keyShare: ClientKeyShare;
|
|
130
130
|
password?: string;
|
|
131
131
|
}): Promise<string>;
|
|
132
|
-
storeEncryptedBackupByWallet({ accountAddress, password,
|
|
132
|
+
storeEncryptedBackupByWallet({ accountAddress, password, }: {
|
|
133
133
|
accountAddress: string;
|
|
134
134
|
password?: string;
|
|
135
|
-
walletOperation?: WalletOperation;
|
|
136
135
|
}): Promise<any>;
|
|
137
136
|
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
138
137
|
accountAddress: string;
|
|
@@ -164,11 +163,12 @@ export declare class DynamicWalletClient {
|
|
|
164
163
|
shares: Partial<Record<BackupLocation, string[]>>;
|
|
165
164
|
requiredShareCount: number;
|
|
166
165
|
};
|
|
167
|
-
recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount, }: {
|
|
166
|
+
recoverEncryptedBackupByWallet({ accountAddress, password, walletOperation, shareCount, storeRecoveredShares, }: {
|
|
168
167
|
accountAddress: string;
|
|
169
168
|
password?: string;
|
|
170
169
|
walletOperation: WalletOperation;
|
|
171
170
|
shareCount?: number;
|
|
171
|
+
storeRecoveredShares?: boolean;
|
|
172
172
|
}): Promise<any[]>;
|
|
173
173
|
restoreWallets(): Promise<void>;
|
|
174
174
|
backupKeySharesToGoogleDrive({ accountAddress, fileName, oauthAccountId, password, }: {
|
|
@@ -210,9 +210,9 @@ export declare class DynamicWalletClient {
|
|
|
210
210
|
*/
|
|
211
211
|
private checkWalletFields;
|
|
212
212
|
/**
|
|
213
|
-
* verifyPassword attempts to recover and decrypt
|
|
214
|
-
*
|
|
215
|
-
*
|
|
213
|
+
* verifyPassword attempts to recover and decrypt a single client key share using the provided password.
|
|
214
|
+
* If successful, the key share is encrypted with the new password. This method solely performs the recovery
|
|
215
|
+
* and decryption without storing the restored key shares. If unsuccessful, it throws an error.
|
|
216
216
|
*/
|
|
217
217
|
verifyPassword({ accountAddress, password, walletOperation, }: {
|
|
218
218
|
accountAddress: string;
|
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,EAGL,wBAAwB,EACxB,gBAAgB,EAIhB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAIL,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAElB,cAAc,EACf,MAAM,eAAe,CAAC;AAEv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