Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-app-btc

Package Overview
Dependencies
Maintainers
21
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-btc - npm Package Compare versions

Comparing version 10.0.10-nightly.1 to 10.1.0-next.0

14

CHANGELOG.md
# @ledgerhq/hw-app-btc
## 10.0.10-nightly.1
## 10.1.0-next.0
### Patch Changes
### Minor Changes
- Updated dependencies []:
- @ledgerhq/hw-transport@6.29.1-nightly.1
- [#5430](https://github.com/LedgerHQ/ledger-live/pull/5430) [`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Update documentation v14 ledgerjs
## 10.0.10-nightly.0
### Patch Changes
- Updated dependencies []:
- @ledgerhq/hw-transport@6.29.1-nightly.0
- Updated dependencies [[`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c)]:
- @ledgerhq/hw-transport@6.30.0-next.0
- @ledgerhq/logs@6.12.0-next.0

@@ -17,0 +15,0 @@ ## 10.0.9

{
"name": "@ledgerhq/hw-app-btc",
"version": "10.0.10-nightly.1",
"version": "10.1.0-next.0",
"description": "Ledger Hardware Wallet Bitcoin Application API",

@@ -73,4 +73,4 @@ "keywords": [

"varuint-bitcoin": "1.1.2",
"@ledgerhq/hw-transport": "^6.29.1-nightly.1",
"@ledgerhq/logs": "^6.11.0"
"@ledgerhq/hw-transport": "^6.30.0-next.0",
"@ledgerhq/logs": "^6.12.0-next.0"
},

@@ -81,3 +81,3 @@ "devDependencies": {

"axios": "^0.25.0",
"documentation": "13.2.5",
"documentation": "14.0.2",
"jest": "^28.1.1",

@@ -88,4 +88,4 @@ "rimraf": "^4.4.1",

"ts-node": "^10.4.0",
"@ledgerhq/hw-transport-mocker": "^6.27.21-nightly.1",
"@ledgerhq/hw-transport-node-speculos": "^6.27.21-nightly.1"
"@ledgerhq/hw-transport-mocker": "^6.28.0-next.0",
"@ledgerhq/hw-transport-node-speculos": "^6.28.0-next.0"
},

@@ -92,0 +92,0 @@ "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",

@@ -122,5 +122,5 @@ <img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" />

* `$0` **{transport: Transport, scrambleKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, currency: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}**
* `$0` **{transport: Transport, scrambleKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, currency: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}**&#x20;
* `$0.transport`
* `$0.transport` &#x20;
* `$0.scrambleKey` (optional, default `"BTC"`)

@@ -152,3 +152,3 @@ * `$0.currency` (optional, default `"bitcoin"`)

* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP 32 path
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**&#x20;
* `options` an object with optional these fields:* verify (boolean) will ask user to confirm the address on the device

@@ -171,3 +171,3 @@

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**&#x20;

@@ -180,4 +180,4 @@ #### signMessage

* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `messageHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
* `messageHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;

@@ -194,3 +194,3 @@ ##### Examples

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{v: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), r: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), s: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{v: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), r: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), s: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**&#x20;

@@ -203,5 +203,5 @@ #### createPaymentTransaction

* `arg` **[CreateTransactionArg](#createtransactionarg)**
* `inputs` is an array of \[ transaction, output_index, optional redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output_index is the output in the transaction used as input for this UTXO (counting from 0)
* `arg` **[CreateTransactionArg](#createtransactionarg)**&#x20;
* `inputs` is an array of \[ transaction, output\_index, optional redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output\_index is the output in the transaction used as input for this UTXO (counting from 0)
* redeem script is the optional redeem script to use when consuming a Segregated Witness input

@@ -239,9 +239,9 @@ * sequence is the sequence number to use for this input (when using RBF), or non present

To obtain the signature of multisignature (P2SH) inputs, call signP2SHTransaction_async with the folowing parameters
To obtain the signature of multisignature (P2SH) inputs, call signP2SHTransaction\_async with the folowing parameters
##### Parameters
* `arg` **[SignP2SHTransactionArg](#signp2shtransactionarg)**
* `inputs` is an array of \[ transaction, output_index, redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output_index is the output in the transaction used as input for this UTXO (counting from 0)
* `arg` **[SignP2SHTransactionArg](#signp2shtransactionarg)**&#x20;
* `inputs` is an array of \[ transaction, output\_index, redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output\_index is the output in the transaction used as input for this UTXO (counting from 0)
* redeem script is the mandatory redeem script associated to the current P2SH input

@@ -272,3 +272,3 @@ * sequence is the sequence number to use for this input (when using RBF), or non present

* `transactionHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `transactionHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
* `isSegwitSupported` **([boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** (optional, default `false`)

@@ -285,3 +285,3 @@ * `hasTimestamp` (optional, default `false`)

Returns **[Transaction](#transaction)**
Returns **[Transaction](#transaction)**&#x20;

@@ -292,3 +292,3 @@ #### serializeTransactionOutputs

* `t` **[Transaction](#transaction)**
* `t` **[Transaction](#transaction)**&#x20;

@@ -302,3 +302,3 @@ ##### Examples

Returns **[Buffer](https://nodejs.org/api/buffer.html)**
Returns **[Buffer](https://nodejs.org/api/buffer.html)**&#x20;

@@ -321,3 +321,3 @@ ### BtcNew

* ``
* `` &#x20;

@@ -357,8 +357,8 @@ #### getWalletXpub

* `$0` **{path: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), xpubVersion: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}**
* `$0` **{path: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), xpubVersion: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}**&#x20;
* `$0.path`
* `$0.xpubVersion`
* `$0.path` &#x20;
* `$0.xpubVersion` &#x20;
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;

@@ -375,6 +375,6 @@ #### getWalletPublicKey

* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**&#x20;
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**&#x20;

@@ -392,5 +392,5 @@ #### createPaymentTransaction

* `arg` **[CreateTransactionArg](#createtransactionarg)**
* `arg` **[CreateTransactionArg](#createtransactionarg)**&#x20;
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;

@@ -405,8 +405,8 @@ #### signMessage

* `$0` **{path: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), messageHex: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}**
* `$0` **{path: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), messageHex: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}**&#x20;
* `$0.path`
* `$0.messageHex`
* `$0.path` &#x20;
* `$0.messageHex` &#x20;
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{v: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), r: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), s: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{v: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), r: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), s: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**&#x20;

@@ -419,3 +419,3 @@ ### BtcOld

* ``
* `` &#x20;

@@ -434,3 +434,3 @@ #### Examples

* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP 32 path
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**
* `opts` **{verify: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, format: [AddressFormat](#addressformat)?}?**&#x20;
* `options` an object with optional these fields:* verify (boolean) will ask user to confirm the address on the device

@@ -453,3 +453,3 @@

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), bitcoinAddress: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**&#x20;

@@ -462,5 +462,5 @@ #### createPaymentTransaction

* `arg` **[CreateTransactionArg](#createtransactionarg)**
* `inputs` is an array of \[ transaction, output_index, optional redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output_index is the output in the transaction used as input for this UTXO (counting from 0)
* `arg` **[CreateTransactionArg](#createtransactionarg)**&#x20;
* `inputs` is an array of \[ transaction, output\_index, optional redeem script, optional sequence ] where* transaction is the previously computed transaction object for this UTXO
* output\_index is the output in the transaction used as input for this UTXO (counting from 0)
* redeem script is the optional redeem script to use when consuming a Segregated Witness input

@@ -501,16 +501,16 @@ * sequence is the sequence number to use for this input (when using RBF), or non present

* `inputs` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<\[[Transaction](#transaction), [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)), ([number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))]>**
* `associatedKeysets` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `changePath` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**
* `outputScriptHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `lockTime` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `sigHashType` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `segwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
* `initialTimestamp` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `additionals` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `expiryHeight` **[Buffer](https://nodejs.org/api/buffer.html)?**
* `useTrustedInputForSegwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
* `onDeviceStreaming` **function (arg0: {progress: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), total: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), index: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}): void?**
* `onDeviceSignatureRequested` **function (): void?**
* `onDeviceSignatureGranted` **function (): void?**
* `inputs` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<\[[Transaction](#transaction), [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)), ([number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))]>**&#x20;
* `associatedKeysets` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
* `changePath` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**&#x20;
* `outputScriptHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
* `lockTime` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;
* `sigHashType` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;
* `segwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**&#x20;
* `initialTimestamp` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;
* `additionals` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
* `expiryHeight` **[Buffer](https://nodejs.org/api/buffer.html)?**&#x20;
* `useTrustedInputForSegwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**&#x20;
* `onDeviceStreaming` **function (arg0: {progress: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), total: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), index: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}): void?**&#x20;
* `onDeviceSignatureRequested` **function (): void?**&#x20;
* `onDeviceSignatureGranted` **function (): void?**&#x20;

@@ -538,5 +538,5 @@ ### AddressFormat

* `pubkeys` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Buffer](https://nodejs.org/api/buffer.html)>**
* `pubkeys` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Buffer](https://nodejs.org/api/buffer.html)>**&#x20;
Returns **SpendingCondition**
Returns **SpendingCondition**&#x20;

@@ -556,3 +556,3 @@ #### setInput

Returns **void**
Returns **void**&#x20;

@@ -572,3 +572,3 @@ #### setOwnOutput

Returns **void**
Returns **void**&#x20;

@@ -582,3 +582,3 @@ #### getDescriptorTemplate

Returns **DefaultDescriptorTemplate**
Returns **DefaultDescriptorTemplate**&#x20;

@@ -613,3 +613,3 @@ ### SingleKeyAccount

* `transport` **Transport**
* `transport` **Transport**&#x20;

@@ -634,3 +634,3 @@ ### ClientCommandInterpreter

* `progressCallback` **function (): void**
* `progressCallback` **function (): void**&#x20;

@@ -653,3 +653,3 @@ ### MerkelizedPsbt

* `psbt` **[PsbtV2](#psbtv2)**
* `psbt` **[PsbtV2](#psbtv2)**&#x20;

@@ -664,3 +664,3 @@ ### Merkle

* `leaves` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Buffer](https://nodejs.org/api/buffer.html)>**
* `leaves` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Buffer](https://nodejs.org/api/buffer.html)>**&#x20;
* `hasher` **function (buf: [Buffer](https://nodejs.org/api/buffer.html)): [Buffer](https://nodejs.org/api/buffer.html)** (optional, default `crypto.sha256`)

@@ -695,4 +695,4 @@

* `descriptorTemplate` **DefaultDescriptorTemplate**
* `key` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `descriptorTemplate` **DefaultDescriptorTemplate**&#x20;
* `key` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;

@@ -708,5 +708,5 @@ ### extract

* `psbt` **[PsbtV2](#psbtv2)**
* `psbt` **[PsbtV2](#psbtv2)**&#x20;
Returns **[Buffer](https://nodejs.org/api/buffer.html)**
Returns **[Buffer](https://nodejs.org/api/buffer.html)**&#x20;

@@ -728,5 +728,5 @@ ### finalize

* `psbt` **[PsbtV2](#psbtv2)** The psbt with all signatures added as partial sigs, either
through PSBT_IN_PARTIAL_SIG or PSBT_IN_TAP_KEY_SIG
through PSBT\_IN\_PARTIAL\_SIG or PSBT\_IN\_TAP\_KEY\_SIG
Returns **void**
Returns **void**&#x20;

@@ -738,3 +738,3 @@ ### clearFinalizedInput

Note, the spec doesn't say anything about removing ouput fields
like PSBT_OUT_BIP32\_DERIVATION_PATH and others, so we keep them
like PSBT\_OUT\_BIP32\_DERIVATION\_PATH and others, so we keep them
without actually knowing why. I think we should remove them too.

@@ -744,4 +744,4 @@

* `psbt` **[PsbtV2](#psbtv2)**
* `inputIndex` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
* `psbt` **[PsbtV2](#psbtv2)**&#x20;
* `inputIndex` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**&#x20;

@@ -782,5 +782,5 @@ ### writePush

* `$0` **[Transaction](#transaction)**
* `$0` **[Transaction](#transaction)**&#x20;
* `$0.outputs`
* `$0.outputs` &#x20;

@@ -794,3 +794,3 @@ #### Examples

Returns **[Buffer](https://nodejs.org/api/buffer.html)**
Returns **[Buffer](https://nodejs.org/api/buffer.html)**&#x20;

@@ -803,9 +803,9 @@ ### SignP2SHTransactionArg

* `inputs` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<\[[Transaction](#transaction), [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)), ([number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))]>**
* `associatedKeysets` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `outputScriptHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `lockTime` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `sigHashType` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `segwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
* `transactionVersion` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**
* `inputs` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<\[[Transaction](#transaction), [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)), ([number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))]>**&#x20;
* `associatedKeysets` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
* `outputScriptHex` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
* `lockTime` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;
* `sigHashType` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;
* `segwit` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**&#x20;
* `transactionVersion` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?**&#x20;

@@ -812,0 +812,0 @@ ### TransactionInput

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc