@dynamic-labs/bitcoin 4.53.2 → 4.54.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 +9 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +3 -1
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +6 -7
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.54.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.2...v4.54.0) (2026-01-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add iCloud backup method for wallet backup ([#10221](https://github.com/dynamic-labs/dynamic-auth/issues/10221)) ([36f5b8a](https://github.com/dynamic-labs/dynamic-auth/commit/36f5b8a0df50139fabbc6d6256f396a6d40313f4))
|
|
8
|
+
* add iCloud backup support for wallet key shares ([#10220](https://github.com/dynamic-labs/dynamic-auth/issues/10220)) ([f5f8135](https://github.com/dynamic-labs/dynamic-auth/commit/f5f813593d6ec834fc94f873fd7151b1f3e1a0ca))
|
|
9
|
+
* add legacyWalletId parameter to importPrivateKey ([#10244](https://github.com/dynamic-labs/dynamic-auth/issues/10244)) ([d281dd7](https://github.com/dynamic-labs/dynamic-auth/commit/d281dd7128ac1211e8ca0b72818e109ece7b9837))
|
|
10
|
+
|
|
2
11
|
### [4.53.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.1...v4.53.2) (2026-01-16)
|
|
3
12
|
|
|
4
13
|
|
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.
|
|
3
|
+
"version": "4.54.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,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.248",
|
|
22
22
|
"@bitcoinerlab/secp256k1": "1.1.1",
|
|
23
23
|
"@btckit/types": "0.0.19",
|
|
24
24
|
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"ecpair": "2.1.0",
|
|
29
29
|
"sats-connect": "4.2.0",
|
|
30
30
|
"jsontokens": "4.0.1",
|
|
31
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
32
|
-
"@dynamic-labs/logger": "4.
|
|
33
|
-
"@dynamic-labs/types": "4.
|
|
34
|
-
"@dynamic-labs/utils": "4.
|
|
35
|
-
"@dynamic-labs/waas": "4.
|
|
36
|
-
"@dynamic-labs/wallet-book": "4.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
31
|
+
"@dynamic-labs/assert-package-version": "4.54.0",
|
|
32
|
+
"@dynamic-labs/logger": "4.54.0",
|
|
33
|
+
"@dynamic-labs/types": "4.54.0",
|
|
34
|
+
"@dynamic-labs/utils": "4.54.0",
|
|
35
|
+
"@dynamic-labs/waas": "4.54.0",
|
|
36
|
+
"@dynamic-labs/wallet-book": "4.54.0",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "4.54.0",
|
|
38
38
|
"eventemitter3": "5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
@@ -237,13 +237,14 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
237
237
|
* @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
|
|
238
238
|
* @param publicAddressCheck - Optional public address to verify against
|
|
239
239
|
* @param addressType - Required address type for Bitcoin ('native_segwit' or 'taproot')
|
|
240
|
+
* @param legacyWalletId - Optional ID of the legacy wallet being upgraded
|
|
240
241
|
* @throws {DynamicError} If addressType is missing or invalid for BTC
|
|
241
242
|
*/
|
|
242
243
|
importPrivateKey(_a) {
|
|
243
244
|
const _super = Object.create(null, {
|
|
244
245
|
importPrivateKey: { get: () => super.importPrivateKey }
|
|
245
246
|
});
|
|
246
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
247
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, }) {
|
|
247
248
|
if (!addressType) {
|
|
248
249
|
throw new utils.DynamicError('addressType is required for BTC importPrivateKey');
|
|
249
250
|
}
|
|
@@ -253,6 +254,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
253
254
|
}
|
|
254
255
|
return _super.importPrivateKey.call(this, {
|
|
255
256
|
addressType,
|
|
257
|
+
legacyWalletId,
|
|
256
258
|
privateKey,
|
|
257
259
|
publicAddressCheck,
|
|
258
260
|
thresholdSignatureScheme,
|
|
@@ -55,15 +55,12 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
|
|
|
55
55
|
publicKeyHex: string;
|
|
56
56
|
rawPublicKey: string | Uint8Array | undefined;
|
|
57
57
|
}>;
|
|
58
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, }: {
|
|
58
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
|
|
59
59
|
privateKey: string;
|
|
60
60
|
thresholdSignatureScheme?: string | undefined;
|
|
61
61
|
publicAddressCheck?: string | undefined;
|
|
62
|
-
addressType?: string | undefined;
|
|
63
|
-
|
|
64
|
-
* Filters for credentials with walletName === 'dynamicwaas' and chain === 'bip122'
|
|
65
|
-
* The base class already has verifiedCredentials property, so we just filter and set it
|
|
66
|
-
*/
|
|
62
|
+
addressType?: string | undefined;
|
|
63
|
+
legacyWalletId?: string | undefined;
|
|
67
64
|
}): Promise<void>;
|
|
68
65
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
69
66
|
accountAddress?: string | undefined;
|
|
@@ -234,13 +231,15 @@ export declare class DynamicWaasBitcoinConnector extends DynamicWaasBitcoinConne
|
|
|
234
231
|
* @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
|
|
235
232
|
* @param publicAddressCheck - Optional public address to verify against
|
|
236
233
|
* @param addressType - Required address type for Bitcoin ('native_segwit' or 'taproot')
|
|
234
|
+
* @param legacyWalletId - Optional ID of the legacy wallet being upgraded
|
|
237
235
|
* @throws {DynamicError} If addressType is missing or invalid for BTC
|
|
238
236
|
*/
|
|
239
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, }: {
|
|
237
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
|
|
240
238
|
privateKey: string;
|
|
241
239
|
thresholdSignatureScheme?: string;
|
|
242
240
|
publicAddressCheck?: string;
|
|
243
241
|
addressType?: string;
|
|
242
|
+
legacyWalletId?: string;
|
|
244
243
|
}): Promise<void>;
|
|
245
244
|
/**
|
|
246
245
|
* Gets the wallet client for a specific account address and sets it as active
|
|
@@ -233,13 +233,14 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
233
233
|
* @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
|
|
234
234
|
* @param publicAddressCheck - Optional public address to verify against
|
|
235
235
|
* @param addressType - Required address type for Bitcoin ('native_segwit' or 'taproot')
|
|
236
|
+
* @param legacyWalletId - Optional ID of the legacy wallet being upgraded
|
|
236
237
|
* @throws {DynamicError} If addressType is missing or invalid for BTC
|
|
237
238
|
*/
|
|
238
239
|
importPrivateKey(_a) {
|
|
239
240
|
const _super = Object.create(null, {
|
|
240
241
|
importPrivateKey: { get: () => super.importPrivateKey }
|
|
241
242
|
});
|
|
242
|
-
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
243
|
+
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, }) {
|
|
243
244
|
if (!addressType) {
|
|
244
245
|
throw new DynamicError('addressType is required for BTC importPrivateKey');
|
|
245
246
|
}
|
|
@@ -249,6 +250,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
249
250
|
}
|
|
250
251
|
return _super.importPrivateKey.call(this, {
|
|
251
252
|
addressType,
|
|
253
|
+
legacyWalletId,
|
|
252
254
|
privateKey,
|
|
253
255
|
publicAddressCheck,
|
|
254
256
|
thresholdSignatureScheme,
|