@dynamic-labs-wallet/node 1.1.14 → 1.1.16

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
@@ -372,6 +372,67 @@ const getKey = async ({ password, salt, encryptionConfig })=>{
372
372
  // walletId resolution server-side.
373
373
  const CEREMONY_COMPLETE_WAIT_MS = 5000;
374
374
 
375
+ const subtle = crypto.webcrypto.subtle;
376
+ const ALGO = {
377
+ name: 'ECDSA',
378
+ namedCurve: 'P-256'
379
+ };
380
+ const SIGN_ALGO = {
381
+ name: 'ECDSA',
382
+ hash: 'SHA-256'
383
+ };
384
+ /** Compress a 65-byte uncompressed SEC1 P-256 point to 33-byte compressed lowercase hex. */ const compress = (raw)=>{
385
+ if (raw.length !== 65 || raw[0] !== 0x04) {
386
+ throw new Error('expected a 65-byte uncompressed P-256 public key');
387
+ }
388
+ const x = Buffer.from(raw.slice(1, 33));
389
+ const prefix = (raw[64] & 1) === 0 ? 0x02 : 0x03;
390
+ return Buffer.concat([
391
+ Buffer.from([
392
+ prefix
393
+ ]),
394
+ x
395
+ ]).toString('hex');
396
+ };
397
+ /**
398
+ * Generates a P-256 session key pair for the signed-session flow.
399
+ *
400
+ * Returns the compressed public-key hex (bind it into the Dynamic JWT via the
401
+ * `x-dyn-session-public-key` header when you sign in) and the private JWK.
402
+ *
403
+ * Stateless and custody-agnostic: the SDK does NOT persist the key. YOU store
404
+ * `privateKeyJwk` wherever you keep secrets. The returned JWK is extractable
405
+ * (so it can be handed back to you) and is therefore a convenience path, not a
406
+ * security boundary — if you need a non-extractable key (so a host/operator
407
+ * cannot exfiltrate it), generate it in a KMS/HSM/enclave instead and supply a
408
+ * `getSessionSignature` that signs there.
409
+ */ async function generateSessionKeyPair() {
410
+ const keyPair = await subtle.generateKey(ALGO, true, [
411
+ 'sign',
412
+ 'verify'
413
+ ]);
414
+ const rawPublicKey = await subtle.exportKey('raw', keyPair.publicKey);
415
+ const exportedJwk = await subtle.exportKey('jwk', keyPair.privateKey);
416
+ const privateKeyJwk = exportedJwk;
417
+ return {
418
+ publicKeyHex: compress(new Uint8Array(rawPublicKey)),
419
+ privateKeyJwk
420
+ };
421
+ }
422
+ /**
423
+ * Signs a message with a P-256 session private JWK using the exact encoding the
424
+ * keyshares relay expects: ECDSA P-256 / SHA-256 over UTF-8(message), raw r‖s
425
+ * (64 bytes), lowercase hex. Use it to implement `getSessionSignature`:
426
+ * getSessionSignature: (message) => signSessionMessage(message, privateKeyJwk)
427
+ * The JWK is imported non-extractable for signing.
428
+ */ async function signSessionMessage(message, privateKeyJwk) {
429
+ const key = await subtle.importKey('jwk', privateKeyJwk, ALGO, false, [
430
+ 'sign'
431
+ ]);
432
+ const signature = await subtle.sign(SIGN_ALGO, key, new TextEncoder().encode(message));
433
+ return Buffer.from(new Uint8Array(signature)).toString('hex');
434
+ }
435
+
375
436
  class DynamicWalletClient {
376
437
  ensureApiClientAuthenticated() {
377
438
  if (!this.isApiClientAuthenticated) {
@@ -422,19 +483,54 @@ class DynamicWalletClient {
422
483
  this.nonceCache.length = 0;
423
484
  this.nonceRefill = undefined;
424
485
  this.nonceAuthGeneration += 1;
486
+ // Deliberately does not touch nonceApiClient: refreshAuthToken installs a
487
+ // refreshed JWT for the *same* session and must keep using the raw-token
488
+ // client for nonces. authenticateJwt and authenticateApiToken manage
489
+ // nonceApiClient themselves since only they know whether a raw token
490
+ // still applies to the new session.
425
491
  }
426
- async authenticateApiToken(authToken) {
492
+ /**
493
+ * Resolves the session key to bind into `authenticateApiToken`'s JWT.
494
+ *
495
+ * Defaults to generating a fresh session key per call (never persisted),
496
+ * mirroring the browser's rotate-on-reauth behavior. Pass `sessionPublicKey`
497
+ * + `getSessionSignature` together to supply your own instead — e.g. a
498
+ * stable key reused across calls, or one backed by a KMS/HSM/enclave signer.
499
+ */ async resolveSessionKey(options) {
500
+ if ((options == null ? void 0 : options.sessionPublicKey) || (options == null ? void 0 : options.getSessionSignature)) {
501
+ if (!options.sessionPublicKey || !options.getSessionSignature) {
502
+ throw new Error('authenticateApiToken: sessionPublicKey and getSessionSignature must be supplied together, or both omitted to auto-generate a session key.');
503
+ }
504
+ return {
505
+ publicKeyHex: options.sessionPublicKey,
506
+ getSessionSignature: options.getSessionSignature
507
+ };
508
+ }
509
+ const { publicKeyHex, privateKeyJwk } = await generateSessionKeyPair();
510
+ return {
511
+ publicKeyHex,
512
+ getSessionSignature: (message)=>signSessionMessage(message, privateKeyJwk)
513
+ };
514
+ }
515
+ async authenticateApiToken(authToken, options) {
427
516
  const tmpClient = new core$1.DynamicServerApiClient({
428
517
  environmentId: this.environmentId,
429
518
  authToken,
430
519
  baseApiUrl: this.baseApiUrl,
431
520
  logger: this.logger
432
521
  });
522
+ // Binds the resulting JWT's session_public_key claim, which server-side
523
+ // BA operations (e.g. addSigner's client-keyshare backup grant) require present.
524
+ const { publicKeyHex, getSessionSignature } = await this.resolveSessionKey(options);
433
525
  const response = await tmpClient.authenticateApiToken({
434
- environmentId: this.environmentId
526
+ environmentId: this.environmentId,
527
+ sessionPublicKey: publicKeyHex
435
528
  });
436
529
  this.setAuthenticatedJwt(response.data.encodedJwts.minifiedJwt);
437
- this.getSessionSignature = undefined; // drop any signer left from a prior authenticateJwt
530
+ this.getSessionSignature = getSessionSignature;
531
+ // /nonces is authenticated via DYN_API_TOKEN only — reuse the client
532
+ // already holding the raw token instead of the JWT-authenticated one.
533
+ this.nonceApiClient = tmpClient;
438
534
  }
439
535
  /**
440
536
  * Authenticates the client with a Dynamic user JWT obtained outside the SDK —
@@ -453,6 +549,9 @@ class DynamicWalletClient {
453
549
  throw new Error('Invalid JWT: expected a compact JWS with three dot-separated segments');
454
550
  }
455
551
  this.setAuthenticatedJwt(jwt);
552
+ // No raw API token backs this session — drop any raw-token client left
553
+ // over from a prior authenticateApiToken call on this instance.
554
+ this.nonceApiClient = undefined;
456
555
  this.getSessionSignature = options == null ? void 0 : options.getSessionSignature;
457
556
  }
458
557
  async buildSignedSessionId() {
@@ -494,8 +593,8 @@ class DynamicWalletClient {
494
593
  // A refill that lands after a re-auth belongs to the old session — drop it
495
594
  // (and leave the new session's refill slot alone) so stale nonces are never used.
496
595
  const generation = this.nonceAuthGeneration;
497
- var _this_nonceRefill;
498
- (_this_nonceRefill = this.nonceRefill) != null ? _this_nonceRefill : this.nonceRefill = this.apiClient.getNonces({
596
+ var _this_nonceApiClient, _this_nonceRefill;
597
+ (_this_nonceRefill = this.nonceRefill) != null ? _this_nonceRefill : this.nonceRefill = ((_this_nonceApiClient = this.nonceApiClient) != null ? _this_nonceApiClient : this.apiClient).getNonces({
499
598
  count: this.nonceBatchSize
500
599
  }).then(({ nonces })=>{
501
600
  if (!(nonces == null ? void 0 : nonces.length)) throw new Error('No session nonce available');
@@ -524,6 +623,15 @@ class DynamicWalletClient {
524
623
  return refreshedJwt;
525
624
  }
526
625
  /**
626
+ * Resolves this environment's server identity — a real userId the server
627
+ * itself is authenticated as, with no email/externalUserId of its own.
628
+ * Feed the returned userId into a business-account `addMember` call to add
629
+ * the server as a member.
630
+ */ async getServerIdentity() {
631
+ this.ensureApiClientAuthenticated();
632
+ return this.apiClient.getServerIdentity();
633
+ }
634
+ /**
527
635
  * Fetches non-sensitive wallet identity (walletId, accountAddress, chainName,
528
636
  * derivationPath, thresholdSignatureScheme) from the Dynamic API by
529
637
  * `accountAddress`. SDK-scoped — works with the customer auth token from
@@ -1030,6 +1138,12 @@ class DynamicWalletClient {
1030
1138
  }
1031
1139
  const walletId = walletMetadata.walletId;
1032
1140
  const derivationPathStr = walletMetadata.derivationPath;
1141
+ // The SSE handshake resolves on `room_created`, but server-side policy
1142
+ // evaluation runs after it — a denial arrives late as an SSE error event
1143
+ // through onError. Feed it into a gate raced against the ceremony join
1144
+ // so a rejection throws immediately instead of hanging until the relay
1145
+ // timeout.
1146
+ const sseErrorGate = core$1.createRejectablePromise();
1033
1147
  // Perform the dynamic server sign
1034
1148
  const data = await this.dynamicServerSign({
1035
1149
  walletId,
@@ -1037,34 +1151,47 @@ class DynamicWalletClient {
1037
1151
  isFormatted,
1038
1152
  context,
1039
1153
  bitcoinConfig,
1040
- onError
1154
+ onError: (error)=>{
1155
+ sseErrorGate.reject(error);
1156
+ onError == null ? void 0 : onError(error);
1157
+ }
1041
1158
  });
1042
1159
  const derivationPath = derivationPathStr && derivationPathStr != '' ? new Uint32Array(Object.values(JSON.parse(derivationPathStr))) : undefined;
1043
1160
  // Try forward MPC first if enabled, with fallback to relay-based signing on attestation failure
1044
- const forwardMpcSignature = await this.trySignViaForwardMpc({
1045
- chainName,
1046
- message,
1047
- roomId: data.roomId,
1048
- keyShare: resolvedShares[0],
1049
- derivationPath,
1050
- isFormatted,
1051
- walletId,
1052
- dynamicRequestId: data.dynamicRequestId,
1053
- bitcoinConfig
1054
- });
1055
- if (forwardMpcSignature !== undefined) {
1056
- return forwardMpcSignature;
1057
- }
1058
- // Relay-based signing (fallback or when forward MPC is disabled)
1059
- return await this.externalServerSign({
1060
- chainName,
1061
- message,
1062
- roomId: data.roomId,
1063
- keyShare: resolvedShares[0],
1064
- derivationPath,
1065
- isFormatted,
1066
- bitcoinConfig
1067
- });
1161
+ const ceremonyPromise = (async ()=>{
1162
+ const forwardMpcSignature = await this.trySignViaForwardMpc({
1163
+ chainName,
1164
+ message,
1165
+ roomId: data.roomId,
1166
+ keyShare: resolvedShares[0],
1167
+ derivationPath,
1168
+ isFormatted,
1169
+ walletId,
1170
+ dynamicRequestId: data.dynamicRequestId,
1171
+ bitcoinConfig
1172
+ });
1173
+ if (forwardMpcSignature !== undefined) {
1174
+ return forwardMpcSignature;
1175
+ }
1176
+ // Relay-based signing (fallback or when forward MPC is disabled)
1177
+ return this.externalServerSign({
1178
+ chainName,
1179
+ message,
1180
+ roomId: data.roomId,
1181
+ keyShare: resolvedShares[0],
1182
+ derivationPath,
1183
+ isFormatted,
1184
+ bitcoinConfig
1185
+ });
1186
+ })();
1187
+ // The losing branch's rejection (e.g. the relay timeout after a policy
1188
+ // denial already won the race) must not surface as unhandled.
1189
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1190
+ ceremonyPromise.catch(()=>{});
1191
+ return await Promise.race([
1192
+ ceremonyPromise,
1193
+ sseErrorGate.promise
1194
+ ]);
1068
1195
  } catch (error) {
1069
1196
  if (!(error instanceof Error && error.message === 'External server key shares are required to sign a message')) {
1070
1197
  this.logger.error('Error in sign', error);
@@ -2071,67 +2198,6 @@ class DynamicWalletClient {
2071
2198
  }
2072
2199
  }
2073
2200
 
2074
- const subtle = crypto.webcrypto.subtle;
2075
- const ALGO = {
2076
- name: 'ECDSA',
2077
- namedCurve: 'P-256'
2078
- };
2079
- const SIGN_ALGO = {
2080
- name: 'ECDSA',
2081
- hash: 'SHA-256'
2082
- };
2083
- /** Compress a 65-byte uncompressed SEC1 P-256 point to 33-byte compressed lowercase hex. */ const compress = (raw)=>{
2084
- if (raw.length !== 65 || raw[0] !== 0x04) {
2085
- throw new Error('expected a 65-byte uncompressed P-256 public key');
2086
- }
2087
- const x = Buffer.from(raw.slice(1, 33));
2088
- const prefix = (raw[64] & 1) === 0 ? 0x02 : 0x03;
2089
- return Buffer.concat([
2090
- Buffer.from([
2091
- prefix
2092
- ]),
2093
- x
2094
- ]).toString('hex');
2095
- };
2096
- /**
2097
- * Generates a P-256 session key pair for the signed-session flow.
2098
- *
2099
- * Returns the compressed public-key hex (bind it into the Dynamic JWT via the
2100
- * `x-dyn-session-public-key` header when you sign in) and the private JWK.
2101
- *
2102
- * Stateless and custody-agnostic: the SDK does NOT persist the key. YOU store
2103
- * `privateKeyJwk` wherever you keep secrets. The returned JWK is extractable
2104
- * (so it can be handed back to you) and is therefore a convenience path, not a
2105
- * security boundary — if you need a non-extractable key (so a host/operator
2106
- * cannot exfiltrate it), generate it in a KMS/HSM/enclave instead and supply a
2107
- * `getSessionSignature` that signs there.
2108
- */ async function generateSessionKeyPair() {
2109
- const keyPair = await subtle.generateKey(ALGO, true, [
2110
- 'sign',
2111
- 'verify'
2112
- ]);
2113
- const rawPublicKey = await subtle.exportKey('raw', keyPair.publicKey);
2114
- const exportedJwk = await subtle.exportKey('jwk', keyPair.privateKey);
2115
- const privateKeyJwk = exportedJwk;
2116
- return {
2117
- publicKeyHex: compress(new Uint8Array(rawPublicKey)),
2118
- privateKeyJwk
2119
- };
2120
- }
2121
- /**
2122
- * Signs a message with a P-256 session private JWK using the exact encoding the
2123
- * keyshares relay expects: ECDSA P-256 / SHA-256 over UTF-8(message), raw r‖s
2124
- * (64 bytes), lowercase hex. Use it to implement `getSessionSignature`:
2125
- * getSessionSignature: (message) => signSessionMessage(message, privateKeyJwk)
2126
- * The JWK is imported non-extractable for signing.
2127
- */ async function signSessionMessage(message, privateKeyJwk) {
2128
- const key = await subtle.importKey('jwk', privateKeyJwk, ALGO, false, [
2129
- 'sign'
2130
- ]);
2131
- const signature = await subtle.sign(SIGN_ALGO, key, new TextEncoder().encode(message));
2132
- return Buffer.from(new Uint8Array(signature)).toString('hex');
2133
- }
2134
-
2135
2201
  const createCore = ({ environmentId, baseApiUrl, baseMPCRelayApiUrl, debug = false, logger: logger$1 })=>{
2136
2202
  let coreLogger;
2137
2203
  if (logger$1) {
@@ -2243,19 +2309,27 @@ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey
2243
2309
  if (!walletApiKey) {
2244
2310
  throw new Error('walletApiKey is required');
2245
2311
  }
2312
+ // The SSE handshake resolves on `room_created`, but server-side policy
2313
+ // evaluation runs after it — a denial arrives late as an SSE error event
2314
+ // through onError. Feed it into a gate raced against the relay join so a
2315
+ // rejection throws immediately instead of hanging until the relay timeout.
2316
+ const sseErrorGate = core$1.createRejectablePromise();
2246
2317
  const data = await dynamicDelegatedSign(client, {
2247
2318
  walletId,
2248
2319
  shareSetId,
2249
2320
  walletApiKey,
2250
2321
  message,
2251
2322
  isFormatted,
2252
- onError,
2323
+ onError: (error)=>{
2324
+ sseErrorGate.reject(error);
2325
+ onError == null ? void 0 : onError(error);
2326
+ },
2253
2327
  context
2254
2328
  });
2255
2329
  // The wallet's pubkey was derived along the chain default at keygen,
2256
2330
  // so signing with anything else produces a non-verifying signature.
2257
2331
  const resolvedDerivationPath = derivationPath != null ? derivationPath : new Uint32Array(core$1.getMPCChainConfig(chainName).derivationPath);
2258
- const signature = await delegatedSign(client, {
2332
+ const signPromise = delegatedSign(client, {
2259
2333
  chainName,
2260
2334
  message,
2261
2335
  roomId: data.roomId,
@@ -2263,6 +2337,14 @@ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey
2263
2337
  derivationPath: resolvedDerivationPath,
2264
2338
  isFormatted
2265
2339
  });
2340
+ // The losing branch's rejection (e.g. the relay timeout after a policy
2341
+ // denial already won the race) must not surface as unhandled.
2342
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2343
+ signPromise.catch(()=>{});
2344
+ const signature = await Promise.race([
2345
+ signPromise,
2346
+ sseErrorGate.promise
2347
+ ]);
2266
2348
  return signature;
2267
2349
  };
2268
2350
 
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '#internal/core';
2
- import { MPC_RELAY_PROD_API_URL, DEFAULT_ED25519_VARIANT, getMPCChainConfig, BackupLocation, isAxiosError, handleAxiosError, Logger, DynamicServerApiClient, getClientThreshold, MPC_CONFIG, classifyForwardMpcError, getTSSConfig, serializeMessageForForwardMPC, getEnvironmentFromUrl, MPC_RELAY_URL_MAP, WalletOperation, getServerWalletReshareConfig, getRequiredExternalKeyShareId, verifiedCredentialNameToChainEnum, ThresholdSignatureScheme, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_FORWARD_MPC_ENCLAVE_URL_MAP, DYNAMIC_FORWARD_MPC_ENCLAVE_ATTESTATION_CONFIG_MAP } from '@dynamic-labs-wallet/core';
2
+ import { MPC_RELAY_PROD_API_URL, DEFAULT_ED25519_VARIANT, getMPCChainConfig, BackupLocation, isAxiosError, handleAxiosError, Logger, DynamicServerApiClient, getClientThreshold, MPC_CONFIG, classifyForwardMpcError, getTSSConfig, serializeMessageForForwardMPC, getEnvironmentFromUrl, MPC_RELAY_URL_MAP, WalletOperation, createRejectablePromise, getServerWalletReshareConfig, getRequiredExternalKeyShareId, verifiedCredentialNameToChainEnum, ThresholdSignatureScheme, DYNAMIC_AUTH_PROD_BASE_API_URL, DYNAMIC_FORWARD_MPC_ENCLAVE_URL_MAP, DYNAMIC_FORWARD_MPC_ENCLAVE_ATTESTATION_CONFIG_MAP } from '@dynamic-labs-wallet/core';
3
3
  export { SOLANA_RPC_URL, ThresholdSignatureScheme, WalletOperation, getMPCChainConfig } from '@dynamic-labs-wallet/core';
4
4
  import { SigningAlgorithm } from '@dynamic-labs-wallet/primitives';
5
5
  import { BIP340, Ed25519, ExportableEd25519, Ecdsa, MessageHash, EcdsaSignature, EcdsaKeygenResult, ExportableEd25519KeygenResult, BIP340KeygenResult } from '#internal/node';
@@ -372,6 +372,67 @@ const getKey = async ({ password, salt, encryptionConfig })=>{
372
372
  // walletId resolution server-side.
373
373
  const CEREMONY_COMPLETE_WAIT_MS = 5000;
374
374
 
375
+ const subtle = webcrypto.subtle;
376
+ const ALGO = {
377
+ name: 'ECDSA',
378
+ namedCurve: 'P-256'
379
+ };
380
+ const SIGN_ALGO = {
381
+ name: 'ECDSA',
382
+ hash: 'SHA-256'
383
+ };
384
+ /** Compress a 65-byte uncompressed SEC1 P-256 point to 33-byte compressed lowercase hex. */ const compress = (raw)=>{
385
+ if (raw.length !== 65 || raw[0] !== 0x04) {
386
+ throw new Error('expected a 65-byte uncompressed P-256 public key');
387
+ }
388
+ const x = Buffer.from(raw.slice(1, 33));
389
+ const prefix = (raw[64] & 1) === 0 ? 0x02 : 0x03;
390
+ return Buffer.concat([
391
+ Buffer.from([
392
+ prefix
393
+ ]),
394
+ x
395
+ ]).toString('hex');
396
+ };
397
+ /**
398
+ * Generates a P-256 session key pair for the signed-session flow.
399
+ *
400
+ * Returns the compressed public-key hex (bind it into the Dynamic JWT via the
401
+ * `x-dyn-session-public-key` header when you sign in) and the private JWK.
402
+ *
403
+ * Stateless and custody-agnostic: the SDK does NOT persist the key. YOU store
404
+ * `privateKeyJwk` wherever you keep secrets. The returned JWK is extractable
405
+ * (so it can be handed back to you) and is therefore a convenience path, not a
406
+ * security boundary — if you need a non-extractable key (so a host/operator
407
+ * cannot exfiltrate it), generate it in a KMS/HSM/enclave instead and supply a
408
+ * `getSessionSignature` that signs there.
409
+ */ async function generateSessionKeyPair() {
410
+ const keyPair = await subtle.generateKey(ALGO, true, [
411
+ 'sign',
412
+ 'verify'
413
+ ]);
414
+ const rawPublicKey = await subtle.exportKey('raw', keyPair.publicKey);
415
+ const exportedJwk = await subtle.exportKey('jwk', keyPair.privateKey);
416
+ const privateKeyJwk = exportedJwk;
417
+ return {
418
+ publicKeyHex: compress(new Uint8Array(rawPublicKey)),
419
+ privateKeyJwk
420
+ };
421
+ }
422
+ /**
423
+ * Signs a message with a P-256 session private JWK using the exact encoding the
424
+ * keyshares relay expects: ECDSA P-256 / SHA-256 over UTF-8(message), raw r‖s
425
+ * (64 bytes), lowercase hex. Use it to implement `getSessionSignature`:
426
+ * getSessionSignature: (message) => signSessionMessage(message, privateKeyJwk)
427
+ * The JWK is imported non-extractable for signing.
428
+ */ async function signSessionMessage(message, privateKeyJwk) {
429
+ const key = await subtle.importKey('jwk', privateKeyJwk, ALGO, false, [
430
+ 'sign'
431
+ ]);
432
+ const signature = await subtle.sign(SIGN_ALGO, key, new TextEncoder().encode(message));
433
+ return Buffer.from(new Uint8Array(signature)).toString('hex');
434
+ }
435
+
375
436
  class DynamicWalletClient {
376
437
  ensureApiClientAuthenticated() {
377
438
  if (!this.isApiClientAuthenticated) {
@@ -422,19 +483,54 @@ class DynamicWalletClient {
422
483
  this.nonceCache.length = 0;
423
484
  this.nonceRefill = undefined;
424
485
  this.nonceAuthGeneration += 1;
486
+ // Deliberately does not touch nonceApiClient: refreshAuthToken installs a
487
+ // refreshed JWT for the *same* session and must keep using the raw-token
488
+ // client for nonces. authenticateJwt and authenticateApiToken manage
489
+ // nonceApiClient themselves since only they know whether a raw token
490
+ // still applies to the new session.
425
491
  }
426
- async authenticateApiToken(authToken) {
492
+ /**
493
+ * Resolves the session key to bind into `authenticateApiToken`'s JWT.
494
+ *
495
+ * Defaults to generating a fresh session key per call (never persisted),
496
+ * mirroring the browser's rotate-on-reauth behavior. Pass `sessionPublicKey`
497
+ * + `getSessionSignature` together to supply your own instead — e.g. a
498
+ * stable key reused across calls, or one backed by a KMS/HSM/enclave signer.
499
+ */ async resolveSessionKey(options) {
500
+ if ((options == null ? void 0 : options.sessionPublicKey) || (options == null ? void 0 : options.getSessionSignature)) {
501
+ if (!options.sessionPublicKey || !options.getSessionSignature) {
502
+ throw new Error('authenticateApiToken: sessionPublicKey and getSessionSignature must be supplied together, or both omitted to auto-generate a session key.');
503
+ }
504
+ return {
505
+ publicKeyHex: options.sessionPublicKey,
506
+ getSessionSignature: options.getSessionSignature
507
+ };
508
+ }
509
+ const { publicKeyHex, privateKeyJwk } = await generateSessionKeyPair();
510
+ return {
511
+ publicKeyHex,
512
+ getSessionSignature: (message)=>signSessionMessage(message, privateKeyJwk)
513
+ };
514
+ }
515
+ async authenticateApiToken(authToken, options) {
427
516
  const tmpClient = new DynamicServerApiClient({
428
517
  environmentId: this.environmentId,
429
518
  authToken,
430
519
  baseApiUrl: this.baseApiUrl,
431
520
  logger: this.logger
432
521
  });
522
+ // Binds the resulting JWT's session_public_key claim, which server-side
523
+ // BA operations (e.g. addSigner's client-keyshare backup grant) require present.
524
+ const { publicKeyHex, getSessionSignature } = await this.resolveSessionKey(options);
433
525
  const response = await tmpClient.authenticateApiToken({
434
- environmentId: this.environmentId
526
+ environmentId: this.environmentId,
527
+ sessionPublicKey: publicKeyHex
435
528
  });
436
529
  this.setAuthenticatedJwt(response.data.encodedJwts.minifiedJwt);
437
- this.getSessionSignature = undefined; // drop any signer left from a prior authenticateJwt
530
+ this.getSessionSignature = getSessionSignature;
531
+ // /nonces is authenticated via DYN_API_TOKEN only — reuse the client
532
+ // already holding the raw token instead of the JWT-authenticated one.
533
+ this.nonceApiClient = tmpClient;
438
534
  }
439
535
  /**
440
536
  * Authenticates the client with a Dynamic user JWT obtained outside the SDK —
@@ -453,6 +549,9 @@ class DynamicWalletClient {
453
549
  throw new Error('Invalid JWT: expected a compact JWS with three dot-separated segments');
454
550
  }
455
551
  this.setAuthenticatedJwt(jwt);
552
+ // No raw API token backs this session — drop any raw-token client left
553
+ // over from a prior authenticateApiToken call on this instance.
554
+ this.nonceApiClient = undefined;
456
555
  this.getSessionSignature = options == null ? void 0 : options.getSessionSignature;
457
556
  }
458
557
  async buildSignedSessionId() {
@@ -494,8 +593,8 @@ class DynamicWalletClient {
494
593
  // A refill that lands after a re-auth belongs to the old session — drop it
495
594
  // (and leave the new session's refill slot alone) so stale nonces are never used.
496
595
  const generation = this.nonceAuthGeneration;
497
- var _this_nonceRefill;
498
- (_this_nonceRefill = this.nonceRefill) != null ? _this_nonceRefill : this.nonceRefill = this.apiClient.getNonces({
596
+ var _this_nonceApiClient, _this_nonceRefill;
597
+ (_this_nonceRefill = this.nonceRefill) != null ? _this_nonceRefill : this.nonceRefill = ((_this_nonceApiClient = this.nonceApiClient) != null ? _this_nonceApiClient : this.apiClient).getNonces({
499
598
  count: this.nonceBatchSize
500
599
  }).then(({ nonces })=>{
501
600
  if (!(nonces == null ? void 0 : nonces.length)) throw new Error('No session nonce available');
@@ -524,6 +623,15 @@ class DynamicWalletClient {
524
623
  return refreshedJwt;
525
624
  }
526
625
  /**
626
+ * Resolves this environment's server identity — a real userId the server
627
+ * itself is authenticated as, with no email/externalUserId of its own.
628
+ * Feed the returned userId into a business-account `addMember` call to add
629
+ * the server as a member.
630
+ */ async getServerIdentity() {
631
+ this.ensureApiClientAuthenticated();
632
+ return this.apiClient.getServerIdentity();
633
+ }
634
+ /**
527
635
  * Fetches non-sensitive wallet identity (walletId, accountAddress, chainName,
528
636
  * derivationPath, thresholdSignatureScheme) from the Dynamic API by
529
637
  * `accountAddress`. SDK-scoped — works with the customer auth token from
@@ -1030,6 +1138,12 @@ class DynamicWalletClient {
1030
1138
  }
1031
1139
  const walletId = walletMetadata.walletId;
1032
1140
  const derivationPathStr = walletMetadata.derivationPath;
1141
+ // The SSE handshake resolves on `room_created`, but server-side policy
1142
+ // evaluation runs after it — a denial arrives late as an SSE error event
1143
+ // through onError. Feed it into a gate raced against the ceremony join
1144
+ // so a rejection throws immediately instead of hanging until the relay
1145
+ // timeout.
1146
+ const sseErrorGate = createRejectablePromise();
1033
1147
  // Perform the dynamic server sign
1034
1148
  const data = await this.dynamicServerSign({
1035
1149
  walletId,
@@ -1037,34 +1151,47 @@ class DynamicWalletClient {
1037
1151
  isFormatted,
1038
1152
  context,
1039
1153
  bitcoinConfig,
1040
- onError
1154
+ onError: (error)=>{
1155
+ sseErrorGate.reject(error);
1156
+ onError == null ? void 0 : onError(error);
1157
+ }
1041
1158
  });
1042
1159
  const derivationPath = derivationPathStr && derivationPathStr != '' ? new Uint32Array(Object.values(JSON.parse(derivationPathStr))) : undefined;
1043
1160
  // Try forward MPC first if enabled, with fallback to relay-based signing on attestation failure
1044
- const forwardMpcSignature = await this.trySignViaForwardMpc({
1045
- chainName,
1046
- message,
1047
- roomId: data.roomId,
1048
- keyShare: resolvedShares[0],
1049
- derivationPath,
1050
- isFormatted,
1051
- walletId,
1052
- dynamicRequestId: data.dynamicRequestId,
1053
- bitcoinConfig
1054
- });
1055
- if (forwardMpcSignature !== undefined) {
1056
- return forwardMpcSignature;
1057
- }
1058
- // Relay-based signing (fallback or when forward MPC is disabled)
1059
- return await this.externalServerSign({
1060
- chainName,
1061
- message,
1062
- roomId: data.roomId,
1063
- keyShare: resolvedShares[0],
1064
- derivationPath,
1065
- isFormatted,
1066
- bitcoinConfig
1067
- });
1161
+ const ceremonyPromise = (async ()=>{
1162
+ const forwardMpcSignature = await this.trySignViaForwardMpc({
1163
+ chainName,
1164
+ message,
1165
+ roomId: data.roomId,
1166
+ keyShare: resolvedShares[0],
1167
+ derivationPath,
1168
+ isFormatted,
1169
+ walletId,
1170
+ dynamicRequestId: data.dynamicRequestId,
1171
+ bitcoinConfig
1172
+ });
1173
+ if (forwardMpcSignature !== undefined) {
1174
+ return forwardMpcSignature;
1175
+ }
1176
+ // Relay-based signing (fallback or when forward MPC is disabled)
1177
+ return this.externalServerSign({
1178
+ chainName,
1179
+ message,
1180
+ roomId: data.roomId,
1181
+ keyShare: resolvedShares[0],
1182
+ derivationPath,
1183
+ isFormatted,
1184
+ bitcoinConfig
1185
+ });
1186
+ })();
1187
+ // The losing branch's rejection (e.g. the relay timeout after a policy
1188
+ // denial already won the race) must not surface as unhandled.
1189
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1190
+ ceremonyPromise.catch(()=>{});
1191
+ return await Promise.race([
1192
+ ceremonyPromise,
1193
+ sseErrorGate.promise
1194
+ ]);
1068
1195
  } catch (error) {
1069
1196
  if (!(error instanceof Error && error.message === 'External server key shares are required to sign a message')) {
1070
1197
  this.logger.error('Error in sign', error);
@@ -2071,67 +2198,6 @@ class DynamicWalletClient {
2071
2198
  }
2072
2199
  }
2073
2200
 
2074
- const subtle = webcrypto.subtle;
2075
- const ALGO = {
2076
- name: 'ECDSA',
2077
- namedCurve: 'P-256'
2078
- };
2079
- const SIGN_ALGO = {
2080
- name: 'ECDSA',
2081
- hash: 'SHA-256'
2082
- };
2083
- /** Compress a 65-byte uncompressed SEC1 P-256 point to 33-byte compressed lowercase hex. */ const compress = (raw)=>{
2084
- if (raw.length !== 65 || raw[0] !== 0x04) {
2085
- throw new Error('expected a 65-byte uncompressed P-256 public key');
2086
- }
2087
- const x = Buffer.from(raw.slice(1, 33));
2088
- const prefix = (raw[64] & 1) === 0 ? 0x02 : 0x03;
2089
- return Buffer.concat([
2090
- Buffer.from([
2091
- prefix
2092
- ]),
2093
- x
2094
- ]).toString('hex');
2095
- };
2096
- /**
2097
- * Generates a P-256 session key pair for the signed-session flow.
2098
- *
2099
- * Returns the compressed public-key hex (bind it into the Dynamic JWT via the
2100
- * `x-dyn-session-public-key` header when you sign in) and the private JWK.
2101
- *
2102
- * Stateless and custody-agnostic: the SDK does NOT persist the key. YOU store
2103
- * `privateKeyJwk` wherever you keep secrets. The returned JWK is extractable
2104
- * (so it can be handed back to you) and is therefore a convenience path, not a
2105
- * security boundary — if you need a non-extractable key (so a host/operator
2106
- * cannot exfiltrate it), generate it in a KMS/HSM/enclave instead and supply a
2107
- * `getSessionSignature` that signs there.
2108
- */ async function generateSessionKeyPair() {
2109
- const keyPair = await subtle.generateKey(ALGO, true, [
2110
- 'sign',
2111
- 'verify'
2112
- ]);
2113
- const rawPublicKey = await subtle.exportKey('raw', keyPair.publicKey);
2114
- const exportedJwk = await subtle.exportKey('jwk', keyPair.privateKey);
2115
- const privateKeyJwk = exportedJwk;
2116
- return {
2117
- publicKeyHex: compress(new Uint8Array(rawPublicKey)),
2118
- privateKeyJwk
2119
- };
2120
- }
2121
- /**
2122
- * Signs a message with a P-256 session private JWK using the exact encoding the
2123
- * keyshares relay expects: ECDSA P-256 / SHA-256 over UTF-8(message), raw r‖s
2124
- * (64 bytes), lowercase hex. Use it to implement `getSessionSignature`:
2125
- * getSessionSignature: (message) => signSessionMessage(message, privateKeyJwk)
2126
- * The JWK is imported non-extractable for signing.
2127
- */ async function signSessionMessage(message, privateKeyJwk) {
2128
- const key = await subtle.importKey('jwk', privateKeyJwk, ALGO, false, [
2129
- 'sign'
2130
- ]);
2131
- const signature = await subtle.sign(SIGN_ALGO, key, new TextEncoder().encode(message));
2132
- return Buffer.from(new Uint8Array(signature)).toString('hex');
2133
- }
2134
-
2135
2201
  const createCore = ({ environmentId, baseApiUrl, baseMPCRelayApiUrl, debug = false, logger })=>{
2136
2202
  let coreLogger;
2137
2203
  if (logger) {
@@ -2243,19 +2309,27 @@ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey
2243
2309
  if (!walletApiKey) {
2244
2310
  throw new Error('walletApiKey is required');
2245
2311
  }
2312
+ // The SSE handshake resolves on `room_created`, but server-side policy
2313
+ // evaluation runs after it — a denial arrives late as an SSE error event
2314
+ // through onError. Feed it into a gate raced against the relay join so a
2315
+ // rejection throws immediately instead of hanging until the relay timeout.
2316
+ const sseErrorGate = createRejectablePromise();
2246
2317
  const data = await dynamicDelegatedSign(client, {
2247
2318
  walletId,
2248
2319
  shareSetId,
2249
2320
  walletApiKey,
2250
2321
  message,
2251
2322
  isFormatted,
2252
- onError,
2323
+ onError: (error)=>{
2324
+ sseErrorGate.reject(error);
2325
+ onError == null ? void 0 : onError(error);
2326
+ },
2253
2327
  context
2254
2328
  });
2255
2329
  // The wallet's pubkey was derived along the chain default at keygen,
2256
2330
  // so signing with anything else produces a non-verifying signature.
2257
2331
  const resolvedDerivationPath = derivationPath != null ? derivationPath : new Uint32Array(getMPCChainConfig(chainName).derivationPath);
2258
- const signature = await delegatedSign(client, {
2332
+ const signPromise = delegatedSign(client, {
2259
2333
  chainName,
2260
2334
  message,
2261
2335
  roomId: data.roomId,
@@ -2263,6 +2337,14 @@ const delegatedSignMessage = async (client, { walletId, shareSetId, walletApiKey
2263
2337
  derivationPath: resolvedDerivationPath,
2264
2338
  isFormatted
2265
2339
  });
2340
+ // The losing branch's rejection (e.g. the relay timeout after a policy
2341
+ // denial already won the race) must not surface as unhandled.
2342
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2343
+ signPromise.catch(()=>{});
2344
+ const signature = await Promise.race([
2345
+ signPromise,
2346
+ sseErrorGate.promise
2347
+ ]);
2266
2348
  return signature;
2267
2349
  };
2268
2350
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
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.1.14",
7
+ "@dynamic-labs-wallet/core": "1.1.16",
8
8
  "@dynamic-labs-wallet/forward-mpc-client": "2.0.2",
9
- "@dynamic-labs-wallet/primitives": "1.1.14",
9
+ "@dynamic-labs-wallet/primitives": "1.1.16",
10
10
  "@dynamic-labs/logger": "^5.0.0",
11
11
  "@dynamic-labs/sdk-api-core": "^0.16.0",
12
12
  "uuid": "11.1.0",
package/src/client.d.ts CHANGED
@@ -22,6 +22,7 @@ export declare class DynamicWalletClient {
22
22
  private readonly nonceCache;
23
23
  private nonceRefill?;
24
24
  private nonceAuthGeneration;
25
+ private nonceApiClient?;
25
26
  constructor({ environmentId, baseApiUrl, baseMPCRelayApiUrl, debug, forwardMPCClient, enableMPCAccelerator, logger, }: DynamicWalletClientProps);
26
27
  private ensureApiClientAuthenticated;
27
28
  /**
@@ -40,7 +41,21 @@ export declare class DynamicWalletClient {
40
41
  * and rebuilds the API client, preserving the forward-MPC client.
41
42
  */
42
43
  private setAuthenticatedJwt;
43
- authenticateApiToken(authToken: string): Promise<void>;
44
+ /**
45
+ * Resolves the session key to bind into `authenticateApiToken`'s JWT.
46
+ *
47
+ * Defaults to generating a fresh session key per call (never persisted),
48
+ * mirroring the browser's rotate-on-reauth behavior. Pass `sessionPublicKey`
49
+ * + `getSessionSignature` together to supply your own instead — e.g. a
50
+ * stable key reused across calls, or one backed by a KMS/HSM/enclave signer.
51
+ */
52
+ private resolveSessionKey;
53
+ authenticateApiToken(authToken: string, options?: {
54
+ /** Compressed P-256 public key hex, bound into the JWT's `session_public_key` claim. Must be supplied together with `getSessionSignature`. */
55
+ sessionPublicKey?: string;
56
+ /** Signs with the private key backing `sessionPublicKey` (see `signSessionMessage`, or your own KMS/HSM/enclave signer). Must be supplied together with `sessionPublicKey`. */
57
+ getSessionSignature?: (message: string) => Promise<string>;
58
+ }): Promise<void>;
44
59
  /**
45
60
  * Authenticates the client with a Dynamic user JWT obtained outside the SDK —
46
61
  * e.g. by an agent that completed a Dynamic sign-in (external auth, email OTP)
@@ -66,6 +81,15 @@ export declare class DynamicWalletClient {
66
81
  * must re-authenticate.
67
82
  */
68
83
  refreshAuthToken(): Promise<string>;
84
+ /**
85
+ * Resolves this environment's server identity — a real userId the server
86
+ * itself is authenticated as, with no email/externalUserId of its own.
87
+ * Feed the returned userId into a business-account `addMember` call to add
88
+ * the server as a member.
89
+ */
90
+ getServerIdentity(): Promise<{
91
+ userId: string;
92
+ }>;
69
93
  /**
70
94
  * Fetches non-sensitive wallet identity (walletId, accountAddress, chainName,
71
95
  * derivationPath, thresholdSignatureScheme) from the Dynamic API by
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../packages/src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,KAAK,EACL,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EAEjB,WAAW,EACX,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,cAAc,EAGd,KAAK,gBAAgB,EAKrB,wBAAwB,EACxB,KAAK,OAAO,EAEZ,eAAe,EAUf,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,YAAY,EAGlB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAyB,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAI5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAQ7F,KAAK,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAErE,qBAAa,mBAAmB;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC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