@dynamic-labs/bitcoin 4.69.0 → 4.71.0

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/CHANGELOG.md CHANGED
@@ -1,4 +1,38 @@
1
1
 
2
+ ## [4.71.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.70.0...v4.71.0) (2026-03-24)
3
+
4
+
5
+ ### Features
6
+
7
+ * add Tempo chain connector and core type definitions ([#10672](https://github.com/dynamic-labs/dynamic-auth/issues/10672)) ([0439c15](https://github.com/dynamic-labs/dynamic-auth/commit/0439c153238359083b9f226dcd2ebf6d83e26519))
8
+ * add verifySocial method to demo site step-up auth methods ([#10721](https://github.com/dynamic-labs/dynamic-auth/issues/10721)) ([b9ef517](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef5173df3e3ed08f718de49b036ea899dc1832))
9
+ * **demo:** add Tempo chain support to demo app ([#10674](https://github.com/dynamic-labs/dynamic-auth/issues/10674)) ([a5918fc](https://github.com/dynamic-labs/dynamic-auth/commit/a5918fc2ab0821e7f025aa470573129f71de33cc))
10
+ * repurpose verifyWithExternalJwt for elevated access token requests ([#10743](https://github.com/dynamic-labs/dynamic-auth/issues/10743)) ([d1abda0](https://github.com/dynamic-labs/dynamic-auth/commit/d1abda0111d68c78226d30bd0630e6e341dedad9))
11
+ * **sdk:** add Tempo chain support to UI components ([#10673](https://github.com/dynamic-labs/dynamic-auth/issues/10673)) ([aec9fbb](https://github.com/dynamic-labs/dynamic-auth/commit/aec9fbb20754a2935bffe106e7e8715f46be3de7))
12
+ * support multi-chain wallet creation in createWallet ([#10694](https://github.com/dynamic-labs/dynamic-auth/issues/10694)) ([0b6b57f](https://github.com/dynamic-labs/dynamic-auth/commit/0b6b57f4179c35d1f86d1c8c9c40f52cb307c849))
13
+ * wire up elevatedAccessToken for sign, reshare, and refresh operations ([#10737](https://github.com/dynamic-labs/dynamic-auth/issues/10737)) ([f9d5c76](https://github.com/dynamic-labs/dynamic-auth/commit/f9d5c768037aff4f5d7994b6bc6c338621a6ee6b))
14
+
15
+ ## [4.70.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.69.0...v4.70.0) (2026-03-23)
16
+
17
+
18
+ ### Features
19
+
20
+ * add step-up auth for passkey and TOTP device deletion ([#10688](https://github.com/dynamic-labs/dynamic-auth/issues/10688)) ([aeae325](https://github.com/dynamic-labs/dynamic-auth/commit/aeae32551d3e29c59a1d183984f1d9f00f1df2cb))
21
+ * add stepup authMode to useSocialAuth for OAuth step-up authentication ([#10701](https://github.com/dynamic-labs/dynamic-auth/issues/10701)) ([f8ac0e4](https://github.com/dynamic-labs/dynamic-auth/commit/f8ac0e4a6a039e61d1c83e434e2f678981ff3911))
22
+ * add StepUpReauthSocialView and wire social option in step-up reauth UI ([#10703](https://github.com/dynamic-labs/dynamic-auth/issues/10703)) ([a49393f](https://github.com/dynamic-labs/dynamic-auth/commit/a49393f54a8f210f9cbca892339c3012d38cc5c2))
23
+ * add useStepUpSocial and extend step-up auth for OAuth reauthentication ([#10702](https://github.com/dynamic-labs/dynamic-auth/issues/10702)) ([fb7e21d](https://github.com/dynamic-labs/dynamic-auth/commit/fb7e21d47b3e40659ae3b8ca9321efe1d4401e60))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * aleo defaulting to testnet when connecting ([#10726](https://github.com/dynamic-labs/dynamic-auth/issues/10726)) ([24b0378](https://github.com/dynamic-labs/dynamic-auth/commit/24b0378a25902f5a134940aeeadc9846058d6fb1))
29
+ * override basic-ftp to >=5.2.0 (CVE-2026-27699) ([#10715](https://github.com/dynamic-labs/dynamic-auth/issues/10715)) ([b68a405](https://github.com/dynamic-labs/dynamic-auth/commit/b68a405453f0ea7e04c14492c195b46fbf25b47e))
30
+ * override minimatch to patched versions (CVE-2026-26996) ([#10718](https://github.com/dynamic-labs/dynamic-auth/issues/10718)) ([a69aaee](https://github.com/dynamic-labs/dynamic-auth/commit/a69aaee0859b7e1292a244abde7084f7c4cfdb72))
31
+ * override simple-git to >=3.32.3 (CVE-2026-28292) ([#10717](https://github.com/dynamic-labs/dynamic-auth/issues/10717)) ([8b86545](https://github.com/dynamic-labs/dynamic-auth/commit/8b865453737e4ff0ef9e8d0fbb99ea5f0359af3b))
32
+ * revert session chaining PR to fix IndexedDB webview crash ([#10710](https://github.com/dynamic-labs/dynamic-auth/issues/10710)) ([c4dfe66](https://github.com/dynamic-labs/dynamic-auth/commit/c4dfe66f73e6b9b7115260b06fd90fc0a167e139)), closes [#10706](https://github.com/dynamic-labs/dynamic-auth/issues/10706) [#10423](https://github.com/dynamic-labs/dynamic-auth/issues/10423) [#10423](https://github.com/dynamic-labs/dynamic-auth/issues/10423) [#10706](https://github.com/dynamic-labs/dynamic-auth/issues/10706) [#10423](https://github.com/dynamic-labs/dynamic-auth/issues/10423)
33
+ * update tar, serialize-javascript, svgo overrides ([#10727](https://github.com/dynamic-labs/dynamic-auth/issues/10727)) ([3c764f7](https://github.com/dynamic-labs/dynamic-auth/commit/3c764f71ce2870075eaa800389719a46d8dac233))
34
+ * upgrade rollup to patched versions (CVE-2026-27606) ([#10724](https://github.com/dynamic-labs/dynamic-auth/issues/10724)) ([735133e](https://github.com/dynamic-labs/dynamic-auth/commit/735133e6d4129cad20ae82b86f9507ab9227b36e))
35
+
2
36
  ## [4.69.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.68.0...v4.69.0) (2026-03-19)
3
37
 
4
38
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.69.0";
6
+ var version = "4.71.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.69.0";
2
+ var version = "4.71.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "4.69.0",
3
+ "version": "4.71.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,23 +18,23 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/browser-wallet-client": "0.0.289",
21
+ "@dynamic-labs-wallet/browser-wallet-client": "0.0.314",
22
22
  "@bitcoinerlab/secp256k1": "1.1.1",
23
23
  "@btckit/types": "0.0.19",
24
- "@dynamic-labs/sdk-api-core": "0.0.907",
24
+ "@dynamic-labs/sdk-api-core": "0.0.909",
25
25
  "@wallet-standard/app": "1.0.1",
26
26
  "@wallet-standard/base": "1.0.1",
27
27
  "bitcoinjs-lib": "6.1.5",
28
28
  "ecpair": "2.1.0",
29
29
  "sats-connect": "4.2.1",
30
30
  "jsontokens": "4.0.1",
31
- "@dynamic-labs/assert-package-version": "4.69.0",
32
- "@dynamic-labs/logger": "4.69.0",
33
- "@dynamic-labs/types": "4.69.0",
34
- "@dynamic-labs/utils": "4.69.0",
35
- "@dynamic-labs/waas": "4.69.0",
36
- "@dynamic-labs/wallet-book": "4.69.0",
37
- "@dynamic-labs/wallet-connector-core": "4.69.0",
31
+ "@dynamic-labs/assert-package-version": "4.71.0",
32
+ "@dynamic-labs/logger": "4.71.0",
33
+ "@dynamic-labs/types": "4.71.0",
34
+ "@dynamic-labs/utils": "4.71.0",
35
+ "@dynamic-labs/waas": "4.71.0",
36
+ "@dynamic-labs/wallet-book": "4.71.0",
37
+ "@dynamic-labs/wallet-connector-core": "4.71.0",
38
38
  "eventemitter3": "5.0.1"
39
39
  },
40
40
  "peerDependencies": {}
@@ -176,7 +176,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
176
176
  */
177
177
  signPsbt(request) {
178
178
  return _tslib.__awaiter(this, void 0, void 0, function* () {
179
- var _a, _b, _c;
179
+ var _a, _b, _c, _d;
180
180
  const walletClient = yield this.getWaasWalletClient();
181
181
  if (!this.activeAccountAddress) {
182
182
  throw new utils.DynamicError('Active account address is required');
@@ -188,11 +188,15 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
188
188
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
189
189
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
190
190
  }));
191
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
192
+ scope: sdkApiCore.TokenScope.Walletsign,
193
+ }));
191
194
  const password = yield this.getPasswordIfNeeded({
192
195
  accountAddress: this.activeAccountAddress,
193
196
  });
194
197
  const signedTransaction = yield walletClient.signTransaction({
195
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
198
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
199
+ elevatedAccessToken,
196
200
  mfaToken,
197
201
  password,
198
202
  senderAddress: this.activeAccountAddress,
@@ -360,7 +364,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
360
364
  */
361
365
  signMessageWithContext(_a) {
362
366
  return _tslib.__awaiter(this, arguments, void 0, function* ({ message, context, }) {
363
- var _b, _c, _d;
367
+ var _b, _c, _d, _e;
364
368
  const walletClient = yield this.getWaasWalletClient();
365
369
  if (!this.activeAccountAddress) {
366
370
  throw new utils.DynamicError('Active account address is required');
@@ -372,14 +376,18 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
372
376
  const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
373
377
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
374
378
  }));
379
+ const elevatedAccessToken = yield ((_d = this.getElevatedAccessToken) === null || _d === void 0 ? void 0 : _d.call(this, {
380
+ scope: sdkApiCore.TokenScope.Walletsign,
381
+ }));
375
382
  const password = yield this.getPasswordIfNeeded({
376
383
  accountAddress: this.activeAccountAddress,
377
384
  });
378
385
  const messageString = typeof message === 'string' ? message : message.raw;
379
386
  return walletClient.signMessage({
380
387
  accountAddress: this.activeAccountAddress,
381
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
388
+ authToken: (_e = this.getAuthToken) === null || _e === void 0 ? void 0 : _e.call(this),
382
389
  context,
390
+ elevatedAccessToken,
383
391
  message: messageString,
384
392
  mfaToken,
385
393
  password,
@@ -569,7 +577,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
569
577
  */
570
578
  internalSignMessage(message) {
571
579
  return _tslib.__awaiter(this, void 0, void 0, function* () {
572
- var _a, _b, _c;
580
+ var _a, _b, _c, _d;
573
581
  const walletClient = yield this.getWaasWalletClient();
574
582
  if (!this.activeAccountAddress) {
575
583
  throw new utils.DynamicError('Active account address is required');
@@ -581,15 +589,19 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
581
589
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
582
590
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
583
591
  }));
592
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
593
+ scope: sdkApiCore.TokenScope.Walletsign,
594
+ }));
584
595
  const password = yield this.getPasswordIfNeeded({
585
596
  accountAddress: this.activeAccountAddress,
586
597
  });
587
598
  return walletClient.signMessage({
588
599
  accountAddress: this.activeAccountAddress,
589
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
600
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
590
601
  bitcoinConfig: {
591
602
  network: yield this.getBitcoinNetworkEnum(),
592
603
  },
604
+ elevatedAccessToken,
593
605
  message,
594
606
  mfaToken,
595
607
  password,
@@ -1,6 +1,6 @@
1
1
  import { BitcoinConfig } from '@dynamic-labs-wallet/browser-wallet-client';
2
2
  import { Logger } from '@dynamic-labs/logger';
3
- import { JwtVerifiedCredential, MFAAction, SignMessageContext } from '@dynamic-labs/sdk-api-core';
3
+ import { JwtVerifiedCredential, MFAAction, SignMessageContext, TokenScope } from '@dynamic-labs/sdk-api-core';
4
4
  import { GenericNetwork, IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
5
5
  import { BitcoinSignPsbtResponse, Chain, IDynamicWaasConnector, ISendBalanceWalletConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
6
6
  import type { DynamicWaasBitcoinConnectorProps, ParsedTransaction } from '../../types';
@@ -18,7 +18,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
18
18
  getWalletPassword?: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn | undefined;
19
19
  getAuthToken?: (() => string) | undefined;
20
20
  getElevatedAccessToken?: ((props: {
21
- scope: import("@dynamic-labs/sdk-api-core").TokenScope;
21
+ scope: TokenScope;
22
22
  }) => Promise<string | undefined>) | undefined;
23
23
  environmentId?: string | undefined;
24
24
  baseApiUrl?: string | undefined;
@@ -36,7 +36,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
36
36
  mfaAction?: MFAAction | undefined;
37
37
  } | undefined) => Promise<string | undefined>): void;
38
38
  setGetElevatedAccessTokenFunction(getElevatedAccessToken: (params: {
39
- scope: import("@dynamic-labs/sdk-api-core").TokenScope;
39
+ scope: TokenScope;
40
40
  }) => Promise<string | undefined>): void;
41
41
  setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
42
42
  getPasswordIfNeeded({ accountAddress, }: {
@@ -122,11 +122,6 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
122
122
  accountAddress: string;
123
123
  newPassword: string;
124
124
  }): Promise<void>;
125
- /**
126
- * Maps Dynamic's networkId to BitcoinNetwork enum for internal WaaS API calls
127
- * Uses the current network from getNetwork() to determine the BitcoinNetwork value
128
- * @returns The corresponding BitcoinNetwork enum value for the current network
129
- */
130
125
  signRawMessage({ accountAddress, message, password, }: {
131
126
  accountAddress: string;
132
127
  message: string;
@@ -2,7 +2,7 @@
2
2
  import { __awaiter } from '../../../_virtual/_tslib.js';
3
3
  import { networks, Psbt } from 'bitcoinjs-lib';
4
4
  import { Logger } from '@dynamic-labs/logger';
5
- import { MFAAction } from '@dynamic-labs/sdk-api-core';
5
+ import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
6
6
  import { DynamicError } from '@dynamic-labs/utils';
7
7
  import { withDynamicWaas } from '@dynamic-labs/waas';
8
8
  import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
@@ -172,7 +172,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
172
172
  */
173
173
  signPsbt(request) {
174
174
  return __awaiter(this, void 0, void 0, function* () {
175
- var _a, _b, _c;
175
+ var _a, _b, _c, _d;
176
176
  const walletClient = yield this.getWaasWalletClient();
177
177
  if (!this.activeAccountAddress) {
178
178
  throw new DynamicError('Active account address is required');
@@ -184,11 +184,15 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
184
184
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
185
185
  mfaAction: MFAAction.WalletWaasSign,
186
186
  }));
187
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
188
+ scope: TokenScope.Walletsign,
189
+ }));
187
190
  const password = yield this.getPasswordIfNeeded({
188
191
  accountAddress: this.activeAccountAddress,
189
192
  });
190
193
  const signedTransaction = yield walletClient.signTransaction({
191
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
194
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
195
+ elevatedAccessToken,
192
196
  mfaToken,
193
197
  password,
194
198
  senderAddress: this.activeAccountAddress,
@@ -356,7 +360,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
356
360
  */
357
361
  signMessageWithContext(_a) {
358
362
  return __awaiter(this, arguments, void 0, function* ({ message, context, }) {
359
- var _b, _c, _d;
363
+ var _b, _c, _d, _e;
360
364
  const walletClient = yield this.getWaasWalletClient();
361
365
  if (!this.activeAccountAddress) {
362
366
  throw new DynamicError('Active account address is required');
@@ -368,14 +372,18 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
368
372
  const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
369
373
  mfaAction: MFAAction.WalletWaasSign,
370
374
  }));
375
+ const elevatedAccessToken = yield ((_d = this.getElevatedAccessToken) === null || _d === void 0 ? void 0 : _d.call(this, {
376
+ scope: TokenScope.Walletsign,
377
+ }));
371
378
  const password = yield this.getPasswordIfNeeded({
372
379
  accountAddress: this.activeAccountAddress,
373
380
  });
374
381
  const messageString = typeof message === 'string' ? message : message.raw;
375
382
  return walletClient.signMessage({
376
383
  accountAddress: this.activeAccountAddress,
377
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
384
+ authToken: (_e = this.getAuthToken) === null || _e === void 0 ? void 0 : _e.call(this),
378
385
  context,
386
+ elevatedAccessToken,
379
387
  message: messageString,
380
388
  mfaToken,
381
389
  password,
@@ -565,7 +573,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
565
573
  */
566
574
  internalSignMessage(message) {
567
575
  return __awaiter(this, void 0, void 0, function* () {
568
- var _a, _b, _c;
576
+ var _a, _b, _c, _d;
569
577
  const walletClient = yield this.getWaasWalletClient();
570
578
  if (!this.activeAccountAddress) {
571
579
  throw new DynamicError('Active account address is required');
@@ -577,15 +585,19 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
577
585
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
578
586
  mfaAction: MFAAction.WalletWaasSign,
579
587
  }));
588
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
589
+ scope: TokenScope.Walletsign,
590
+ }));
580
591
  const password = yield this.getPasswordIfNeeded({
581
592
  accountAddress: this.activeAccountAddress,
582
593
  });
583
594
  return walletClient.signMessage({
584
595
  accountAddress: this.activeAccountAddress,
585
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
596
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
586
597
  bitcoinConfig: {
587
598
  network: yield this.getBitcoinNetworkEnum(),
588
599
  },
600
+ elevatedAccessToken,
589
601
  message,
590
602
  mfaToken,
591
603
  password,