Constructs the necessary functions and classes for working with descriptors
using an external elliptic curve (ecc) library.
Notably, it returns the Output class, which
provides methods to create, sign, and finalize PSBTs based on descriptor
expressions.
While this Factory function includes the Descriptor class, note that
this class was deprecated in v2.0 in favor of Output. For backward
compatibility, the Descriptor class remains, but using Output is advised.
The Factory also returns utility methods like expand (detailed below)
and parseKeyExpression (see ParseKeyExpression).
Additionally, for convenience, the function returns BIP32 and ECPair.
These are bitcoinjs-lib classes designed
for managing BIP32 keys and
public/private key pairs:
ECPair, respectively.
Constructs the necessary functions and classes for working with descriptors using an external elliptic curve (ecc) library.
Notably, it returns the
Outputclass, which provides methods to create, sign, and finalize PSBTs based on descriptor expressions.While this Factory function includes the
Descriptorclass, note that this class was deprecated in v2.0 in favor ofOutput. For backward compatibility, theDescriptorclass remains, but usingOutputis advised.The Factory also returns utility methods like
expand(detailed below) andparseKeyExpression(see ParseKeyExpression).Additionally, for convenience, the function returns
BIP32andECPair. These are bitcoinjs-lib classes designed for managingBIP32keys and public/private key pairs:ECPair, respectively.