@dynamic-labs/bitcoin 5.13.0 → 5.15.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 +38 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +4 -0
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +3 -0
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +4 -0
- package/src/types.d.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.15.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.14.0...v5.15.0) (2026-11-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* **wallet-book:** the ExodusEvm connector export and the exodus,
|
|
8
|
+
exodusevm and exodussol wallet-book entries are removed
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **tron:** support MetaMask via @metamask/connect-tron adapter ([#12671](https://github.com/dynamic-labs/dynamic-auth/issues/12671)) ([9b5bd65](https://github.com/dynamic-labs/dynamic-auth/commit/9b5bd65e51a0827fc06521804301fb4334698db5))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** bump joi to 17.13.9 for GHSA-4528-x5fx-h6hg ([#12685](https://github.com/dynamic-labs/dynamic-auth/issues/12685)) ([4b48f61](https://github.com/dynamic-labs/dynamic-auth/commit/4b48f6161cfac51820f3c3eb243bdaeedfdb974c))
|
|
18
|
+
* **deps:** override decode-uri-component to 0.5.1 for GHSA-qr28-fpjm-wq7f ([#12674](https://github.com/dynamic-labs/dynamic-auth/issues/12674)) ([5679fbe](https://github.com/dynamic-labs/dynamic-auth/commit/5679fbe96bef807b044d2af55cbef4583263e34a)), closes [#1203](https://github.com/dynamic-labs/dynamic-auth/issues/1203) [#1205](https://github.com/dynamic-labs/dynamic-auth/issues/1205) [#1206](https://github.com/dynamic-labs/dynamic-auth/issues/1206) [#1173](https://github.com/dynamic-labs/dynamic-auth/issues/1173) [#1176](https://github.com/dynamic-labs/dynamic-auth/issues/1176) [#1114](https://github.com/dynamic-labs/dynamic-auth/issues/1114) [#1115](https://github.com/dynamic-labs/dynamic-auth/issues/1115) [#12645](https://github.com/dynamic-labs/dynamic-auth/issues/12645)
|
|
19
|
+
* **iconic:** add Zerion wallet icon ([#12650](https://github.com/dynamic-labs/dynamic-auth/issues/12650)) ([578615c](https://github.com/dynamic-labs/dynamic-auth/commit/578615cc81245295624833ce307ade1c1630d9f7))
|
|
20
|
+
* **sdk-react-core:** default wallet return redirectUrl to current page ([#12659](https://github.com/dynamic-labs/dynamic-auth/issues/12659)) ([c41c9ef](https://github.com/dynamic-labs/dynamic-auth/commit/c41c9ef639ebcc505425d5f7014d695189d02835))
|
|
21
|
+
* **sdk-react-core:** scroll the whole modal box on the collect user data screen ([#12698](https://github.com/dynamic-labs/dynamic-auth/issues/12698)) ([6bafd1f](https://github.com/dynamic-labs/dynamic-auth/commit/6bafd1ff4732b8f9ae8f16622331b9b080300107))
|
|
22
|
+
* **waas-svm:** keep the blockhash of a transaction another key already signed ([#12676](https://github.com/dynamic-labs/dynamic-auth/issues/12676)) ([74bf588](https://github.com/dynamic-labs/dynamic-auth/commit/74bf588ae72a24f7951451ef791a3eebe6f5baf4))
|
|
23
|
+
* **waas:** wire elevated access token provider on all WaaS connectors ([#12711](https://github.com/dynamic-labs/dynamic-auth/issues/12711)) ([1c343be](https://github.com/dynamic-labs/dynamic-auth/commit/1c343bee5b6e04219be513e24afb16d5ac652723))
|
|
24
|
+
* **wallet-book:** restore Magic Eden WalletConnect connect flow on mobile ([#12657](https://github.com/dynamic-labs/dynamic-auth/issues/12657)) ([740026a](https://github.com/dynamic-labs/dynamic-auth/commit/740026a6637f441049678e563d36ffdac5e61e8b))
|
|
25
|
+
* **wallet-book:** use Backpack's ul/v1/browse link for the in-app browser ([#12702](https://github.com/dynamic-labs/dynamic-auth/issues/12702)) ([99f8e95](https://github.com/dynamic-labs/dynamic-auth/commit/99f8e956a51baccba3616a76104ab9fba2545847)), closes [#12053](https://github.com/dynamic-labs/dynamic-auth/issues/12053)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
* **wallet-book:** drop Exodus wallets ([#12664](https://github.com/dynamic-labs/dynamic-auth/issues/12664)) ([e3c850f](https://github.com/dynamic-labs/dynamic-auth/commit/e3c850fefb8db92bcd2706fb9b58f92e4a536533))
|
|
29
|
+
|
|
30
|
+
## [5.14.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.13.0...v5.14.0) (2026-10-30)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **bitcoin:** add allowedWitnessScripts to embedded wallet signPsbt ([#12575](https://github.com/dynamic-labs/dynamic-auth/issues/12575)) ([e7709bc](https://github.com/dynamic-labs/dynamic-auth/commit/e7709bc226bc78caa8c7aaae9b25858ca689176e)), closes [#1647](https://github.com/dynamic-labs/dynamic-auth/issues/1647) [#1648](https://github.com/dynamic-labs/dynamic-auth/issues/1648)
|
|
36
|
+
* **legacy-embedded-wallet-migration:** offer passkey recovery when export fails in upgrade flow ([#12640](https://github.com/dynamic-labs/dynamic-auth/issues/12640)) ([eda1d1a](https://github.com/dynamic-labs/dynamic-auth/commit/eda1d1a24f40c5850ae3ffd8049b4a9df45d489e))
|
|
37
|
+
* **webview:** forward policiesConsentLabels manifest field to SDK settings ([#12607](https://github.com/dynamic-labs/dynamic-auth/issues/12607)) ([ce3a9a0](https://github.com/dynamic-labs/dynamic-auth/commit/ce3a9a0840bd80c18401a94cd175c89ade5cc7cc))
|
|
38
|
+
|
|
39
|
+
|
|
2
40
|
## [5.13.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.12.4...v5.13.0) (2026-10-27)
|
|
3
41
|
|
|
4
42
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/bitcoin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.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",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
24
24
|
"@bitcoinerlab/secp256k1": "1.1.1",
|
|
25
25
|
"@btckit/types": "0.0.19",
|
|
26
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
26
|
+
"@dynamic-labs/sdk-api-core": "0.142.0",
|
|
27
27
|
"@wallet-standard/app": "1.0.1",
|
|
28
28
|
"@wallet-standard/base": "1.0.1",
|
|
29
29
|
"bitcoinjs-lib": "6.1.5",
|
|
30
30
|
"ecpair": "2.1.0",
|
|
31
31
|
"sats-connect": "4.2.1",
|
|
32
32
|
"jsontokens": "4.0.1",
|
|
33
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
34
|
-
"@dynamic-labs/logger": "5.
|
|
35
|
-
"@dynamic-labs/types": "5.
|
|
36
|
-
"@dynamic-labs/utils": "5.
|
|
37
|
-
"@dynamic-labs/waas": "5.
|
|
38
|
-
"@dynamic-labs/wallet-book": "5.
|
|
39
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
33
|
+
"@dynamic-labs/assert-package-version": "5.15.0",
|
|
34
|
+
"@dynamic-labs/logger": "5.15.0",
|
|
35
|
+
"@dynamic-labs/types": "5.15.0",
|
|
36
|
+
"@dynamic-labs/utils": "5.15.0",
|
|
37
|
+
"@dynamic-labs/waas": "5.15.0",
|
|
38
|
+
"@dynamic-labs/wallet-book": "5.15.0",
|
|
39
|
+
"@dynamic-labs/wallet-connector-core": "5.15.0",
|
|
40
40
|
"eventemitter3": "5.0.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {}
|
|
@@ -376,6 +376,9 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
376
376
|
* SIGHASH_DEFAULT (0x00) for Taproot and SIGHASH_ALL (0x01) otherwise.
|
|
377
377
|
* `allowedSighash` restricts which declared types are accepted.
|
|
378
378
|
*
|
|
379
|
+
* P2WSH multisig inputs are signed only when their witnessScript is listed in
|
|
380
|
+
* `allowedWitnessScripts` and the wallet is a Native SegWit wallet.
|
|
381
|
+
*
|
|
379
382
|
* @param request - The PSBT signing request. Only unsignedPsbtBase64 is required.
|
|
380
383
|
* @returns The signed (but not finalized) PSBT response
|
|
381
384
|
* @throws {DynamicError} If active account address is not set
|
|
@@ -404,6 +407,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
404
407
|
});
|
|
405
408
|
const signedTransaction = yield walletClient.signTransaction({
|
|
406
409
|
allowedSighash: request.allowedSighash,
|
|
410
|
+
allowedWitnessScripts: request.allowedWitnessScripts,
|
|
407
411
|
approvalQuorum: options === null || options === void 0 ? void 0 : options.approvalQuorum,
|
|
408
412
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
409
413
|
bitcoinConfig: { network: yield this.getBitcoinNetworkEnum() },
|
|
@@ -395,6 +395,9 @@ export declare class DynamicWaasBitcoinConnector extends DynamicWaasBitcoinConne
|
|
|
395
395
|
* SIGHASH_DEFAULT (0x00) for Taproot and SIGHASH_ALL (0x01) otherwise.
|
|
396
396
|
* `allowedSighash` restricts which declared types are accepted.
|
|
397
397
|
*
|
|
398
|
+
* P2WSH multisig inputs are signed only when their witnessScript is listed in
|
|
399
|
+
* `allowedWitnessScripts` and the wallet is a Native SegWit wallet.
|
|
400
|
+
*
|
|
398
401
|
* @param request - The PSBT signing request. Only unsignedPsbtBase64 is required.
|
|
399
402
|
* @returns The signed (but not finalized) PSBT response
|
|
400
403
|
* @throws {DynamicError} If active account address is not set
|
|
@@ -372,6 +372,9 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
372
372
|
* SIGHASH_DEFAULT (0x00) for Taproot and SIGHASH_ALL (0x01) otherwise.
|
|
373
373
|
* `allowedSighash` restricts which declared types are accepted.
|
|
374
374
|
*
|
|
375
|
+
* P2WSH multisig inputs are signed only when their witnessScript is listed in
|
|
376
|
+
* `allowedWitnessScripts` and the wallet is a Native SegWit wallet.
|
|
377
|
+
*
|
|
375
378
|
* @param request - The PSBT signing request. Only unsignedPsbtBase64 is required.
|
|
376
379
|
* @returns The signed (but not finalized) PSBT response
|
|
377
380
|
* @throws {DynamicError} If active account address is not set
|
|
@@ -400,6 +403,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
400
403
|
});
|
|
401
404
|
const signedTransaction = yield walletClient.signTransaction({
|
|
402
405
|
allowedSighash: request.allowedSighash,
|
|
406
|
+
allowedWitnessScripts: request.allowedWitnessScripts,
|
|
403
407
|
approvalQuorum: options === null || options === void 0 ? void 0 : options.approvalQuorum,
|
|
404
408
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
405
409
|
bitcoinConfig: { network: yield this.getBitcoinNetworkEnum() },
|
package/src/types.d.ts
CHANGED
|
@@ -59,7 +59,8 @@ export type BitcoinSignPsbtRequestSignature = {
|
|
|
59
59
|
* Embedded wallets:
|
|
60
60
|
* - Only support PSBT format (Base64)
|
|
61
61
|
* - Automatically sign all inputs that belong to the wallet address
|
|
62
|
-
* -
|
|
62
|
+
* - Read the sighash type from the PSBT, defaulting to SIGHASH_DEFAULT (0x00)
|
|
63
|
+
* for Taproot and SIGHASH_ALL (0x01) otherwise
|
|
63
64
|
*/
|
|
64
65
|
export type EmbeddedWalletSignPsbtRequest = {
|
|
65
66
|
/**
|
|
@@ -80,6 +81,14 @@ export type EmbeddedWalletSignPsbtRequest = {
|
|
|
80
81
|
* outside the list. When omitted, any declared type is signed.
|
|
81
82
|
*/
|
|
82
83
|
allowedSighash?: number[];
|
|
84
|
+
/**
|
|
85
|
+
* Optional hex-encoded witnessScripts the wallet may co-sign (P2WSH multisig
|
|
86
|
+
* opt-in). An input is signed only when its witnessScript is in this list,
|
|
87
|
+
* matches the input's scriptPubKey, is a canonical m-of-n multisig and
|
|
88
|
+
* contains the wallet's public key. When omitted, P2WSH inputs are not signed.
|
|
89
|
+
* Only Native SegWit wallets can co-sign P2WSH inputs.
|
|
90
|
+
*/
|
|
91
|
+
allowedWitnessScripts?: string[];
|
|
83
92
|
};
|
|
84
93
|
export type SatsConnectSignTransactionInput = {
|
|
85
94
|
message?: string;
|