@ledgerhq/hw-app-btc 10.0.5-notarizer.0 → 10.0.6-next.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +16 -2
- package/README.md +15 -15
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
# @ledgerhq/hw-app-btc
|
|
2
2
|
|
|
3
|
-
## 10.0.
|
|
3
|
+
## 10.0.6-next.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @ledgerhq/hw-transport@6.28.
|
|
8
|
+
- @ledgerhq/hw-transport@6.28.6-next.0
|
|
9
|
+
|
|
10
|
+
## 10.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @ledgerhq/hw-transport@6.28.5
|
|
16
|
+
|
|
17
|
+
## 10.0.5-next.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @ledgerhq/hw-transport@6.28.5-next.0
|
|
9
23
|
|
|
10
24
|
## 10.0.4
|
|
11
25
|
|
package/README.md
CHANGED
|
@@ -297,7 +297,7 @@ This class implements the same interface as BtcOld (formerly
|
|
|
297
297
|
named Btc), but interacts with Bitcoin hardware app version 2+
|
|
298
298
|
which uses a totally new APDU protocol. This new
|
|
299
299
|
protocol is documented at
|
|
300
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md
|
|
300
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md>
|
|
301
301
|
|
|
302
302
|
Since the interface must remain compatible with BtcOld, the methods
|
|
303
303
|
of this class are quite clunky, because it needs to adapt legacy
|
|
@@ -313,7 +313,7 @@ a much cleaner implementation.
|
|
|
313
313
|
|
|
314
314
|
This is a new method that allow users to get an xpub at a standard path.
|
|
315
315
|
Standard paths are described at
|
|
316
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md#description
|
|
316
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md#description>
|
|
317
317
|
|
|
318
318
|
This boils down to paths (N=0 for Bitcoin, N=1 for Testnet):
|
|
319
319
|
M/44'/N'/x'/\*\*
|
|
@@ -570,7 +570,7 @@ and calls an abstract method to do the actual work.
|
|
|
570
570
|
Calculates a taproot output key from an internal key. This output key will be
|
|
571
571
|
used as witness program in a taproot output. The internal key is tweaked
|
|
572
572
|
according to recommendation in BIP341:
|
|
573
|
-
https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_ref-22-0
|
|
573
|
+
<https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_ref-22-0>
|
|
574
574
|
|
|
575
575
|
#### Parameters
|
|
576
576
|
|
|
@@ -581,7 +581,7 @@ Returns **[Buffer](https://nodejs.org/api/buffer.html)** The output key
|
|
|
581
581
|
### AppClient
|
|
582
582
|
|
|
583
583
|
This class encapsulates the APDU protocol documented at
|
|
584
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md
|
|
584
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md>
|
|
585
585
|
|
|
586
586
|
#### Parameters
|
|
587
587
|
|
|
@@ -619,7 +619,7 @@ The reason for this is the limited amount of memory available to the app,
|
|
|
619
619
|
so it can't always store the full psbt in memory.
|
|
620
620
|
|
|
621
621
|
The signing process is documented at
|
|
622
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md#sign_psbt
|
|
622
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md#sign_psbt>
|
|
623
623
|
|
|
624
624
|
#### Parameters
|
|
625
625
|
|
|
@@ -629,7 +629,7 @@ https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/bitcoin.md#sign_psbt
|
|
|
629
629
|
|
|
630
630
|
This class implements the merkle tree used by Ledger Bitcoin app v2+,
|
|
631
631
|
which is documented at
|
|
632
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/merkle.md
|
|
632
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/merkle.md>
|
|
633
633
|
|
|
634
634
|
#### Parameters
|
|
635
635
|
|
|
@@ -639,7 +639,7 @@ https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/merkle.md
|
|
|
639
639
|
### MerkleMap
|
|
640
640
|
|
|
641
641
|
This implements "Merkelized Maps", documented at
|
|
642
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/merkle.md#merkleized-maps
|
|
642
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/merkle.md#merkleized-maps>
|
|
643
643
|
|
|
644
644
|
A merkelized map consist of two merkle trees, one for the keys of
|
|
645
645
|
a map and one for the values of the same map, thus the two merkle
|
|
@@ -659,7 +659,7 @@ how to construct output scripts from keys. A "Wallet Policy" consists
|
|
|
659
659
|
of a "Descriptor Template" and a list of "keys". A key is basically
|
|
660
660
|
a serialized BIP32 extended public key with some added derivation path
|
|
661
661
|
information. This is documented at
|
|
662
|
-
https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/wallet.md
|
|
662
|
+
<https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/wallet.md>
|
|
663
663
|
|
|
664
664
|
#### Parameters
|
|
665
665
|
|
|
@@ -669,9 +669,9 @@ https://github.com/LedgerHQ/app-bitcoin-new/blob/master/doc/wallet.md
|
|
|
669
669
|
### extract
|
|
670
670
|
|
|
671
671
|
This implements the "Transaction Extractor" role of BIP370 (PSBTv2
|
|
672
|
-
https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki#transaction-extractor). However
|
|
672
|
+
<https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki#transaction-extractor>). However
|
|
673
673
|
the role is partially documented in BIP174 (PSBTv0
|
|
674
|
-
https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#transaction-extractor).
|
|
674
|
+
<https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#transaction-extractor>).
|
|
675
675
|
|
|
676
676
|
#### Parameters
|
|
677
677
|
|
|
@@ -682,9 +682,9 @@ Returns **[Buffer](https://nodejs.org/api/buffer.html)**
|
|
|
682
682
|
### finalize
|
|
683
683
|
|
|
684
684
|
This roughly implements the "input finalizer" role of BIP370 (PSBTv2
|
|
685
|
-
https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki). However
|
|
685
|
+
<https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki>). However
|
|
686
686
|
the role is documented in BIP174 (PSBTv0
|
|
687
|
-
https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki).
|
|
687
|
+
<https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>).
|
|
688
688
|
|
|
689
689
|
Verify that all inputs have a signature, and set inputFinalScriptwitness
|
|
690
690
|
and/or inputFinalScriptSig depending on the type of the spent outputs. Clean
|
|
@@ -715,7 +715,7 @@ without actually knowing why. I think we should remove them too.
|
|
|
715
715
|
|
|
716
716
|
Writes a script push operation to buf, which looks different
|
|
717
717
|
depending on the size of the data. See
|
|
718
|
-
https://en.bitcoin.it/wiki/Script#Constants
|
|
718
|
+
<https://en.bitcoin.it/wiki/Script#Constants>
|
|
719
719
|
|
|
720
720
|
#### Parameters
|
|
721
721
|
|
|
@@ -725,8 +725,8 @@ https://en.bitcoin.it/wiki/Script#Constants
|
|
|
725
725
|
### PsbtV2
|
|
726
726
|
|
|
727
727
|
Implements Partially Signed Bitcoin Transaction version 2, BIP370, as
|
|
728
|
-
documented at https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki
|
|
729
|
-
and https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki
|
|
728
|
+
documented at <https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki>
|
|
729
|
+
and <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>
|
|
730
730
|
|
|
731
731
|
A psbt is a data structure that can carry all relevant information about a
|
|
732
732
|
transaction through all stages of the signing process. From constructing an
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/hw-app-btc",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6-next.0",
|
|
4
4
|
"description": "Ledger Hardware Wallet Bitcoin Application API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
"sha.js": "2",
|
|
71
71
|
"tiny-secp256k1": "1.1.6",
|
|
72
72
|
"varuint-bitcoin": "1.1.2",
|
|
73
|
-
"@ledgerhq/hw-transport": "^6.28.
|
|
73
|
+
"@ledgerhq/hw-transport": "^6.28.6-next.0",
|
|
74
74
|
"@ledgerhq/logs": "^6.10.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/jest": "^29.5.0",
|
|
78
78
|
"@types/node": "^18.15.3",
|
|
79
79
|
"axios": "^0.25.0",
|
|
80
|
-
"documentation": "13.2.
|
|
80
|
+
"documentation": "13.2.5",
|
|
81
81
|
"jest": "^28.1.1",
|
|
82
82
|
"rimraf": "^4.4.1",
|
|
83
83
|
"source-map-support": "^0.5.21",
|
|
84
84
|
"ts-jest": "^28.0.5",
|
|
85
85
|
"ts-node": "^10.4.0",
|
|
86
|
-
"@ledgerhq/hw-transport-mocker": "^6.27.
|
|
87
|
-
"@ledgerhq/hw-transport-node-speculos": "^6.27.
|
|
86
|
+
"@ledgerhq/hw-transport-mocker": "^6.27.17-next.0",
|
|
87
|
+
"@ledgerhq/hw-transport-node-speculos": "^6.27.17-next.0"
|
|
88
88
|
},
|
|
89
89
|
"gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
|
|
90
90
|
"scripts": {
|