@dynamic-labs-wallet/evm 0.0.83 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -16,12 +16,6 @@ function _extends() {
16
16
  }
17
17
 
18
18
  const EVM_SIGN_MESSAGE_PREFIX = `\x19Ethereum Signed Message:\n`;
19
- // Error messages
20
- const ERROR_KEYGEN_FAILED = 'Error with keygen';
21
- const ERROR_CREATE_WALLET_ACCOUNT = 'Error creating evm wallet account';
22
- const ERROR_SIGN_MESSAGE = 'Error signing message';
23
- const ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
24
- const ERROR_VERIFY_MESSAGE_SIGNATURE = 'Error verifying message signature';
25
19
 
26
20
  const formatEVMMessage = (message_)=>{
27
21
  const message = (()=>{
@@ -67,7 +61,10 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
67
61
  const { rawPublicKey, clientKeyShares } = await this.keyGen({
68
62
  chainName: this.chainName,
69
63
  thresholdSignatureScheme,
70
- onError,
64
+ onError: (error)=>{
65
+ this.logger.error(browser.ERROR_CREATE_WALLET_ACCOUNT, error);
66
+ onError == null ? void 0 : onError(error);
67
+ },
71
68
  onCeremonyComplete: (accountAddress, walletId)=>{
72
69
  // update wallet map
73
70
  const checksumAddress = viem.getAddress(accountAddress);
@@ -85,7 +82,7 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
85
82
  // Wait for the ceremony to complete before proceeding
86
83
  await ceremonyCompletePromise;
87
84
  if (!rawPublicKey || !clientKeyShares) {
88
- throw new Error(ERROR_KEYGEN_FAILED);
85
+ throw new Error(browser.ERROR_KEYGEN_FAILED);
89
86
  }
90
87
  checkRawPublicKeyInstance(rawPublicKey);
91
88
  const { accountAddress, publicKeyHex } = await this.deriveAccountAddress({
@@ -110,8 +107,8 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
110
107
  publicKeyHex
111
108
  };
112
109
  } catch (error) {
113
- this.logger.error(ERROR_CREATE_WALLET_ACCOUNT, error);
114
- throw new Error(ERROR_CREATE_WALLET_ACCOUNT);
110
+ this.logger.error(browser.ERROR_CREATE_WALLET_ACCOUNT, error);
111
+ throw new Error(browser.ERROR_CREATE_WALLET_ACCOUNT);
115
112
  }
116
113
  }
117
114
  async signMessage({ message, accountAddress, password = undefined, signedSessionId }) {
@@ -123,7 +120,7 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
123
120
  });
124
121
  try {
125
122
  if (!accountAddress) {
126
- throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
123
+ throw new Error(browser.ERROR_ACCOUNT_ADDRESS_REQUIRED);
127
124
  }
128
125
  // Format the message for EVM signing
129
126
  const formattedMessage = formatEVMMessage(message);
@@ -139,8 +136,8 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
139
136
  const serializedSignature = serializeECDSASignature(signatureEcdsa);
140
137
  return serializedSignature;
141
138
  } catch (error) {
142
- this.logger.error(ERROR_SIGN_MESSAGE, error);
143
- throw new Error(ERROR_SIGN_MESSAGE);
139
+ this.logger.error(browser.ERROR_SIGN_MESSAGE, error);
140
+ throw new Error(browser.ERROR_SIGN_MESSAGE);
144
141
  }
145
142
  }
146
143
  async verifyMessageSignature({ accountAddress, message, signature }) {
@@ -156,8 +153,8 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
156
153
  });
157
154
  return verified;
158
155
  } catch (error) {
159
- this.logger.error(ERROR_VERIFY_MESSAGE_SIGNATURE, error);
160
- throw new Error(ERROR_VERIFY_MESSAGE_SIGNATURE);
156
+ this.logger.error(browser.ERROR_VERIFY_MESSAGE_SIGNATURE, error);
157
+ throw new Error(browser.ERROR_VERIFY_MESSAGE_SIGNATURE);
161
158
  }
162
159
  }
163
160
  async signTransaction({ senderAddress, transaction, password = undefined, signedSessionId }) {
@@ -237,49 +234,59 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
237
234
  };
238
235
  }
239
236
  async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError, signedSessionId }) {
240
- // TODO: validate private key for EVM
241
- const { rawPublicKey, clientKeyShares } = await this.importRawPrivateKey({
242
- chainName,
243
- privateKey,
244
- thresholdSignatureScheme,
245
- onError,
246
- onCeremonyComplete: (accountAddress, walletId)=>{
247
- // update wallet map
248
- const checksumAddress = viem.getAddress(accountAddress);
249
- this.walletMap[checksumAddress] = _extends({}, this.walletMap[checksumAddress] || {}, {
250
- accountAddress: checksumAddress,
251
- walletId,
252
- chainName: this.chainName,
253
- thresholdSignatureScheme,
254
- clientKeySharesBackupInfo: browser.getClientKeyShareBackupInfo()
255
- });
237
+ try {
238
+ //remove 0x if it exists
239
+ const formattedPrivateKey = privateKey.startsWith('0x') ? privateKey.slice(2) : privateKey;
240
+ // TODO: validate private key for EVM
241
+ const { rawPublicKey, clientKeyShares } = await this.importRawPrivateKey({
242
+ chainName,
243
+ privateKey: formattedPrivateKey,
244
+ thresholdSignatureScheme,
245
+ onError: (error)=>{
246
+ this.logger.error(browser.ERROR_IMPORT_PRIVATE_KEY, error);
247
+ onError == null ? void 0 : onError(error);
248
+ },
249
+ onCeremonyComplete: (accountAddress, walletId)=>{
250
+ // update wallet map
251
+ const checksumAddress = viem.getAddress(accountAddress);
252
+ this.walletMap[checksumAddress] = _extends({}, this.walletMap[checksumAddress] || {}, {
253
+ accountAddress: checksumAddress,
254
+ walletId,
255
+ chainName: this.chainName,
256
+ thresholdSignatureScheme,
257
+ clientKeySharesBackupInfo: browser.getClientKeyShareBackupInfo()
258
+ });
259
+ }
260
+ });
261
+ if (!rawPublicKey || !clientKeyShares) {
262
+ throw new Error(browser.ERROR_IMPORT_PRIVATE_KEY);
256
263
  }
257
- });
258
- if (!rawPublicKey || !clientKeyShares) {
259
- throw new Error('Error creating wallet account');
264
+ checkRawPublicKeyInstance(rawPublicKey);
265
+ const { accountAddress, publicKeyHex } = await this.deriveAccountAddress({
266
+ rawPublicKey: rawPublicKey
267
+ });
268
+ // Update client key shares in wallet map
269
+ await this.setClientKeySharesToLocalStorage({
270
+ accountAddress,
271
+ clientKeyShares,
272
+ overwriteOrMerge: 'overwrite'
273
+ });
274
+ // Backup the new wallet without waiting for the promise to resolve
275
+ await this.storeEncryptedBackupByWalletWithRetry({
276
+ accountAddress,
277
+ clientKeyShares,
278
+ password,
279
+ signedSessionId
280
+ });
281
+ return {
282
+ accountAddress,
283
+ rawPublicKey,
284
+ publicKeyHex
285
+ };
286
+ } catch (error) {
287
+ this.logger.error(browser.ERROR_IMPORT_PRIVATE_KEY, error);
288
+ throw error;
260
289
  }
261
- checkRawPublicKeyInstance(rawPublicKey);
262
- const { accountAddress, publicKeyHex } = await this.deriveAccountAddress({
263
- rawPublicKey: rawPublicKey
264
- });
265
- // Update client key shares in wallet map
266
- await this.setClientKeySharesToLocalStorage({
267
- accountAddress,
268
- clientKeyShares,
269
- overwriteOrMerge: 'overwrite'
270
- });
271
- // Backup the new wallet without waiting for the promise to resolve
272
- await this.storeEncryptedBackupByWalletWithRetry({
273
- accountAddress,
274
- clientKeyShares,
275
- password,
276
- signedSessionId
277
- });
278
- return {
279
- accountAddress,
280
- rawPublicKey,
281
- publicKeyHex
282
- };
283
290
  }
284
291
  async getEvmWallets() {
285
292
  const wallets = await this.getWallets();
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { EcdsaPublicKey, DynamicWalletClient, getClientKeyShareBackupInfo, WalletOperation, MessageHash } from '@dynamic-labs-wallet/browser';
1
+ import { EcdsaPublicKey, DynamicWalletClient, getClientKeyShareBackupInfo, ERROR_CREATE_WALLET_ACCOUNT, ERROR_KEYGEN_FAILED, WalletOperation, ERROR_ACCOUNT_ADDRESS_REQUIRED, ERROR_SIGN_MESSAGE, ERROR_VERIFY_MESSAGE_SIGNATURE, MessageHash, ERROR_IMPORT_PRIVATE_KEY } from '@dynamic-labs-wallet/browser';
2
2
  import { stringToHex, bytesToHex, size, concat, serializeSignature, createPublicClient, http, getAddress, serializeTransaction } from 'viem';
3
3
  import { mainnet } from 'viem/chains';
4
4
 
@@ -14,12 +14,6 @@ function _extends() {
14
14
  }
15
15
 
16
16
  const EVM_SIGN_MESSAGE_PREFIX = `\x19Ethereum Signed Message:\n`;
17
- // Error messages
18
- const ERROR_KEYGEN_FAILED = 'Error with keygen';
19
- const ERROR_CREATE_WALLET_ACCOUNT = 'Error creating evm wallet account';
20
- const ERROR_SIGN_MESSAGE = 'Error signing message';
21
- const ERROR_ACCOUNT_ADDRESS_REQUIRED = 'Account address is required';
22
- const ERROR_VERIFY_MESSAGE_SIGNATURE = 'Error verifying message signature';
23
17
 
24
18
  const formatEVMMessage = (message_)=>{
25
19
  const message = (()=>{
@@ -65,7 +59,10 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
65
59
  const { rawPublicKey, clientKeyShares } = await this.keyGen({
66
60
  chainName: this.chainName,
67
61
  thresholdSignatureScheme,
68
- onError,
62
+ onError: (error)=>{
63
+ this.logger.error(ERROR_CREATE_WALLET_ACCOUNT, error);
64
+ onError == null ? void 0 : onError(error);
65
+ },
69
66
  onCeremonyComplete: (accountAddress, walletId)=>{
70
67
  // update wallet map
71
68
  const checksumAddress = getAddress(accountAddress);
@@ -235,49 +232,59 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
235
232
  };
236
233
  }
237
234
  async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError, signedSessionId }) {
238
- // TODO: validate private key for EVM
239
- const { rawPublicKey, clientKeyShares } = await this.importRawPrivateKey({
240
- chainName,
241
- privateKey,
242
- thresholdSignatureScheme,
243
- onError,
244
- onCeremonyComplete: (accountAddress, walletId)=>{
245
- // update wallet map
246
- const checksumAddress = getAddress(accountAddress);
247
- this.walletMap[checksumAddress] = _extends({}, this.walletMap[checksumAddress] || {}, {
248
- accountAddress: checksumAddress,
249
- walletId,
250
- chainName: this.chainName,
251
- thresholdSignatureScheme,
252
- clientKeySharesBackupInfo: getClientKeyShareBackupInfo()
253
- });
235
+ try {
236
+ //remove 0x if it exists
237
+ const formattedPrivateKey = privateKey.startsWith('0x') ? privateKey.slice(2) : privateKey;
238
+ // TODO: validate private key for EVM
239
+ const { rawPublicKey, clientKeyShares } = await this.importRawPrivateKey({
240
+ chainName,
241
+ privateKey: formattedPrivateKey,
242
+ thresholdSignatureScheme,
243
+ onError: (error)=>{
244
+ this.logger.error(ERROR_IMPORT_PRIVATE_KEY, error);
245
+ onError == null ? void 0 : onError(error);
246
+ },
247
+ onCeremonyComplete: (accountAddress, walletId)=>{
248
+ // update wallet map
249
+ const checksumAddress = getAddress(accountAddress);
250
+ this.walletMap[checksumAddress] = _extends({}, this.walletMap[checksumAddress] || {}, {
251
+ accountAddress: checksumAddress,
252
+ walletId,
253
+ chainName: this.chainName,
254
+ thresholdSignatureScheme,
255
+ clientKeySharesBackupInfo: getClientKeyShareBackupInfo()
256
+ });
257
+ }
258
+ });
259
+ if (!rawPublicKey || !clientKeyShares) {
260
+ throw new Error(ERROR_IMPORT_PRIVATE_KEY);
254
261
  }
255
- });
256
- if (!rawPublicKey || !clientKeyShares) {
257
- throw new Error('Error creating wallet account');
262
+ checkRawPublicKeyInstance(rawPublicKey);
263
+ const { accountAddress, publicKeyHex } = await this.deriveAccountAddress({
264
+ rawPublicKey: rawPublicKey
265
+ });
266
+ // Update client key shares in wallet map
267
+ await this.setClientKeySharesToLocalStorage({
268
+ accountAddress,
269
+ clientKeyShares,
270
+ overwriteOrMerge: 'overwrite'
271
+ });
272
+ // Backup the new wallet without waiting for the promise to resolve
273
+ await this.storeEncryptedBackupByWalletWithRetry({
274
+ accountAddress,
275
+ clientKeyShares,
276
+ password,
277
+ signedSessionId
278
+ });
279
+ return {
280
+ accountAddress,
281
+ rawPublicKey,
282
+ publicKeyHex
283
+ };
284
+ } catch (error) {
285
+ this.logger.error(ERROR_IMPORT_PRIVATE_KEY, error);
286
+ throw error;
258
287
  }
259
- checkRawPublicKeyInstance(rawPublicKey);
260
- const { accountAddress, publicKeyHex } = await this.deriveAccountAddress({
261
- rawPublicKey: rawPublicKey
262
- });
263
- // Update client key shares in wallet map
264
- await this.setClientKeySharesToLocalStorage({
265
- accountAddress,
266
- clientKeyShares,
267
- overwriteOrMerge: 'overwrite'
268
- });
269
- // Backup the new wallet without waiting for the promise to resolve
270
- await this.storeEncryptedBackupByWalletWithRetry({
271
- accountAddress,
272
- clientKeyShares,
273
- password,
274
- signedSessionId
275
- });
276
- return {
277
- accountAddress,
278
- rawPublicKey,
279
- publicKeyHex
280
- };
281
288
  }
282
289
  async getEvmWallets() {
283
290
  const wallets = await this.getWallets();
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/evm",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@dynamic-labs-wallet/browser": "0.0.83"
6
+ "@dynamic-labs-wallet/browser": "0.0.85"
7
7
  },
8
8
  "peerDependencies": {
9
9
  "viem": "^2.22.1"
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EAEd,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EAIzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,KAAK,EAEV,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAE7B,MAAM,MAAM,CAAC;AAYd,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,QAAQ,CAAC,SAAS,SAAS;gBAEf,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,KAAK,GACN,EAAE,wBAAwB;IAW3B,sBAAsB,CAAC,EACrB,KAAK,EACL,MAAM,GACP,EAAE;QACD,KAAK,EAAE,KAAK,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,G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AC,MAAM,CAAC;IAqDnB,oBAAoB,CAAC,EAAE,YAAY,EAAE,EAAE;QAAE,YAAY,EAAE,cAAc,CAAA;KAAE;;;;IAUjE,gBAAgB,CAAC,EACrB,cAAc,EACd,QAAoB,EACpB,eAAe,GAChB,EAAE;QACD,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAkBzB,uBAAuB,CAAC,EAC5B,SAAS,EACT,cAAc,GACf,EAAE;QACD,SAAS,EAAE,CAAC,iBAAiB,GAAG,mBAAmB,CAAC,EAAE,CAAC;QACvD,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;;;IAUK,gBAAgB,CAAC,EACrB,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,QAAoB,EACpB,OAAO,EACP,eAAe,GAChB,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QACjC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;KAChE,CAAC;IAgEI,aAAa;CAOpB"}
@@ -1,7 +1,2 @@
1
1
  export declare const EVM_SIGN_MESSAGE_PREFIX = "\u0019Ethereum Signed Message:\n";
2
- export declare const ERROR_KEYGEN_FAILED = "Error with keygen";
3
- export declare const ERROR_CREATE_WALLET_ACCOUNT = "Error creating evm wallet account";
4
- export declare const ERROR_SIGN_MESSAGE = "Error signing message";
5
- export declare const ERROR_ACCOUNT_ADDRESS_REQUIRED = "Account address is required";
6
- export declare const ERROR_VERIFY_MESSAGE_SIGNATURE = "Error verifying message signature";
7
2
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/client/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qCAAmC,CAAC;AAGxE,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,eAAO,MAAM,2BAA2B,sCAAsC,CAAC;AAE/E,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,eAAO,MAAM,8BAA8B,gCAAgC,CAAC;AAE5E,eAAO,MAAM,8BAA8B,sCACN,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/client/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qCAAmC,CAAC"}