@dynamic-labs/bitcoin 4.61.1 → 4.61.3
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 +24 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +4 -7
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +2 -1
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.61.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.2...v4.61.3) (2026-02-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add reset widget password flow for WaaS wallets ([#10437](https://github.com/dynamic-labs/dynamic-auth/issues/10437)) ([7490069](https://github.com/dynamic-labs/dynamic-auth/commit/7490069b70b04be5d70c472c17b132c6a5eddcd5))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* add broken ton wallet mobile connection ([#10435](https://github.com/dynamic-labs/dynamic-auth/issues/10435)) ([a71cd88](https://github.com/dynamic-labs/dynamic-auth/commit/a71cd88fd4e80af6a8956cdb5cc389a34e4e00f1))
|
|
13
|
+
* infinite loop when rapidly entering phone number ([#10434](https://github.com/dynamic-labs/dynamic-auth/issues/10434)) ([39a57cc](https://github.com/dynamic-labs/dynamic-auth/commit/39a57cc51b879abbb63bd129a489adcd8522b261))
|
|
14
|
+
* invalidate non matching ton connect proof ([#10438](https://github.com/dynamic-labs/dynamic-auth/issues/10438)) ([406ba34](https://github.com/dynamic-labs/dynamic-auth/commit/406ba34ba9053953a4b5a5d6ead6d7e8a1718423))
|
|
15
|
+
|
|
16
|
+
### [4.61.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.1...v4.61.2) (2026-02-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* export wallet password hook ([#10433](https://github.com/dynamic-labs/dynamic-auth/issues/10433)) ([dd6170e](https://github.com/dynamic-labs/dynamic-auth/commit/dd6170ec42a863b33baea92f9716083e3c4941d0))
|
|
22
|
+
* only prompt braavos wallet once to connect ([#10405](https://github.com/dynamic-labs/dynamic-auth/issues/10405)) ([2aff336](https://github.com/dynamic-labs/dynamic-auth/commit/2aff336a6222404b7907be65ef9af6806c357a07))
|
|
23
|
+
* remove signedSessionId from validateActiveWallet ([#10422](https://github.com/dynamic-labs/dynamic-auth/issues/10422)) ([700a953](https://github.com/dynamic-labs/dynamic-auth/commit/700a95383c8754f1cc0c87f53c50d04b57ef1b52))
|
|
24
|
+
* ton wallets not showing download links ([#10421](https://github.com/dynamic-labs/dynamic-auth/issues/10421)) ([cc8a8f8](https://github.com/dynamic-labs/dynamic-auth/commit/cc8a8f82485e4cc94aacd63d2e6a1bd8ca291f9c))
|
|
25
|
+
|
|
2
26
|
### [4.61.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.0...v4.61.1) (2026-02-11)
|
|
3
27
|
|
|
4
28
|
|
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": "4.61.
|
|
3
|
+
"version": "4.61.3",
|
|
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,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.263",
|
|
22
22
|
"@bitcoinerlab/secp256k1": "1.1.1",
|
|
23
23
|
"@btckit/types": "0.0.19",
|
|
24
24
|
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
@@ -28,13 +28,13 @@
|
|
|
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.61.
|
|
32
|
-
"@dynamic-labs/logger": "4.61.
|
|
33
|
-
"@dynamic-labs/types": "4.61.
|
|
34
|
-
"@dynamic-labs/utils": "4.61.
|
|
35
|
-
"@dynamic-labs/waas": "4.61.
|
|
36
|
-
"@dynamic-labs/wallet-book": "4.61.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "4.61.
|
|
31
|
+
"@dynamic-labs/assert-package-version": "4.61.3",
|
|
32
|
+
"@dynamic-labs/logger": "4.61.3",
|
|
33
|
+
"@dynamic-labs/types": "4.61.3",
|
|
34
|
+
"@dynamic-labs/utils": "4.61.3",
|
|
35
|
+
"@dynamic-labs/waas": "4.61.3",
|
|
36
|
+
"@dynamic-labs/wallet-book": "4.61.3",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "4.61.3",
|
|
38
38
|
"eventemitter3": "5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
@@ -333,16 +333,13 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
333
333
|
*/
|
|
334
334
|
validateActiveWallet(expectedAddress) {
|
|
335
335
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
336
|
-
var _a
|
|
336
|
+
var _a;
|
|
337
337
|
const walletClient = yield this.getWaasWalletClient();
|
|
338
|
-
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
339
|
-
if (!signedSessionId) {
|
|
340
|
-
throw new utils.DynamicError('Signed session ID is required');
|
|
341
|
-
}
|
|
342
338
|
const targetWallet = yield walletClient.getWallet({
|
|
343
339
|
accountAddress: expectedAddress,
|
|
344
|
-
authToken: (
|
|
345
|
-
|
|
340
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
341
|
+
// TODO: This is a hack - validateActiveWallet is a no-op operation that shouldn't require nonce signing
|
|
342
|
+
signedSessionId: '',
|
|
346
343
|
});
|
|
347
344
|
if (!targetWallet) {
|
|
348
345
|
throw new utils.DynamicError('Account not found');
|
|
@@ -57,12 +57,13 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
|
|
|
57
57
|
publicKeyHex: string;
|
|
58
58
|
rawPublicKey: string | Uint8Array | undefined;
|
|
59
59
|
}>;
|
|
60
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
|
|
60
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
61
61
|
privateKey: string;
|
|
62
62
|
thresholdSignatureScheme?: string | undefined;
|
|
63
63
|
publicAddressCheck?: string | undefined;
|
|
64
64
|
addressType?: string | undefined;
|
|
65
65
|
legacyWalletId?: string | undefined;
|
|
66
|
+
password?: string | undefined;
|
|
66
67
|
}): Promise<void>;
|
|
67
68
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
68
69
|
accountAddress?: string | undefined;
|
|
@@ -329,16 +329,13 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
329
329
|
*/
|
|
330
330
|
validateActiveWallet(expectedAddress) {
|
|
331
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
-
var _a
|
|
332
|
+
var _a;
|
|
333
333
|
const walletClient = yield this.getWaasWalletClient();
|
|
334
|
-
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
335
|
-
if (!signedSessionId) {
|
|
336
|
-
throw new DynamicError('Signed session ID is required');
|
|
337
|
-
}
|
|
338
334
|
const targetWallet = yield walletClient.getWallet({
|
|
339
335
|
accountAddress: expectedAddress,
|
|
340
|
-
authToken: (
|
|
341
|
-
|
|
336
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
337
|
+
// TODO: This is a hack - validateActiveWallet is a no-op operation that shouldn't require nonce signing
|
|
338
|
+
signedSessionId: '',
|
|
342
339
|
});
|
|
343
340
|
if (!targetWallet) {
|
|
344
341
|
throw new DynamicError('Account not found');
|