@dynamic-labs-wallet/node 1.0.0 → 1.0.2

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 CHANGED
@@ -1721,14 +1721,10 @@ const createCore = ({ environmentId, baseApiUrl, baseMPCRelayApiUrl, debug = fal
1721
1721
  };
1722
1722
  };
1723
1723
 
1724
- // Helper function to create API client for delegated operations
1725
- const createDelegatedApiClient = (client, options = {})=>{
1726
- return client.createApiClient(options);
1727
- };
1728
- // Helper function to create API client with wallet-specific headers
1724
+ // Fresh apiClient per call `walletApiKey` is set on this instance's
1725
+ // headers, not on a shared bag, so concurrent callers can't race on it.
1729
1726
  const createDelegatedApiClientWithWalletKey = (client, walletApiKey)=>{
1730
1727
  const apiClient = client.createApiClient();
1731
- // Add the wallet-specific API key header to all requests from this client
1732
1728
  apiClient.apiClient.defaults.headers['x-dyn-wallet-api-key'] = walletApiKey;
1733
1729
  return apiClient;
1734
1730
  };
@@ -1739,9 +1735,7 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1739
1735
  baseMPCRelayApiUrl,
1740
1736
  debug
1741
1737
  });
1742
- // Store the API key for use in delegated operations
1743
1738
  core.apiKey = apiKey;
1744
- const walletMap = {};
1745
1739
  const client = {
1746
1740
  get environmentId () {
1747
1741
  return core.environmentId;
@@ -1753,9 +1747,6 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1753
1747
  var _core_baseApiUrl;
1754
1748
  return (_core_baseApiUrl = core.baseApiUrl) != null ? _core_baseApiUrl : 'https://app.dynamicauth.com';
1755
1749
  },
1756
- get wallets () {
1757
- return walletMap;
1758
- },
1759
1750
  createApiClient: (options = {})=>{
1760
1751
  return core.createApiClient(_extends({
1761
1752
  authToken: apiKey
@@ -1768,7 +1759,7 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1768
1759
  return client;
1769
1760
  };
1770
1761
 
1771
- const dynamicDelegatedSign = async (client, { walletId, message, isFormatted, walletApiKey, onError, context })=>{
1762
+ const dynamicDelegatedSign = async (client, { walletId, shareSetId, message, isFormatted, walletApiKey, onError, context })=>{
1772
1763
  const dynamicRequestId = uuid.v4();
1773
1764
  // Convert message to hex if it's a Uint8Array
1774
1765
  if (typeof message !== 'string') {
@@ -1777,6 +1768,7 @@ const dynamicDelegatedSign = async (client, { walletId, message, isFormatted, wa
1777
1768
  const apiClient = createDelegatedApiClientWithWalletKey(client, walletApiKey);
1778
1769
  const data = await apiClient.delegatedSignMessage({
1779
1770
  walletId,
1771
+ shareSetId,
1780
1772
  message,
1781
1773
  isFormatted,
1782
1774
  dynamicRequestId,
@@ -1799,78 +1791,51 @@ const delegatedSign = async (client, { chainName, message, roomId, keyShare, der
1799
1791
  throw error;
1800
1792
  }
1801
1793
  };
1802
- const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare, message, chainName, isFormatted = false, onError, context })=>{
1803
- // Validate required parameters
1794
+ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey, keyShare, message, chainName, derivationPath, isFormatted = false, onError, context })=>{
1795
+ if (!walletId) {
1796
+ throw new Error('walletId is required');
1797
+ }
1798
+ if (!shareSetId) {
1799
+ throw new Error('shareSetId is required');
1800
+ }
1801
+ if (!chainName) {
1802
+ throw new Error('chainName is required');
1803
+ }
1804
1804
  if (!keyShare) {
1805
1805
  throw new Error('Delegated key share is required to sign a message');
1806
1806
  }
1807
- const wallet = await getWallet(client, {
1808
- walletId
1809
- });
1810
- // Perform the dynamic server sign
1807
+ if (!walletApiKey) {
1808
+ throw new Error('walletApiKey is required');
1809
+ }
1811
1810
  const data = await dynamicDelegatedSign(client, {
1812
1811
  walletId,
1812
+ shareSetId,
1813
1813
  walletApiKey,
1814
1814
  message,
1815
1815
  isFormatted,
1816
1816
  onError,
1817
1817
  context
1818
1818
  });
1819
- const derivationPath = wallet.derivationPath && wallet.derivationPath !== '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
1820
- // Perform the external server sign and return the signature
1819
+ // The wallet's pubkey was derived along the chain default at keygen,
1820
+ // so signing with anything else produces a non-verifying signature.
1821
+ const resolvedDerivationPath = derivationPath != null ? derivationPath : new Uint32Array(core$1.getMPCChainConfig(chainName).derivationPath);
1821
1822
  const signature = await delegatedSign(client, {
1822
1823
  chainName,
1823
1824
  message,
1824
1825
  roomId: data.roomId,
1825
1826
  keyShare,
1826
- derivationPath,
1827
+ derivationPath: resolvedDerivationPath,
1827
1828
  isFormatted
1828
1829
  });
1829
1830
  return signature;
1830
1831
  };
1831
- // Helper function to get wallet (to be implemented in wallet module)
1832
- const getWallet = async (client, { walletId })=>{
1833
- const wallets = client.wallets;
1834
- // Check if wallet is already cached
1835
- if (wallets[walletId]) {
1836
- return wallets[walletId];
1837
- }
1838
- // Fetch wallet from API
1839
- const apiClient = createDelegatedApiClient(client);
1840
- const { wallet } = await apiClient.getWaasWalletById({
1841
- walletId
1842
- });
1843
- const waasWallet = {
1844
- walletId,
1845
- chainName: wallet.chainName,
1846
- accountAddress: wallet.accountAddress,
1847
- externalServerKeyShares: [],
1848
- derivationPath: wallet.derivationPath,
1849
- thresholdSignatureScheme: wallet.thresholdSignatureScheme,
1850
- externalServerKeySharesBackupInfo: {
1851
- passwordEncrypted: false,
1852
- backups: {
1853
- dynamic: [],
1854
- googleDrive: [],
1855
- iCloud: [],
1856
- user: [],
1857
- external: [],
1858
- delegated: []
1859
- }
1860
- }
1861
- };
1862
- // Cache the wallet
1863
- wallets[walletId] = waasWallet;
1864
- return waasWallet;
1865
- };
1866
1832
 
1867
- const revokeDelegation = async (client, walletId)=>{
1833
+ // TODO: wire to apiClient.revokeDelegation once the server method ships.
1834
+ const revokeDelegation = async (client, { walletId })=>{
1835
+ if (!walletId) {
1836
+ throw new Error('walletId is required');
1837
+ }
1868
1838
  try {
1869
- // TODO: Uncomment when API method is implemented
1870
- // const apiClient = createDelegatedApiClient(client);
1871
- // await apiClient.revokeDelegation({
1872
- // walletId,
1873
- // });
1874
1839
  client.logger.info(`Delegation revoked for wallet: ${walletId}`);
1875
1840
  } catch (error) {
1876
1841
  client.logger.error('Error revoking delegation', error);
package/index.esm.js CHANGED
@@ -1720,14 +1720,10 @@ const createCore = ({ environmentId, baseApiUrl, baseMPCRelayApiUrl, debug = fal
1720
1720
  };
1721
1721
  };
1722
1722
 
1723
- // Helper function to create API client for delegated operations
1724
- const createDelegatedApiClient = (client, options = {})=>{
1725
- return client.createApiClient(options);
1726
- };
1727
- // Helper function to create API client with wallet-specific headers
1723
+ // Fresh apiClient per call `walletApiKey` is set on this instance's
1724
+ // headers, not on a shared bag, so concurrent callers can't race on it.
1728
1725
  const createDelegatedApiClientWithWalletKey = (client, walletApiKey)=>{
1729
1726
  const apiClient = client.createApiClient();
1730
- // Add the wallet-specific API key header to all requests from this client
1731
1727
  apiClient.apiClient.defaults.headers['x-dyn-wallet-api-key'] = walletApiKey;
1732
1728
  return apiClient;
1733
1729
  };
@@ -1738,9 +1734,7 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1738
1734
  baseMPCRelayApiUrl,
1739
1735
  debug
1740
1736
  });
1741
- // Store the API key for use in delegated operations
1742
1737
  core.apiKey = apiKey;
1743
- const walletMap = {};
1744
1738
  const client = {
1745
1739
  get environmentId () {
1746
1740
  return core.environmentId;
@@ -1752,9 +1746,6 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1752
1746
  var _core_baseApiUrl;
1753
1747
  return (_core_baseApiUrl = core.baseApiUrl) != null ? _core_baseApiUrl : 'https://app.dynamicauth.com';
1754
1748
  },
1755
- get wallets () {
1756
- return walletMap;
1757
- },
1758
1749
  createApiClient: (options = {})=>{
1759
1750
  return core.createApiClient(_extends({
1760
1751
  authToken: apiKey
@@ -1767,7 +1758,7 @@ const createDelegatedWalletClient = ({ environmentId, baseApiUrl, baseMPCRelayAp
1767
1758
  return client;
1768
1759
  };
1769
1760
 
1770
- const dynamicDelegatedSign = async (client, { walletId, message, isFormatted, walletApiKey, onError, context })=>{
1761
+ const dynamicDelegatedSign = async (client, { walletId, shareSetId, message, isFormatted, walletApiKey, onError, context })=>{
1771
1762
  const dynamicRequestId = v4();
1772
1763
  // Convert message to hex if it's a Uint8Array
1773
1764
  if (typeof message !== 'string') {
@@ -1776,6 +1767,7 @@ const dynamicDelegatedSign = async (client, { walletId, message, isFormatted, wa
1776
1767
  const apiClient = createDelegatedApiClientWithWalletKey(client, walletApiKey);
1777
1768
  const data = await apiClient.delegatedSignMessage({
1778
1769
  walletId,
1770
+ shareSetId,
1779
1771
  message,
1780
1772
  isFormatted,
1781
1773
  dynamicRequestId,
@@ -1798,78 +1790,51 @@ const delegatedSign = async (client, { chainName, message, roomId, keyShare, der
1798
1790
  throw error;
1799
1791
  }
1800
1792
  };
1801
- const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare, message, chainName, isFormatted = false, onError, context })=>{
1802
- // Validate required parameters
1793
+ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey, keyShare, message, chainName, derivationPath, isFormatted = false, onError, context })=>{
1794
+ if (!walletId) {
1795
+ throw new Error('walletId is required');
1796
+ }
1797
+ if (!shareSetId) {
1798
+ throw new Error('shareSetId is required');
1799
+ }
1800
+ if (!chainName) {
1801
+ throw new Error('chainName is required');
1802
+ }
1803
1803
  if (!keyShare) {
1804
1804
  throw new Error('Delegated key share is required to sign a message');
1805
1805
  }
1806
- const wallet = await getWallet(client, {
1807
- walletId
1808
- });
1809
- // Perform the dynamic server sign
1806
+ if (!walletApiKey) {
1807
+ throw new Error('walletApiKey is required');
1808
+ }
1810
1809
  const data = await dynamicDelegatedSign(client, {
1811
1810
  walletId,
1811
+ shareSetId,
1812
1812
  walletApiKey,
1813
1813
  message,
1814
1814
  isFormatted,
1815
1815
  onError,
1816
1816
  context
1817
1817
  });
1818
- const derivationPath = wallet.derivationPath && wallet.derivationPath !== '' ? new Uint32Array(Object.values(JSON.parse(wallet.derivationPath))) : undefined;
1819
- // Perform the external server sign and return the signature
1818
+ // The wallet's pubkey was derived along the chain default at keygen,
1819
+ // so signing with anything else produces a non-verifying signature.
1820
+ const resolvedDerivationPath = derivationPath != null ? derivationPath : new Uint32Array(getMPCChainConfig(chainName).derivationPath);
1820
1821
  const signature = await delegatedSign(client, {
1821
1822
  chainName,
1822
1823
  message,
1823
1824
  roomId: data.roomId,
1824
1825
  keyShare,
1825
- derivationPath,
1826
+ derivationPath: resolvedDerivationPath,
1826
1827
  isFormatted
1827
1828
  });
1828
1829
  return signature;
1829
1830
  };
1830
- // Helper function to get wallet (to be implemented in wallet module)
1831
- const getWallet = async (client, { walletId })=>{
1832
- const wallets = client.wallets;
1833
- // Check if wallet is already cached
1834
- if (wallets[walletId]) {
1835
- return wallets[walletId];
1836
- }
1837
- // Fetch wallet from API
1838
- const apiClient = createDelegatedApiClient(client);
1839
- const { wallet } = await apiClient.getWaasWalletById({
1840
- walletId
1841
- });
1842
- const waasWallet = {
1843
- walletId,
1844
- chainName: wallet.chainName,
1845
- accountAddress: wallet.accountAddress,
1846
- externalServerKeyShares: [],
1847
- derivationPath: wallet.derivationPath,
1848
- thresholdSignatureScheme: wallet.thresholdSignatureScheme,
1849
- externalServerKeySharesBackupInfo: {
1850
- passwordEncrypted: false,
1851
- backups: {
1852
- dynamic: [],
1853
- googleDrive: [],
1854
- iCloud: [],
1855
- user: [],
1856
- external: [],
1857
- delegated: []
1858
- }
1859
- }
1860
- };
1861
- // Cache the wallet
1862
- wallets[walletId] = waasWallet;
1863
- return waasWallet;
1864
- };
1865
1831
 
1866
- const revokeDelegation = async (client, walletId)=>{
1832
+ // TODO: wire to apiClient.revokeDelegation once the server method ships.
1833
+ const revokeDelegation = async (client, { walletId })=>{
1834
+ if (!walletId) {
1835
+ throw new Error('walletId is required');
1836
+ }
1867
1837
  try {
1868
- // TODO: Uncomment when API method is implemented
1869
- // const apiClient = createDelegatedApiClient(client);
1870
- // await apiClient.revokeDelegation({
1871
- // walletId,
1872
- // });
1873
1838
  client.logger.info(`Delegation revoked for wallet: ${walletId}`);
1874
1839
  } catch (error) {
1875
1840
  client.logger.error('Error revoking delegation', error);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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": "1.0.0",
7
+ "@dynamic-labs-wallet/core": "1.0.2",
8
8
  "@dynamic-labs-wallet/forward-mpc-client": "0.10.0",
9
- "@dynamic-labs-wallet/primitives": "1.0.0",
9
+ "@dynamic-labs-wallet/primitives": "1.0.2",
10
10
  "@dynamic-labs/logger": "^4.45.2",
11
11
  "@dynamic-labs/sdk-api-core": "^0.0.984",
12
12
  "uuid": "11.1.0",
@@ -1,5 +1,4 @@
1
1
  import type { DynamicApiClient } from '@dynamic-labs-wallet/core';
2
- import type { WalletProperties } from '../types.js';
3
2
  export type DelegatedClientConfig = {
4
3
  environmentId: string;
5
4
  baseApiUrl?: string;
@@ -11,7 +10,6 @@ export type DelegatedWalletClient = {
11
10
  get environmentId(): string;
12
11
  get debug(): boolean;
13
12
  get apiUrl(): string | undefined;
14
- get wallets(): Record<string, WalletProperties>;
15
13
  createApiClient: (options?: Record<string, any>) => DynamicApiClient;
16
14
  logger: any;
17
15
  apiKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"createDelegatedClient.d.ts","sourceRoot":"","sources":["../../src/delegatedClient/createDelegatedClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;IACt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AAa,IAAI,MAAM,CAAC;IAC5B,IAAI,KAAK,IAAI,OAAO,CAAC;IACrB,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,gBAAgB,CAAC;IACrE,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,WAC3B,qBAAqB,YACpB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC3B,gBAEF,CAAC;AAIF,eAAO,MAAM,qCAAqC,WACxC,qBAAqB,gBACf,MAAM,KACnB,gBAIF,CAAC;AAEF,eAAO,MAAM,2BAA2B,sEAMrC,qBAAqB,0BAgCvB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import type { DelegatedWalletClient } from '../createDelegatedClient.js';
2
- export declare const revokeDelegation: (client: DelegatedWalletClient, walletId: string) => Promise<void>;
2
+ export declare const revokeDelegation: (client: DelegatedWalletClient, { walletId }: {
3
+ walletId: string;
4
+ }) => Promise<void>;
3
5
  //# sourceMappingURL=revokeDelegation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revokeDelegation.d.ts","sourceRoot":"","sources":["../../../src/delegatedClient/modules/revokeDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,WAAkB,qBAAqB,YAAY,MAAM,KAAG,OAAO,CAAC,IAAI,CAapG,CAAC"}
1
+ {"version":3,"file":"revokeDelegation.d.ts","sourceRoot":"","sources":["../../../src/delegatedClient/modules/revokeDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGzE,eAAO,MAAM,gBAAgB,WACnB,qBAAqB,gBACf;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,KACjC,OAAO,CAAC,IAAI,CAUd,CAAC"}
@@ -2,8 +2,9 @@ import type { EcdsaSignature } from '#internal/node';
2
2
  import type { ServerKeyShare } from '../../mpc/types.js';
3
3
  import type { DelegatedWalletClient } from '../createDelegatedClient.js';
4
4
  import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
5
- export declare const dynamicDelegatedSign: (client: DelegatedWalletClient, { walletId, message, isFormatted, walletApiKey, onError, context, }: {
5
+ export declare const dynamicDelegatedSign: (client: DelegatedWalletClient, { walletId, shareSetId, message, isFormatted, walletApiKey, onError, context, }: {
6
6
  walletId: string;
7
+ shareSetId: string;
7
8
  message: string | Uint8Array;
8
9
  isFormatted?: boolean;
9
10
  walletApiKey: string;
@@ -18,12 +19,14 @@ export declare const delegatedSign: (client: DelegatedWalletClient, { chainName,
18
19
  derivationPath: Uint32Array | undefined;
19
20
  isFormatted?: boolean;
20
21
  }) => Promise<Uint8Array | EcdsaSignature>;
21
- export declare const delegatedSignMessage: (client: DelegatedWalletClient, { walletId, walletApiKey, keyShare, message, chainName, isFormatted, onError, context, }: {
22
+ export declare const delegatedSignMessage: (client: DelegatedWalletClient, { walletId, shareSetId, walletApiKey, keyShare, message, chainName, derivationPath, isFormatted, onError, context, }: {
22
23
  walletId: string;
24
+ shareSetId: string;
23
25
  walletApiKey: string;
24
26
  keyShare: ServerKeyShare;
25
27
  message: string | Uint8Array;
26
28
  chainName: string;
29
+ derivationPath?: Uint32Array;
27
30
  isFormatted?: boolean;
28
31
  onError?: (error: Error) => void;
29
32
  context?: SignMessageContext;
@@ -1 +1 @@
1
- {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../../src/delegatedClient/modules/sign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIzD,O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