@bitcoinerlab/descriptors
Advanced tools
Changelog
[2.0.0] - 2023-10-19
Main Class Renaming:
Parameter Refactoring:
Function Updates:
Ledger Hardware Wallet & PSBT Finalizers Improvements:
Finalizers Update:
updatePsbt
in favor of updatePsbtAsInput
.
finalizePsbtInput
method of the Output class.Ledger Enhancements:
ledgerClient
and ledgerState
parameters into a new type LedgerManager
, which also includes an instance to the Elliptic Curve Library (ecc
).
const ledgerManager = {ledgerClient, ledgerState: {}, ecc};
, where import * as ecc from '@bitcoinerlab/secp256k1'
.Deprecation Notices:
Key Updates to Consider:
new Descriptor({expression})
with new Output({descriptor})
.expand({expression})
to expand({descriptor})
.updatePsbtAsInput
as updatePsbt
is now deprecated.updatePsbtAsOutput
for completeness.updatePsbtAsInput
as finalizePsbtInput
and finalizePsbt
have been deprecated.Additional Ledger Updates:
ledgerClient
and ledgerState
should now receive ledgerManager
instead.
signLedger
, all Ledger script expression functions and also: keyExpressionLedger
, registerLedgerWallet
, getLedgerMasterFingerPrint
, and assertLedgerApp
.signLedger
and signInputLedger
no longer necessitate passing an instance to the former Descriptor
class. All relevant information is automatically retrieved from the psbt now.Testing Enhancements:
-deprecated
, to continue testing the deprecated functions and classes.Documentation Enhancements:
src/descriptors.ts
.
witnessScript
and redeemScript
to manage scenarios where one buffer may be undefined
.eqBuffers
function for accurate buffer comparisons, particularly when handling undefined
values.Changelog
[1.1.1] - 2023-9-12
ledger-bitcoin
in src/ledger.ts
to improve compatibility with React Native projects using the Metro bundler.
await import('ledger-bitcoin')
), but this approach caused issues with Metro bundler. The bundler tried to unconditionally require ledger-bitcoin
even if it wasn't installed (since it's an optional peerDependency).require
statement. For more details on the underlying issue, refer to this React Native discussion.Changelog
[1.0.1] - 2023-07-14
@bitcoinerlab/secp256k1
from version 1.0.2
to 1.0.5
, bip32
from 3.1.0
to 4.0.0
, and bitcoinjs-lib
from 6.1.0
to 6.1.3
. There are no breaking changes.noble-hashes
instead of create-hash
, pbkdf2
, and randombytes
. This change was made to improve the maintainability of the library.